diff --git a/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md similarity index 100% rename from ISSUE_TEMPLATE.md rename to .github/ISSUE_TEMPLATE.md diff --git a/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from PULL_REQUEST_TEMPLATE.md rename to .github/PULL_REQUEST_TEMPLATE.md diff --git a/README.md b/README.md index 23bb52f13c..34ddfd9ef2 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ If a package was never on DefinitelyTyped, it does not need to be added to `notN To lint a package, just add a `tslint.json` to that package containing `{ "extends": "../tslint.json" }`. All new packages must be linted. If a `tslint.json` turns rules off, this is because that hasn't been fixed yet. For example: -```json +```js { "extends": "../tslint.json", "rules": { @@ -255,6 +255,10 @@ transitively `react-router-bootstrap` (which depends on `react-router`) also add Also, `/// ` will not work with path mapping, so dependencies must use `import`. +#### The file history in GitHub looks incomplete. + +GitHub doesn't [support](http://stackoverflow.com/questions/5646174/how-to-make-github-follow-directory-history-after-renames) file history for renamed files. Use [`git log --follow`](https://www.git-scm.com/docs/git-log) instead. + ## License diff --git a/blueimp-md5/blueimp-md5-tests.ts b/blueimp-md5/blueimp-md5-tests.ts deleted file mode 100644 index 18edc69b57..0000000000 --- a/blueimp-md5/blueimp-md5-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ - -import blueimp = require('blueimp-md5'); - -function hash(): boolean { - return blueimp.md5('hello world') === '5eb63bbbe01eeed093cb22bb8f5acdc3'; -} diff --git a/blueimp-md5/index.d.ts b/blueimp-md5/index.d.ts deleted file mode 100644 index b51f554e32..0000000000 --- a/blueimp-md5/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Type definitions for blueimp-md5 v1.1.0 -// Project: https://github.com/blueimp/JavaScript-MD5 -// Definitions by: Ray Martone -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export declare function md5(value: string, key?: string, raw?: boolean): string; diff --git a/chokidar/chokidar-tests.ts b/chokidar/chokidar-tests.ts deleted file mode 100644 index a67638e927..0000000000 --- a/chokidar/chokidar-tests.ts +++ /dev/null @@ -1,47 +0,0 @@ - - -import fs = require('fs'); -import chokidar = require('chokidar'); - -var watcher = chokidar.watch('file, dir, or glob', { - ignored: /[\/\\]\./, persistent: true -}); - -var log = console.log.bind(console); - -let str: string; -let any: any; -let stats: fs.Stats; - -watcher - .on('add', path => { str = path; }) - .on('addDir', path => { str = path; }) - .on('change', path => { str = path; }) - .on('unlink', path => { str = path; }) - .on('unlinkDir', path => { str = path; }) - .on('error', (error) => { any = error; }) - .on('ready', () => { }) - .on('raw', (event, path, details) => { str = event; str = path; any = details; }) - -// 'add', 'addDir' and 'change' events also receive stat() results as second -// argument when available: http://nodejs.org/api/fs.html#fs_class_fs_stats -watcher.on('change', (path, _stats) => { - str = path; - stats = _stats; -}); - -// Watch new files. -watcher.add('new-file'); -watcher.add(['new-file-2', 'new-file-3', '**/other-file*']); - -// Un-watch some files. -watcher.unwatch('new-file*'); - -// Only needed if watching is `persistent: true`. -watcher.close(); - -// One-liner -chokidar.watch('.', {ignored: /[\/\\]\./}).on('all', (event, path) => { - str = event; - str = path; -}); \ No newline at end of file diff --git a/chokidar/index.d.ts b/chokidar/index.d.ts deleted file mode 100644 index ab37a73948..0000000000 --- a/chokidar/index.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Type definitions for chokidar 1.4.3 -// Project: https://github.com/paulmillr/chokidar -// Definitions by: Stefan Steinhart -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare module "chokidar" -{ - export class FSWatcher - { - constructor(options?: WatchOptions); - add(fileDirOrGlob:string):void; - add(filesDirsOrGlobs:Array):void; - unwatch(fileDirOrGlob:string):void; - unwatch(filesDirsOrGlobs:Array):void; - getWatched():any; - on(event: 'add', fn: (path: string, stats?: fs.Stats) => void): this; - on(event: 'change', fn: (path: string, stats?: fs.Stats) => void): this; - on(event: 'unlink', fn: (path: string) => void): this; - on(event: 'raw', fn: (event: string, path:string, details:any) => void): this; - on(event: 'all', fn: (event: string, path: string) => void): this; - on(event: string, fn: (path: string) => void): this; - close(): this; - } - - interface WatchOptions - { - persistent?:boolean; - ignored?:any; - ignoreInitial?:boolean; - followSymlinks?:boolean; - cwd?:string; - usePolling?:boolean; - useFsEvents?:boolean; - alwaysStat?:boolean; - depth?:number; - interval?:number; - binaryInterval?:number; - ignorePermissionErrors?:boolean; - atomic?:boolean; - awaitWriteFinish?:any; - } - - import fs = require("fs"); - - export function watch(fileDirOrGlob:string, options?:WatchOptions):FSWatcher; - export function watch(filesDirsOrGlobs:Array, options?:WatchOptions):FSWatcher; -} diff --git a/ej.web.all/tslint.json b/ej.web.all/tslint.json deleted file mode 100644 index b0b7c81ba5..0000000000 --- a/ej.web.all/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "../tslint.json" } \ No newline at end of file diff --git a/fix b/fix deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/google-protobuf/index.d.ts b/google-protobuf/index.d.ts deleted file mode 100644 index cf6a7e218a..0000000000 --- a/google-protobuf/index.d.ts +++ /dev/null @@ -1,687 +0,0 @@ -// Type definitions for google-protobuf 3.2 -// Project: https://github.com/google/google-protobuf -// Definitions by: Marcus Longmuir -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -type ByteSource = ArrayBuffer|Uint8Array|number[]|string; -type ScalarFieldType = boolean|number|string; -type RepeatedFieldType = ScalarFieldType[] | Uint8Array[]; -type AnyFieldType = ScalarFieldType | RepeatedFieldType | Uint8Array; -type FieldValue = (string|number|boolean|Uint8Array|any/*This should be Array, but that isn't allowed*/|undefined) - -export abstract class Message { - getJsPbMessageId(): (string | undefined); - static initialize(msg: Message, - data: Message.MessageArray, - messageId: (string | number), - suggestedPivot: number, - repeatedFields: number[], - oneofFields?: number[][] | null): void; - static toObjectList(field: T[], - toObjectFn: (includeInstance: boolean, - data: T) => {}, - includeInstance?: boolean): {}[]; - static toObjectExtension(msg: Message, - obj: {}, - extensions: {[key: number]: ExtensionFieldInfo}, - getExtensionFn: (fieldInfo: ExtensionFieldInfo) => Message, - includeInstance?: boolean): void; - serializeBinaryExtensions(proto: Message, - writer: BinaryWriter, - extensions: {[key: number]: ExtensionFieldBinaryInfo}, - getExtensionFn: (fieldInfo: ExtensionFieldInfo) => T): void - readBinaryExtension(proto: Message, - reader: BinaryReader, - extensions: {[key: number]: ExtensionFieldBinaryInfo}, - setExtensionFn: (fieldInfo: ExtensionFieldInfo, - val: T) => void): void - static getField(msg: Message, - fieldNumber: number): FieldValue|null; - static getOptionalFloatingPointField(msg: Message, - fieldNumber: number): (number | undefined); - static getRepeatedFloatingPointField(msg: Message, - fieldNumber: number): number[]; - static bytesAsB64(bytes: Uint8Array): string; - static bytesAsU8(str: string): Uint8Array; - static bytesListAsB64(bytesList: Uint8Array[]): string[]; - static bytesListAsU8(strList: string[]): Uint8Array[]; - static getFieldWithDefault(msg: Message, - fieldNumber: number, - defaultValue: T): T; - static getMapField(msg: Message, - fieldNumber: number, - noLazyCreate: boolean, - valueCtor: typeof Message): Map; - static setField(msg: Message, - fieldNumber: number, - value: FieldValue): void; - static addToRepeatedField(msg: Message, - fieldNumber: number, - value: any, - index?: number): void; - static setOneofField(msg: Message, - fieldNumber: number, - oneof: number[], - value: FieldValue): void; - static computeOneofCase(msg: Message, - oneof: number[]): number; - static getWrapperField(msg: Message, - ctor: typeof Message, - fieldNumber: number, - required?: number): Message; - static getRepeatedWrapperField(msg: Message, - ctor: typeof Message, - fieldNumber: number): Message[]; - static setWrapperField(msg: Message, - fieldNumber: number, - value?: (Message|Map)): void; - static setOneofWrapperField(msg: Message, - fieldNumber: number, - oneof: number[], - value: any): void; - static setRepeatedWrapperField(msg: Message, - fieldNumber: number, - value: any): void; - static addToRepeatedWrapperField(msg: Message, - fieldNumber: number, - value: any, - ctor: typeof Message, - index: number): any; - static toMap(field: any[], - mapKeyGetterFn: (field: any) => string, - toObjectFn?: Message.StaticToObject, - includeInstance?: boolean): void; - toArray(): Message.MessageArray; - toString(): string; - getExtension(fieldInfo: ExtensionFieldInfo): T; - setExtension(fieldInfo: ExtensionFieldInfo, - value: T): void; - static difference(m1: T, - m2: T): T; - static equals(m1: Message, - m2: Message): boolean; - static compareExtensions(extension1: {}, - extension2: {}): boolean; - static compareFields(field1: any, - field2: any): boolean; - cloneMessage(): Message; - clone(): Message; - static clone(msg: T): T; - static cloneMessage(msg: T): T; - static copyInto(fromMessage: Message, - toMessage: Message): void; - static registerMessageType(id: number, - constructor: typeof Message): void; - - abstract serializeBinary(): Uint8Array; - abstract toObject(includeInstance?: boolean): {}; - - // These are `abstract static`, but that isn't allowed. Subclasses of Message will have these methods and properties - // and not having them on Message makes using this class for its intended purpose quite difficult. - static deserializeBinary(bytes: Uint8Array): Message; - static deserializeBinaryFromReader(message: Message, reader: BinaryReader): Message; - static serializeBinaryToWriter(message: Message, writer: BinaryWriter): void; - static toObject(includeInstance: boolean, msg: Message): {}; - static extensions: {[key: number]: ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: ExtensionFieldBinaryInfo}; -} - -export namespace Message { - export type MessageArray = any[]; // This type needs to reference itself - interface StaticToObject { - (includeInstance: boolean, - msg: Message): {}; - } -} - -export class ExtensionFieldInfo { - fieldIndex: number; - fieldName: number; - ctor: typeof Message; - toObjectFn: Message.StaticToObject; - isRepeated: number; - constructor(fieldIndex: number, - fieldName: {[key: string]: number}, - ctor: typeof Message, - toObjectFn: Message.StaticToObject, - isRepeated: number); - isMessageType(): boolean; -} - -export class ExtensionFieldBinaryInfo { - fieldInfo: ExtensionFieldInfo; - binaryReaderFn: BinaryRead; - binaryWriterFn: BinaryWrite; - opt_binaryMessageSerializeFn: (msg: Message, - writer: BinaryWriter) => void; - opt_binaryMessageDeserializeFn: (msg: Message, - reader: BinaryReader) => Message; - opt_isPacked: boolean; - constructor(fieldInfo: ExtensionFieldInfo, - binaryReaderFn: BinaryRead, - binaryWriterFn: BinaryWrite, - opt_binaryMessageSerializeFn: (msg: Message, - writer: BinaryWriter) => void, - opt_binaryMessageDeserializeFn: (msg: Message, - reader: BinaryReader) => Message, - opt_isPacked: boolean); -} - -export class Map { - constructor(arr: Array<[K, V]>, - valueCtor?: {new(init: any): V}); - toArray(): Array<[K, V]>; - toObject(includeInstance: boolean, - valueToObject: (includeInstance: boolean) => any): Array<[K, V]>; - static fromObject(entries: Array<[K, V]>, - valueCtor: any, - valueFromObject: any): Map; - getLength(): number; - clear(): void; - del(key: K): boolean; - getEntryList(): Array<[K, V]>; - entries(): Map.Iterator<[K, V]>; - keys(): Map.Iterator; - forEach(callback: (entry: V, - key: K) => void, - thisArg?: {}): void; - set(key: K, - value: V): void; - get(key: K): (V | undefined); - has(key: K): boolean; -} - -export namespace Map { - // This is implemented by jspb.Map.ArrayIteratorIterable_, but that class shouldn't be exported - interface Iterator { - next(): IteratorResult; - } - type IteratorResult = { - done: boolean, - value: T, - } -} - -interface BinaryReadReader { - (msg: any, - binaryReader: BinaryReader): void; -} - -interface BinaryRead { - (msg: any, - reader: BinaryReadReader): void; -} - -interface BinaryWriteCallback { - (value: any, - binaryWriter: BinaryWriter): void; -} - -interface BinaryWrite { - (fieldNumber: number, - value: any, - writerCallback: BinaryWriteCallback): void; -} - -export class BinaryReader { - constructor(bytes?: ByteSource, - start?: number, - length?: number); - static alloc(bytes?: ByteSource, - start?: number, - length?: number): BinaryReader; - alloc(bytes?: ByteSource, - start?: number, - length?: number): BinaryReader; - free(): void; - getFieldCursor(): number; - getCursor(): number; - getBuffer(): Uint8Array; - getFieldNumber(): number; - getWireType(): BinaryConstants.WireType; - isEndGroup(): boolean; - getError(): boolean; - setBlock(bytes?: ByteSource, - start?: number, - length?: number): void; - reset(): void; - advance(count: number): void; - nextField(): boolean; - unskipHeader(): void; - skipMatchingFields(): void; - skipVarintField(): void; - skipDelimitedField(): void; - skipFixed32Field(): void; - skipFixed64Field(): void; - skipGroup(): void; - skipField(): void; - registerReadCallback(callbackName: string, - callback: (binaryReader: BinaryReader) => any): void; - runReadCallback(callbackName: string): any; - readAny(fieldType: BinaryConstants.FieldType): AnyFieldType; - readMessage: BinaryRead; - readGroup(field: number, - message: Message, - reader: BinaryReadReader): void; - getFieldDecoder(): BinaryDecoder; - readInt32(): number; - readInt32String(): string; - readInt64(): number; - readInt64String(): string; - readUint32(): number; - readUint32String(): string; - readUint64(): number; - readUint64String(): string; - readSint32(): number; - readSint64(): number; - readSint64String(): string; - readFixed32(): number; - readFixed64(): number; - readFixed64String(): string; - readSfixed32(): number; - readSfixed32String(): string; - readSfixed64(): number; - readSfixed64String(): string; - readFloat(): number; - readDouble(): number; - readBool(): boolean; - readEnum(): number; - readString(): string; - readBytes(): Uint8Array; - readVarintHash64(): string; - readFixedHash64(): string; - readPackedInt32(): number[]; - readPackedInt32String(): string[]; - readPackedInt64(): number[]; - readPackedInt64String(): string[]; - readPackedUint32(): number[]; - readPackedUint32String(): string[]; - readPackedUint64(): number[]; - readPackedUint64String(): string[]; - readPackedSint32(): number[]; - readPackedSint64(): number[]; - readPackedSint64String(): string[]; - readPackedFixed32(): number[]; - readPackedFixed64(): number[]; - readPackedFixed64String(): string[]; - readPackedSfixed32(): number[]; - readPackedSfixed64(): number[]; - readPackedSfixed64String(): string[]; - readPackedFloat(): number[]; - readPackedDouble(): number[]; - readPackedBool(): boolean[]; - readPackedEnum(): number[]; - readPackedVarintHash64(): string[]; - readPackedFixedHash64(): string[]; -} - -export class BinaryWriter { - constructor(); - writeSerializedMessage(bytes: Uint8Array, - start: number, - end: number): void; - maybeWriteSerializedMessage(bytes?: Uint8Array, - start?: number, - end?: number): void; - reset(): void; - getResultBuffer(): Uint8Array; - getResultBase64String(): string; - beginSubMessage(field: number): void; - endSubMessage(field: number): void; - writeAny(fieldType: BinaryConstants.FieldType, - field: number, - value: AnyFieldType): void; - writeInt32(field: number, - value?: number): void; - writeInt32String(field: number, - value?: string): void; - writeInt64(field: number, - value?: number): void; - writeInt64String(field: number, - value?: string): void; - writeUint32(field: number, - value?: number): void; - writeUint32String(field: number, - value?: string): void; - writeUint64(field: number, - value?: number): void; - writeUint64String(field: number, - value?: string): void; - writeSint32(field: number, - value?: number): void; - writeSint64(field: number, - value?: number): void; - writeSint64String(field: number, - value?: string): void; - writeFixed32(field: number, - value?: number): void; - writeFixed64(field: number, - value?: number): void; - writeFixed64String(field: number, - value?: string): void; - writeSfixed32(field: number, - value?: number): void; - writeSfixed64(field: number, - value?: number): void; - writeSfixed64String(field: number, - value?: string): void; - writeFloat(field: number, - value?: number): void; - writeDouble(field: number, - value?: number): void; - writeBool(field: number, - value?: boolean): void; - writeEnum(field: number, - value?: number): void; - writeString(field: number, - value?: string): void; - writeBytes(field: number, - value?: ByteSource): void; - writeMessage: BinaryWrite; - writeGroup(field: number, - value: any, - writeCallback: BinaryWriteCallback): void; - writeFixedHash64(field: number, - value?: string): void; - writeVarintHash64(field: number, - value?: string): void; - writeRepeatedInt32(field: number, - value?: number[]): void; - writeRepeatedInt32String(field: number, - value?: string[]): void; - writeRepeatedInt64(field: number, - value?: number[]): void; - writeRepeatedInt64String(field: number, - value?: string[]): void; - writeRepeatedUint32(field: number, - value?: number[]): void; - writeRepeatedUint32String(field: number, - value?: string[]): void; - writeRepeatedUint64(field: number, - value?: number[]): void; - writeRepeatedUint64String(field: number, - value?: string[]): void; - writeRepeatedSint32(field: number, - value?: number[]): void; - writeRepeatedSint64(field: number, - value?: number[]): void; - writeRepeatedSint64String(field: number, - value?: string[]): void; - writeRepeatedFixed32(field: number, - value?: number[]): void; - writeRepeatedFixed64(field: number, - value?: number[]): void; - writeRepeatedFixed64String(field: number, - value?: string[]): void; - writeRepeatedSfixed32(field: number, - value?: number[]): void; - writeRepeatedSfixed64(field: number, - value?: number[]): void; - writeRepeatedSfixed64String(field: number, - value?: string[]): void; - writeRepeatedFloat(field: number, - value?: number[]): void; - writeRepeatedDouble(field: number, - value?: number[]): void; - writeRepeatedBool(field: number, - value?: boolean[]): void; - writeRepeatedEnum(field: number, - value?: number[]): void; - writeRepeatedString(field: number, - value?: string[]): void; - writeRepeatedBytes(field: number, - value?: ByteSource[]): void; - writeRepeatedMessage(field: number, - value: Message[], - writerCallback: BinaryWriteCallback): void; - writeRepeatedGroup(field: number, - value: Message[], - writerCallback: BinaryWriteCallback): void; - writeRepeatedFixedHash64(field: number, - value?: string[]): void; - writeRepeatedVarintHash64(field: number, - value?: string[]): void; - writePackedInt32(field: number, - value?: number[]): void; - writePackedInt32String(field: number, - value?: string[]): void; - writePackedInt64(field: number, - value?: number[]): void; - writePackedInt64String(field: number, - value?: string[]): void; - writePackedUint32(field: number, - value?: number[]): void; - writePackedUint32String(field: number, - value?: string[]): void; - writePackedUint64(field: number, - value?: number[]): void; - writePackedUint64String(field: number, - value?: string[]): void; - writePackedSint32(field: number, - value?: number[]): void; - writePackedSint64(field: number, - value?: number[]): void; - writePackedSint64String(field: number, - value?: string[]): void; - writePackedFixed32(field: number, - value?: number[]): void; - writePackedFixed64(field: number, - value?: number[]): void; - writePackedFixed64String(field: number, - value?: string[]): void; - writePackedSfixed32(field: number, - value?: number[]): void; - writePackedSfixed64(field: number, - value?: number[]): void; - writePackedSfixed64String(field: number, - value?: string[]): void; - writePackedFloat(field: number, - value?: number[]): void; - writePackedDouble(field: number, - value?: number[]): void; - writePackedBool(field: number, - value?: boolean[]): void; - writePackedEnum(field: number, - value?: number[]): void; - writePackedFixedHash64(field: number, - value?: string[]): void; - writePackedVarintHash64(field: number, - value?: string[]): void; -} - -export class BinaryEncoder { - constructor(); - length(): number; - end(): number[]; - writeSplitVarint64(lowBits: number, - highBits: number): void; - writeSplitFixed64(lowBits: number, - highBits: number): void; - writeUnsignedVarint32(value: number): void; - writeSignedVarint32(value: number): void; - writeUnsignedVarint64(value: number): void; - writeSignedVarint64(value: number): void; - writeZigzagVarint32(value: number): void; - writeZigzagVarint64(value: number): void; - writeZigzagVarint64String(value: string): void; - writeUint8(value: number): void; - writeUint16(value: number): void; - writeUint32(value: number): void; - writeUint64(value: number): void; - writeInt8(value: number): void; - writeInt16(value: number): void; - writeInt32(value: number): void; - writeInt64(value: number): void; - writeInt64String(value: string): void; - writeFloat(value: number): void; - writeDouble(value: number): void; - writeBool(value: boolean): void; - writeEnum(value: number): void; - writeBytes(bytes: Uint8Array): void; - writeVarintHash64(hash: string): void; - writeFixedHash64(hash: string): void; - writeString(value: string): number; -} - -export class BinaryDecoder { - constructor(bytes?: ByteSource, - start?: number, - length?: number) - static alloc(bytes?: ByteSource, - start?: number, - length?: number): BinaryDecoder; - free(): void; - clone(): BinaryDecoder; - clear(): void; - getBuffer(): Uint8Array; - setBlock(data: ByteSource, - start?: number, - length?: number): void; - getEnd(): number; - setEnd(end: number): void; - reset(): void; - getCursor(): number; - setCursor(cursor: number): void; - advance(count: number): void; - atEnd(): boolean; - pastEnd(): boolean; - getError(): boolean; - skipVarint(): void; - unskipVarint(value: number): void; - readUnsignedVarint32(): number; - readSignedVarint32(): number; - readUnsignedVarint32String(): number; - readSignedVarint32String(): number; - readZigzagVarint32(): number; - readUnsignedVarint64(): number; - readUnsignedVarint64String(): number; - readSignedVarint64(): number; - readSignedVarint64String(): number; - readZigzagVarint64(): number; - readZigzagVarint64String(): number; - readUint8(): number; - readUint16(): number; - readUint32(): number; - readUint64(): number; - readUint64String(): string; - readInt8(): number; - readInt16(): number; - readInt32(): number; - readInt64(): number; - readInt64String(): string; - readFloat(): number; - readDouble(): number; - readBool(): boolean; - readEnum(): number; - readString(length: number): string; - readStringWithLength(): string; - readBytes(length: number): Uint8Array; - readVarintHash64(): string; - readFixedHash64(): string; -} - -export class BinaryIterator { - constructor(decoder?: BinaryDecoder, - next?: () => number|boolean|string|null, - elements?: Array) - static alloc(decoder?: BinaryDecoder, - next?: () => number|boolean|string|null, - elements?: Array): BinaryIterator; - free(): void; - clear(): void; - get(): (ScalarFieldType | null); - atEnd(): boolean; - next(): (ScalarFieldType | null); -} - -export namespace BinaryConstants { - export enum FieldType { - INVALID = -1, - DOUBLE = 1, - FLOAT = 2, - INT64 = 3, - UINT64 = 4, - INT32 = 5, - FIXED64 = 6, - FIXED32 = 7, - BOOL = 8, - STRING = 9, - GROUP = 10, - MESSAGE = 11, - BYTES = 12, - UINT32 = 13, - ENUM = 14, - SFIXED32 = 15, - SFIXED64 = 16, - SINT32 = 17, - SINT64 = 18, - FHASH64 = 30, - VHASH64 = 31, - } - - export enum WireType { - INVALID = -1, - VARINT = 0, - FIXED64 = 1, - DELIMITED = 2, - START_GROUP = 3, - END_GROUP = 4, - FIXED32 = 5, - } - - const FieldTypeToWireType: (fieldType: FieldType) => WireType; - - const INVALID_FIELD_NUMBER: number; - const FLOAT32_EPS: number; - const FLOAT32_MIN: number; - const FLOAT32_MAX: number; - const FLOAT64_EPS: number; - const FLOAT64_MIN: number; - const FLOAT64_MAX: number; - const TWO_TO_20: number; - const TWO_TO_23: number; - const TWO_TO_31: number; - const TWO_TO_32: number; - const TWO_TO_52: number; - const TWO_TO_63: number; - const TWO_TO_64: number; - const ZERO_HASH: string; -} - -export namespace arith { - export class UInt64 { - lo: number; - hi: number; - constructor(lo: number, - hi: number); - cmp(other: UInt64): number; - rightShift(): UInt64; - leftShift(): UInt64; - msb(): boolean; - lsb(): boolean; - zero(): boolean; - add(other: UInt64): UInt64; - sub(other: UInt64): UInt64; - static mul32x32(a: number, - b: number): UInt64; - mul(a: number): UInt64; - div(divisor: number): [UInt64, UInt64]; - toString(): string; - static fromString(str: string): UInt64; - clone(): UInt64; - } - - export class Int64 { - lo: number; - hi: number; - constructor(lo: number, - hi: number); - add(other: Int64): Int64; - sub(other: Int64): Int64; - clone(): Int64; - toString(): string; - static fromString(str: string): Int64; - } -} - -// jspb.utils package excluded as it likely shouldn't be called by user code \ No newline at end of file diff --git a/highcharts/test/no-data-to-display.ts b/highcharts/test/no-data-to-display.ts deleted file mode 100644 index e2bb453714..0000000000 --- a/highcharts/test/no-data-to-display.ts +++ /dev/null @@ -1,8 +0,0 @@ -function test_NoDataToDisplay() { - var chart = $("#container").highcharts(); - var chartHasData = chart.hasData(); - chart.hideNoData(); - chart.showNoData("Custom no data message"); -} - -HighchartsNoDataToDisplay(Highcharts); \ No newline at end of file diff --git a/http-codes/index.d.ts b/http-codes/index.d.ts deleted file mode 100644 index e106812f0c..0000000000 --- a/http-codes/index.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -// Type definitions for http-codes 1.0 -// Project: https://github.com/flesler/node-http-codes -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export declare const ACCEPTED: number; -export declare const ALREADY_REPORTED: number; -export declare const BAD_GATEWAY: number; -export declare const BAD_REQUEST: number; -export declare const BANDWIDTH_LIMIT_EXCEEDED: number; -export declare const CONFLICT: number; -export declare const CONTINUE: number; -export declare const CREATED: number; -export declare const EXPECTATION_FAILED: number; -export declare const FAILED_DEPENDENCY: number; -export declare const FORBIDDEN: number; -export declare const FOUND: number; -export declare const GATEWAY_TIMEOUT: number; -export declare const GONE: number; -export declare const HTTP_VERSION_NOT_SUPPORTED: number; -export declare const IM_A_TEAPOT: number; -export declare const IM_USED: number; -export declare const INSUFFICIENT_STORAGE: number; -export declare const INTERNAL_SERVER_ERROR: number; -export declare const LENGTH_REQUIRED: number; -export declare const LOCKED: number; -export declare const LOOP_DETECTED: number; -export declare const METHOD_NOT_ALLOWED: number; -export declare const MISDIRECTED_REQUEST: number; -export declare const MOVED_PERMANENTLY: number; -export declare const MULTIPLE_CHOICES: number; -export declare const MULTI_STATUS: number; -export declare const NETWORK_AUTHENTICATION_REQUIRED: number; -export declare const NON_AUTHORITATIVE_INFORMATION: number; -export declare const NOT_ACCEPTABLE: number; -export declare const NOT_EXTENDED: number; -export declare const NOT_FOUND: number; -export declare const NOT_IMPLEMENTED: number; -export declare const NOT_MODIFIED: number; -export declare const NO_CONTENT: number; -export declare const OK: number; -export declare const PARTIAL_CONTENT: number; -export declare const PAYLOAD_TOO_LARGE: number; -export declare const PAYMENT_REQUIRED: number; -export declare const PERMANENT_REDIRECT: number; -export declare const PRECONDITION_FAILED: number; -export declare const PRECONDITION_REQUIRED: number; -export declare const PROCESSING: number; -export declare const PROXY_AUTHENTICATION_REQUIRED: number; -export declare const RANGE_NOT_SATISFIABLE: number; -export declare const REQUEST_HEADER_FIELDS_TOO_LARGE: number; -export declare const REQUEST_TIMEOUT: number; -export declare const RESET_CONTENT: number; -export declare const SEE_OTHER: number; -export declare const SERVICE_UNAVAILABLE: number; -export declare const SWITCHING_PROTOCOLS: number; -export declare const TEMPORARY_REDIRECT: number; -export declare const TOO_MANY_REQUESTS: number; -export declare const UNAUTHORIZED: number; -export declare const UNAVAILABLE_FOR_LEGAL_REASONS: number; -export declare const UNORDERED_COLLECTION: number; -export declare const UNPROCESSABLE_ENTITY: number; -export declare const UNSUPPORTED_MEDIA_TYPE: number; -export declare const UPGRADE_REQUIRED: number; -export declare const URI_TOO_LONG: number; -export declare const USE_PROXY: number; -export declare const VARIANT_ALSO_NEGOTIATES: number; diff --git a/jmespath/jmespath-tests.ts b/jmespath/jmespath-tests.ts deleted file mode 100644 index 04034acf67..0000000000 --- a/jmespath/jmespath-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import jmespath = require("jmespath"); - -const a = jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar.baz[2]"); -const b = jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar") -const c = jmespath.search({"foo": [{"first": "a", "last": "b"}, {"first": "c", "last": "d"}]}, "foo[*].first"); -const d = jmespath.search({"foo": [{"age": 20}, {"age": 25}, {"age": 30}, {"age": 35}, {"age": 40}]}, "foo[?age > `30`]"); diff --git a/jquery-toastmessage-plugin/jquery-toastmessage-plugin-tests.ts b/jquery-toastmessage-plugin/jquery-toastmessage-plugin-tests.ts deleted file mode 100644 index f11813cfbb..0000000000 --- a/jquery-toastmessage-plugin/jquery-toastmessage-plugin-tests.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* code examples from documentation */ - -$().toastmessage('showNoticeToast', 'some message here'); -$().toastmessage('showSuccessToast', "some message here"); -$().toastmessage('showWarningToast', "some message here"); -$().toastmessage('showErrorToast', "some message here"); - -// user configured toastmessage: -const toastObject = $().toastmessage('showToast', { - text : 'Hello World', - sticky : true, - position : 'top-right', - type : 'success', - close : function () {console.log("toast is closed ...");} -}); - -$().toastmessage('removeToast', toastObject); - -// reconfiguring the toasts as sticky -$().toastmessage({sticky : true}); - -// saving the newly created toast into a variable -var myToast = $().toastmessage('showNoticeToast', 'some message here'); - -// removing the toast -$().toastmessage('removeToast', myToast); - -// user configuration of all toastmessages to come: -$().toastmessage({ - text : 'Hello World', - sticky : true, - position : 'top-right', - type : 'success', - close : function () {console.log("toast is closed ...");} -}); - -$().toastmessage({ - inEffectDuration: 600, // in effect duration in miliseconds - stayTime: 3000, // time in miliseconds before the item has to disappear - text: '', // content of the item - sticky: false, // should the toast item sticky or not? - type: 'notice', // notice, warning, error, success - position: 'top-right', // top-left, top-center, top-right, middle-left, middle-center, middle-right - // Position of the toast container holding different toast. - // Position can be set only once at the very first call, - // changing the position after the first call does nothing - closeText: '', // text which will be shown as close button, - // set to '' when you want to introduce an image via css - close: undefined // callback function when the toastmessage is closed -}); - -/* code examples from tests */ - -$('.toast-container').remove(); - -$().toastmessage('showSuccessToast', "SUCCESS"); -$().toastmessage('showNoticeToast', "NOTICE"); -$().toastmessage('showWarningToast', "WARNING"); -$().toastmessage('showErrorToast', "ERROR"); -$().toastmessage({ - sticky : true, - position : 'top-right', - closeText: '' -}); -$().toastmessage('showToast', { - text : 'Success Dialog', - type : 'success' -}); -$().toastmessage('showToast', { - text : 'Success Dialog', - sticky : true, - position : 'top-right', - type : 'success', - closeText: '', - close : () => {} -}); -var toast = $().toastmessage('showToast', { - text : 'Success Dialog', - sticky : true, - position : 'top-right', - type : 'success', - closeText: '', - close : () => {} -}); -$().toastmessage('removeToast', toast, { close : () => {} }); diff --git a/jump.js/index.d.ts b/jump.js/index.d.ts deleted file mode 100644 index fdef97c712..0000000000 --- a/jump.js/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for jump.js 1.0 -// Project: https://github.com/callmecavs/jump.js -// Definitions by: rhysd -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare type TransitionFunc = (t: number, b: number, c: number, d: number) => number; -declare interface JumpOptions { - duration?: number; - offset?: number; - callback?: () => void; - easing?: TransitionFunc; - a11y?: boolean; -} -declare type Jump = (target: string | Element | number, opts?: JumpOptions) => void; -declare const jump: Jump; -export = jump; diff --git a/kramed/kramed-tests.ts b/kramed/kramed-tests.ts deleted file mode 100644 index 0782742234..0000000000 --- a/kramed/kramed-tests.ts +++ /dev/null @@ -1,43 +0,0 @@ - -import { KramedOptions, kramed, KramedParser, KramedStatic, KramedRenderer } from 'kramed'; - -var options: KramedOptions = { - gfm: true, - tables: true, - breaks: false, - pedantic: false, - sanitize: true, - smartLists: true, - silent: false, - highlight: function (code: string, lang: string) { - return ''; - }, - langPrefix: 'lang-', - smartypants: false, - renderer: new kramed.Renderer() -}; - -function callback() { - console.log('callback called'); -} - -kramed.setOptions(options); - -console.log(kramed('i am using __kramdown__.')); -console.log(kramed('i am using __kramdown__.', options)); -console.log(kramed('i am using __kramdown__.', callback)); -console.log(kramed('i am using __kramdown__.', options, callback)); - -console.log(kramed.parse('i am using __kramdown__.')); -console.log(kramed.parse('i am using __kramdown__.', options)); -console.log(kramed.parse('i am using __kramdown__.', callback)); -console.log(kramed.parse('i am using __kramdown__.', options, callback)); - -var text = 'something'; -var tokens = kramed.lexer(text, options); -console.log(kramed.parser(tokens)); - -var renderer = new kramed.Renderer(); -renderer.heading = function(text, level, raw) { - return text + level.toString() + raw; -}; diff --git a/leaflet-imageoverlay-rotated/index.d.ts b/leaflet-imageoverlay-rotated/index.d.ts deleted file mode 100644 index acb4d7f172..0000000000 --- a/leaflet-imageoverlay-rotated/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Type definitions for leaflet-imageoverlay-rotated 0.1 -// Project: https://github.com/IvanSanchez/Leaflet.ImageOverlay.Rotated -// Definitions by: Thomas Kleinke -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare namespace L { - - namespace ImageOverlay { - - export interface Rotated extends L.ImageOverlay { - reposition(topleft: L.LatLngExpression, - topright: L.LatLngExpression, - bottomleft: L.LatLngExpression): void; - } - } - - namespace imageOverlay { - - export function rotated(imgSrc: string | HTMLImageElement | HTMLCanvasElement, - topleft: L.LatLngExpression, - topright: L.LatLngExpression, - bottomleft: L.LatLngExpression, - options?: L.ImageOverlayOptions): L.ImageOverlay.Rotated; - } -} diff --git a/leaflet-imageoverlay-rotated/leaflet-imageoverlay-rotated-tests.ts b/leaflet-imageoverlay-rotated/leaflet-imageoverlay-rotated-tests.ts deleted file mode 100644 index 1b2ffd6c20..0000000000 --- a/leaflet-imageoverlay-rotated/leaflet-imageoverlay-rotated-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -var topleft = L.latLng(40.52256691873593, -3.7743186950683594); -var topright = L.latLng(40.5210255066156, -3.7734764814376835); -var bottomleft = L.latLng(40.52180437272552, -3.7768453359603886); - -var overlay = L.imageOverlay.rotated("image.jpg", topleft, topright, bottomleft, { - opacity: 0.5, - interactive: true -}); - -overlay.reposition(topleft, topright, bottomleft); diff --git a/linq4js/linq4js-tests.ts b/linq4js/linq4js-tests.ts deleted file mode 100644 index 9e0bbe7be5..0000000000 --- a/linq4js/linq4js-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import "linq4js"; - -let array: Array = ["test", "test2", "test3", "test4", "test5"]; - -array.Add("test6").Remove("test3").Insert("test3", 2).Distinct().OrderBy(x => x).OrderByDescending(x => x).Select(x => x.length).Average(); \ No newline at end of file diff --git a/react-paginate/react-paginate-tests.tsx b/react-paginate/react-paginate-tests.tsx deleted file mode 100644 index 42a7c49c30..0000000000 --- a/react-paginate/react-paginate-tests.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import * as React from "react"; -import ReactPaginate = require("react-paginate"); - -class Test extends React.Component<{}, {}> { - public render() { - return ( - - ); - } -} diff --git a/scripts/fix-tslint.ts b/scripts/fix-tslint.ts index 940257e945..a54f4c7386 100644 --- a/scripts/fix-tslint.ts +++ b/scripts/fix-tslint.ts @@ -2,16 +2,11 @@ /// -import assert = require("assert"); -import * as fs from 'fs'; -import * as path from 'path'; +import * as fs from "fs"; +import * as path from "path"; import JSON = require("comment-json"); -function repeat(s: string, count: number) { - return Array(count + 1).join(s); -} - -const home = path.join(__dirname, '..'); +const home = path.join(__dirname, "..", "types"); for (const dirName of fs.readdirSync(home)) { if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") { diff --git a/scripts/lint.js b/scripts/lint.js index 4d47ce3406..84ef71259d 100644 --- a/scripts/lint.js +++ b/scripts/lint.js @@ -4,9 +4,11 @@ const execSync = require("child_process").execSync; const existsSync = require("fs").existsSync; const path = require("path"); +const pkgPath = path.join("types", pkg); + // Path of tslint when `types-publisher` is symlinked -const symlinkedTslintPath = "../node_modules/types-publisher/node_modules/tslint" -let tslintPath = existsSync(path.join(pkg, symlinkedTslintPath)) ? symlinkedTslintPath : "../node_modules/tslint"; +const symlinkedTslintPath = "../../node_modules/types-publisher/node_modules/tslint" +let tslintPath = existsSync(path.join(pkgPath, symlinkedTslintPath)) ? symlinkedTslintPath : "../node_modules/tslint"; // An older version (e.g. abs/v0) is in a nested directory, so needs to look one more level up for tslint. if (pkg.includes("/") && pkg[pkg.length - 1] !== "/") { tslintPath = path.join("..", tslintPath); @@ -17,7 +19,7 @@ console.log(cmd); try { // Child process writes directly to our own stdout - execSync(cmd, { cwd: pkg, stdio: "inherit" }); + execSync(cmd, { cwd: pkgPath, stdio: "inherit" }); } catch (_) { // Process should have printed out error info } diff --git a/scripts/not-needed.js b/scripts/not-needed.js index 2462f3f2e2..e17b3ac6ce 100644 --- a/scripts/not-needed.js +++ b/scripts/not-needed.js @@ -13,7 +13,7 @@ if (process.argv.length !== 5 && process.argv.length !== 6) { process.exit(1); } -rmdirRecursive(typingsPackageName); +rmdirRecursive(path.join("types", typingsPackageName)); const notNeededPackages = JSON.parse(fs.readFileSync("notNeededPackages.json", "utf-8")); notNeededPackages.packages.push({ libraryName, typingsPackageName, sourceRepoURL, asOfVersion }); notNeededPackages.packages.sort((x, y) => x.typingsPackageName < y.typingsPackageName ? -1 : 1); diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index f0f0258c77..899f96af64 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -4,9 +4,13 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": true, - "baseUrl": "../", + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "baseUrl": "../types", "typeRoots": [ - "../" + "../types" ], "types": [], "forceConsistentCasingInFileNames": true diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 7847d36674..0000000000 --- a/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "./node_modules/types-publisher/tslint-definitions.json" } diff --git a/3d-bin-packing/3d-bin-packing-tests.ts b/types/3d-bin-packing/3d-bin-packing-tests.ts similarity index 100% rename from 3d-bin-packing/3d-bin-packing-tests.ts rename to types/3d-bin-packing/3d-bin-packing-tests.ts diff --git a/3d-bin-packing/index.d.ts b/types/3d-bin-packing/index.d.ts similarity index 100% rename from 3d-bin-packing/index.d.ts rename to types/3d-bin-packing/index.d.ts diff --git a/3d-bin-packing/tsconfig.json b/types/3d-bin-packing/tsconfig.json similarity index 100% rename from 3d-bin-packing/tsconfig.json rename to types/3d-bin-packing/tsconfig.json diff --git a/ably/ably-tests.ts b/types/ably/ably-tests.ts similarity index 100% rename from ably/ably-tests.ts rename to types/ably/ably-tests.ts diff --git a/ably/index.d.ts b/types/ably/index.d.ts similarity index 100% rename from ably/index.d.ts rename to types/ably/index.d.ts diff --git a/ably/tsconfig.json b/types/ably/tsconfig.json similarity index 100% rename from ably/tsconfig.json rename to types/ably/tsconfig.json diff --git a/ably/tslint.json b/types/ably/tslint.json similarity index 100% rename from ably/tslint.json rename to types/ably/tslint.json diff --git a/abs/abs-tests.ts b/types/abs/abs-tests.ts similarity index 100% rename from abs/abs-tests.ts rename to types/abs/abs-tests.ts diff --git a/abs/index.d.ts b/types/abs/index.d.ts similarity index 100% rename from abs/index.d.ts rename to types/abs/index.d.ts diff --git a/abs/tsconfig.json b/types/abs/tsconfig.json similarity index 100% rename from abs/tsconfig.json rename to types/abs/tsconfig.json diff --git a/abs/tslint.json b/types/abs/tslint.json similarity index 100% rename from abs/tslint.json rename to types/abs/tslint.json diff --git a/absolute/absolute-tests.ts b/types/absolute/absolute-tests.ts similarity index 100% rename from absolute/absolute-tests.ts rename to types/absolute/absolute-tests.ts diff --git a/absolute/index.d.ts b/types/absolute/index.d.ts similarity index 100% rename from absolute/index.d.ts rename to types/absolute/index.d.ts diff --git a/absolute/tsconfig.json b/types/absolute/tsconfig.json similarity index 100% rename from absolute/tsconfig.json rename to types/absolute/tsconfig.json diff --git a/acc-wizard/acc-wizard-tests.ts b/types/acc-wizard/acc-wizard-tests.ts similarity index 100% rename from acc-wizard/acc-wizard-tests.ts rename to types/acc-wizard/acc-wizard-tests.ts diff --git a/acc-wizard/index.d.ts b/types/acc-wizard/index.d.ts similarity index 100% rename from acc-wizard/index.d.ts rename to types/acc-wizard/index.d.ts diff --git a/acc-wizard/tsconfig.json b/types/acc-wizard/tsconfig.json similarity index 100% rename from acc-wizard/tsconfig.json rename to types/acc-wizard/tsconfig.json diff --git a/accepts/accepts-tests.ts b/types/accepts/accepts-tests.ts similarity index 100% rename from accepts/accepts-tests.ts rename to types/accepts/accepts-tests.ts diff --git a/accepts/index.d.ts b/types/accepts/index.d.ts similarity index 100% rename from accepts/index.d.ts rename to types/accepts/index.d.ts diff --git a/accepts/tsconfig.json b/types/accepts/tsconfig.json similarity index 100% rename from accepts/tsconfig.json rename to types/accepts/tsconfig.json diff --git a/accepts/tslint.json b/types/accepts/tslint.json similarity index 100% rename from accepts/tslint.json rename to types/accepts/tslint.json diff --git a/accounting/accounting-tests.ts b/types/accounting/accounting-tests.ts similarity index 100% rename from accounting/accounting-tests.ts rename to types/accounting/accounting-tests.ts diff --git a/accounting/index.d.ts b/types/accounting/index.d.ts similarity index 100% rename from accounting/index.d.ts rename to types/accounting/index.d.ts diff --git a/accounting/tsconfig.json b/types/accounting/tsconfig.json similarity index 100% rename from accounting/tsconfig.json rename to types/accounting/tsconfig.json diff --git a/accounting/tslint.json b/types/accounting/tslint.json similarity index 100% rename from accounting/tslint.json rename to types/accounting/tslint.json diff --git a/ace/index.d.ts b/types/ace/index.d.ts similarity index 100% rename from ace/index.d.ts rename to types/ace/index.d.ts diff --git a/ace/test/anchor.ts b/types/ace/test/anchor.ts similarity index 100% rename from ace/test/anchor.ts rename to types/ace/test/anchor.ts diff --git a/ace/test/background_tokenizer.ts b/types/ace/test/background_tokenizer.ts similarity index 100% rename from ace/test/background_tokenizer.ts rename to types/ace/test/background_tokenizer.ts diff --git a/ace/test/default.ts b/types/ace/test/default.ts similarity index 100% rename from ace/test/default.ts rename to types/ace/test/default.ts diff --git a/ace/test/document.ts b/types/ace/test/document.ts similarity index 100% rename from ace/test/document.ts rename to types/ace/test/document.ts diff --git a/ace/test/edit_session.ts b/types/ace/test/edit_session.ts similarity index 100% rename from ace/test/edit_session.ts rename to types/ace/test/edit_session.ts diff --git a/ace/test/editor1.ts b/types/ace/test/editor1.ts similarity index 100% rename from ace/test/editor1.ts rename to types/ace/test/editor1.ts diff --git a/ace/test/editor_highlight_selected_word.ts b/types/ace/test/editor_highlight_selected_word.ts similarity index 100% rename from ace/test/editor_highlight_selected_word.ts rename to types/ace/test/editor_highlight_selected_word.ts diff --git a/ace/test/editor_navigation.ts b/types/ace/test/editor_navigation.ts similarity index 100% rename from ace/test/editor_navigation.ts rename to types/ace/test/editor_navigation.ts diff --git a/ace/test/editor_text_edit.ts b/types/ace/test/editor_text_edit.ts similarity index 100% rename from ace/test/editor_text_edit.ts rename to types/ace/test/editor_text_edit.ts diff --git a/ace/test/multi_select.ts b/types/ace/test/multi_select.ts similarity index 100% rename from ace/test/multi_select.ts rename to types/ace/test/multi_select.ts diff --git a/ace/test/placeholder.ts b/types/ace/test/placeholder.ts similarity index 100% rename from ace/test/placeholder.ts rename to types/ace/test/placeholder.ts diff --git a/ace/test/range.ts b/types/ace/test/range.ts similarity index 100% rename from ace/test/range.ts rename to types/ace/test/range.ts diff --git a/ace/test/range_list.ts b/types/ace/test/range_list.ts similarity index 100% rename from ace/test/range_list.ts rename to types/ace/test/range_list.ts diff --git a/ace/test/search.ts b/types/ace/test/search.ts similarity index 100% rename from ace/test/search.ts rename to types/ace/test/search.ts diff --git a/ace/test/selection.ts b/types/ace/test/selection.ts similarity index 100% rename from ace/test/selection.ts rename to types/ace/test/selection.ts diff --git a/ace/test/token_iterator.ts b/types/ace/test/token_iterator.ts similarity index 100% rename from ace/test/token_iterator.ts rename to types/ace/test/token_iterator.ts diff --git a/ace/test/virtual_renderer.ts b/types/ace/test/virtual_renderer.ts similarity index 100% rename from ace/test/virtual_renderer.ts rename to types/ace/test/virtual_renderer.ts diff --git a/ace/tsconfig.json b/types/ace/tsconfig.json similarity index 100% rename from ace/tsconfig.json rename to types/ace/tsconfig.json diff --git a/acl/index.d.ts b/types/acl/index.d.ts similarity index 100% rename from acl/index.d.ts rename to types/acl/index.d.ts diff --git a/acl/test/index.ts b/types/acl/test/index.ts similarity index 100% rename from acl/test/index.ts rename to types/acl/test/index.ts diff --git a/acl/test/mongodbBackend.ts b/types/acl/test/mongodbBackend.ts similarity index 100% rename from acl/test/mongodbBackend.ts rename to types/acl/test/mongodbBackend.ts diff --git a/acl/test/redisBackend.ts b/types/acl/test/redisBackend.ts similarity index 100% rename from acl/test/redisBackend.ts rename to types/acl/test/redisBackend.ts diff --git a/acl/tsconfig.json b/types/acl/tsconfig.json similarity index 100% rename from acl/tsconfig.json rename to types/acl/tsconfig.json diff --git a/acorn/README.md b/types/acorn/README.md similarity index 100% rename from acorn/README.md rename to types/acorn/README.md diff --git a/acorn/acorn-tests.ts b/types/acorn/acorn-tests.ts similarity index 100% rename from acorn/acorn-tests.ts rename to types/acorn/acorn-tests.ts diff --git a/acorn/index.d.ts b/types/acorn/index.d.ts similarity index 100% rename from acorn/index.d.ts rename to types/acorn/index.d.ts diff --git a/acorn/tsconfig.json b/types/acorn/tsconfig.json similarity index 100% rename from acorn/tsconfig.json rename to types/acorn/tsconfig.json diff --git a/actioncable/actioncable-tests.ts b/types/actioncable/actioncable-tests.ts similarity index 100% rename from actioncable/actioncable-tests.ts rename to types/actioncable/actioncable-tests.ts diff --git a/actioncable/index.d.ts b/types/actioncable/index.d.ts similarity index 100% rename from actioncable/index.d.ts rename to types/actioncable/index.d.ts diff --git a/actioncable/tsconfig.json b/types/actioncable/tsconfig.json similarity index 100% rename from actioncable/tsconfig.json rename to types/actioncable/tsconfig.json diff --git a/activex-data-objects/activex-data-objects-tests.ts b/types/activex-data-objects/activex-data-objects-tests.ts similarity index 100% rename from activex-data-objects/activex-data-objects-tests.ts rename to types/activex-data-objects/activex-data-objects-tests.ts diff --git a/activex-data-objects/index.d.ts b/types/activex-data-objects/index.d.ts similarity index 100% rename from activex-data-objects/index.d.ts rename to types/activex-data-objects/index.d.ts diff --git a/activex-data-objects/tsconfig.json b/types/activex-data-objects/tsconfig.json similarity index 100% rename from activex-data-objects/tsconfig.json rename to types/activex-data-objects/tsconfig.json diff --git a/activex-scripting-runtime/activex-scripting-runtime-tests.ts b/types/activex-scripting-runtime/activex-scripting-runtime-tests.ts similarity index 100% rename from activex-scripting-runtime/activex-scripting-runtime-tests.ts rename to types/activex-scripting-runtime/activex-scripting-runtime-tests.ts diff --git a/activex-scripting-runtime/index.d.ts b/types/activex-scripting-runtime/index.d.ts similarity index 100% rename from activex-scripting-runtime/index.d.ts rename to types/activex-scripting-runtime/index.d.ts diff --git a/activex-scripting-runtime/tsconfig.json b/types/activex-scripting-runtime/tsconfig.json similarity index 100% rename from activex-scripting-runtime/tsconfig.json rename to types/activex-scripting-runtime/tsconfig.json diff --git a/activex-windows-image-acquisition/activex-windows-image-acquisition-tests.ts b/types/activex-windows-image-acquisition/activex-windows-image-acquisition-tests.ts similarity index 100% rename from activex-windows-image-acquisition/activex-windows-image-acquisition-tests.ts rename to types/activex-windows-image-acquisition/activex-windows-image-acquisition-tests.ts diff --git a/activex-windows-image-acquisition/index.d.ts b/types/activex-windows-image-acquisition/index.d.ts similarity index 100% rename from activex-windows-image-acquisition/index.d.ts rename to types/activex-windows-image-acquisition/index.d.ts diff --git a/activex-windows-image-acquisition/tsconfig.json b/types/activex-windows-image-acquisition/tsconfig.json similarity index 100% rename from activex-windows-image-acquisition/tsconfig.json rename to types/activex-windows-image-acquisition/tsconfig.json diff --git a/adal/adal-angular.d.ts b/types/adal/adal-angular.d.ts similarity index 100% rename from adal/adal-angular.d.ts rename to types/adal/adal-angular.d.ts diff --git a/adal/index.d.ts b/types/adal/index.d.ts similarity index 100% rename from adal/index.d.ts rename to types/adal/index.d.ts diff --git a/adal/test/angular.ts b/types/adal/test/angular.ts similarity index 100% rename from adal/test/angular.ts rename to types/adal/test/angular.ts diff --git a/adal/test/index.ts b/types/adal/test/index.ts similarity index 100% rename from adal/test/index.ts rename to types/adal/test/index.ts diff --git a/adal/tsconfig.json b/types/adal/tsconfig.json similarity index 100% rename from adal/tsconfig.json rename to types/adal/tsconfig.json diff --git a/add2home/add2home-tests.ts b/types/add2home/add2home-tests.ts similarity index 100% rename from add2home/add2home-tests.ts rename to types/add2home/add2home-tests.ts diff --git a/add2home/index.d.ts b/types/add2home/index.d.ts similarity index 100% rename from add2home/index.d.ts rename to types/add2home/index.d.ts diff --git a/add2home/tsconfig.json b/types/add2home/tsconfig.json similarity index 100% rename from add2home/tsconfig.json rename to types/add2home/tsconfig.json diff --git a/adm-zip/adm-zip-tests.ts b/types/adm-zip/adm-zip-tests.ts similarity index 100% rename from adm-zip/adm-zip-tests.ts rename to types/adm-zip/adm-zip-tests.ts diff --git a/adm-zip/index.d.ts b/types/adm-zip/index.d.ts similarity index 100% rename from adm-zip/index.d.ts rename to types/adm-zip/index.d.ts diff --git a/adm-zip/tsconfig.json b/types/adm-zip/tsconfig.json similarity index 100% rename from adm-zip/tsconfig.json rename to types/adm-zip/tsconfig.json diff --git a/ag-grid/ag-grid-tests.ts b/types/ag-grid/ag-grid-tests.ts similarity index 100% rename from ag-grid/ag-grid-tests.ts rename to types/ag-grid/ag-grid-tests.ts diff --git a/ag-grid/index.d.ts b/types/ag-grid/index.d.ts similarity index 100% rename from ag-grid/index.d.ts rename to types/ag-grid/index.d.ts diff --git a/ag-grid/tsconfig.json b/types/ag-grid/tsconfig.json similarity index 100% rename from ag-grid/tsconfig.json rename to types/ag-grid/tsconfig.json diff --git a/agenda/agenda-tests.ts b/types/agenda/agenda-tests.ts similarity index 100% rename from agenda/agenda-tests.ts rename to types/agenda/agenda-tests.ts diff --git a/agenda/index.d.ts b/types/agenda/index.d.ts similarity index 100% rename from agenda/index.d.ts rename to types/agenda/index.d.ts diff --git a/agenda/tsconfig.json b/types/agenda/tsconfig.json similarity index 100% rename from agenda/tsconfig.json rename to types/agenda/tsconfig.json diff --git a/alertify/alertify-tests.ts b/types/alertify/alertify-tests.ts similarity index 100% rename from alertify/alertify-tests.ts rename to types/alertify/alertify-tests.ts diff --git a/alertify/index.d.ts b/types/alertify/index.d.ts similarity index 100% rename from alertify/index.d.ts rename to types/alertify/index.d.ts diff --git a/alertify/tsconfig.json b/types/alertify/tsconfig.json similarity index 100% rename from alertify/tsconfig.json rename to types/alertify/tsconfig.json diff --git a/alexa-sdk/alexa-sdk-tests.ts b/types/alexa-sdk/alexa-sdk-tests.ts similarity index 100% rename from alexa-sdk/alexa-sdk-tests.ts rename to types/alexa-sdk/alexa-sdk-tests.ts diff --git a/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts similarity index 100% rename from alexa-sdk/index.d.ts rename to types/alexa-sdk/index.d.ts diff --git a/alexa-sdk/tsconfig.json b/types/alexa-sdk/tsconfig.json similarity index 100% rename from alexa-sdk/tsconfig.json rename to types/alexa-sdk/tsconfig.json diff --git a/algoliasearch/algoliasearch-tests.ts b/types/algoliasearch/algoliasearch-tests.ts similarity index 100% rename from algoliasearch/algoliasearch-tests.ts rename to types/algoliasearch/algoliasearch-tests.ts diff --git a/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts similarity index 100% rename from algoliasearch/index.d.ts rename to types/algoliasearch/index.d.ts diff --git a/algoliasearch/tsconfig.json b/types/algoliasearch/tsconfig.json similarity index 100% rename from algoliasearch/tsconfig.json rename to types/algoliasearch/tsconfig.json diff --git a/alt/alt-tests.ts b/types/alt/alt-tests.ts similarity index 100% rename from alt/alt-tests.ts rename to types/alt/alt-tests.ts diff --git a/alt/index.d.ts b/types/alt/index.d.ts similarity index 100% rename from alt/index.d.ts rename to types/alt/index.d.ts diff --git a/alt/tsconfig.json b/types/alt/tsconfig.json similarity index 100% rename from alt/tsconfig.json rename to types/alt/tsconfig.json diff --git a/amazon-product-api/amazon-product-api-tests.ts b/types/amazon-product-api/amazon-product-api-tests.ts similarity index 100% rename from amazon-product-api/amazon-product-api-tests.ts rename to types/amazon-product-api/amazon-product-api-tests.ts diff --git a/amazon-product-api/index.d.ts b/types/amazon-product-api/index.d.ts similarity index 100% rename from amazon-product-api/index.d.ts rename to types/amazon-product-api/index.d.ts diff --git a/amazon-product-api/tsconfig.json b/types/amazon-product-api/tsconfig.json similarity index 100% rename from amazon-product-api/tsconfig.json rename to types/amazon-product-api/tsconfig.json diff --git a/amcharts/index.d.ts b/types/amcharts/index.d.ts similarity index 100% rename from amcharts/index.d.ts rename to types/amcharts/index.d.ts diff --git a/amcharts/tsconfig.json b/types/amcharts/tsconfig.json similarity index 100% rename from amcharts/tsconfig.json rename to types/amcharts/tsconfig.json diff --git a/amplify-deferred/amplify-deferred-tests.ts b/types/amplify-deferred/amplify-deferred-tests.ts similarity index 100% rename from amplify-deferred/amplify-deferred-tests.ts rename to types/amplify-deferred/amplify-deferred-tests.ts diff --git a/amplify-deferred/index.d.ts b/types/amplify-deferred/index.d.ts similarity index 100% rename from amplify-deferred/index.d.ts rename to types/amplify-deferred/index.d.ts diff --git a/amplify-deferred/tsconfig.json b/types/amplify-deferred/tsconfig.json similarity index 100% rename from amplify-deferred/tsconfig.json rename to types/amplify-deferred/tsconfig.json diff --git a/amplify-deferred/tslint.json b/types/amplify-deferred/tslint.json similarity index 100% rename from amplify-deferred/tslint.json rename to types/amplify-deferred/tslint.json diff --git a/amplify/amplify-tests.ts b/types/amplify/amplify-tests.ts similarity index 100% rename from amplify/amplify-tests.ts rename to types/amplify/amplify-tests.ts diff --git a/amplify/index.d.ts b/types/amplify/index.d.ts similarity index 100% rename from amplify/index.d.ts rename to types/amplify/index.d.ts diff --git a/amplify/tsconfig.json b/types/amplify/tsconfig.json similarity index 100% rename from amplify/tsconfig.json rename to types/amplify/tsconfig.json diff --git a/amplify/tslint.json b/types/amplify/tslint.json similarity index 100% rename from amplify/tslint.json rename to types/amplify/tslint.json diff --git a/amplitude-js/amplitude-js-tests.ts b/types/amplitude-js/amplitude-js-tests.ts similarity index 100% rename from amplitude-js/amplitude-js-tests.ts rename to types/amplitude-js/amplitude-js-tests.ts diff --git a/amplitude-js/index.d.ts b/types/amplitude-js/index.d.ts similarity index 100% rename from amplitude-js/index.d.ts rename to types/amplitude-js/index.d.ts diff --git a/amplitude-js/tsconfig.json b/types/amplitude-js/tsconfig.json similarity index 100% rename from amplitude-js/tsconfig.json rename to types/amplitude-js/tsconfig.json diff --git a/amqp-rpc/amqp-rpc-tests.ts b/types/amqp-rpc/amqp-rpc-tests.ts similarity index 100% rename from amqp-rpc/amqp-rpc-tests.ts rename to types/amqp-rpc/amqp-rpc-tests.ts diff --git a/amqp-rpc/index.d.ts b/types/amqp-rpc/index.d.ts similarity index 100% rename from amqp-rpc/index.d.ts rename to types/amqp-rpc/index.d.ts diff --git a/amqp-rpc/tsconfig.json b/types/amqp-rpc/tsconfig.json similarity index 100% rename from amqp-rpc/tsconfig.json rename to types/amqp-rpc/tsconfig.json diff --git a/amqplib/amqplib-tests.ts b/types/amqplib/amqplib-tests.ts similarity index 100% rename from amqplib/amqplib-tests.ts rename to types/amqplib/amqplib-tests.ts diff --git a/amqplib/callback_api.d.ts b/types/amqplib/callback_api.d.ts similarity index 100% rename from amqplib/callback_api.d.ts rename to types/amqplib/callback_api.d.ts diff --git a/amqplib/index.d.ts b/types/amqplib/index.d.ts similarity index 100% rename from amqplib/index.d.ts rename to types/amqplib/index.d.ts diff --git a/amqplib/properties.d.ts b/types/amqplib/properties.d.ts similarity index 100% rename from amqplib/properties.d.ts rename to types/amqplib/properties.d.ts diff --git a/amqplib/tsconfig.json b/types/amqplib/tsconfig.json similarity index 100% rename from amqplib/tsconfig.json rename to types/amqplib/tsconfig.json diff --git a/amqplib/tslint.json b/types/amqplib/tslint.json similarity index 100% rename from amqplib/tslint.json rename to types/amqplib/tslint.json diff --git a/analytics-node/analytics-node-tests.ts b/types/analytics-node/analytics-node-tests.ts similarity index 100% rename from analytics-node/analytics-node-tests.ts rename to types/analytics-node/analytics-node-tests.ts diff --git a/analytics-node/index.d.ts b/types/analytics-node/index.d.ts similarity index 100% rename from analytics-node/index.d.ts rename to types/analytics-node/index.d.ts diff --git a/analytics-node/tsconfig.json b/types/analytics-node/tsconfig.json similarity index 100% rename from analytics-node/tsconfig.json rename to types/analytics-node/tsconfig.json diff --git a/angular-agility/angular-agility-tests.ts b/types/angular-agility/angular-agility-tests.ts similarity index 100% rename from angular-agility/angular-agility-tests.ts rename to types/angular-agility/angular-agility-tests.ts diff --git a/angular-agility/index.d.ts b/types/angular-agility/index.d.ts similarity index 100% rename from angular-agility/index.d.ts rename to types/angular-agility/index.d.ts diff --git a/angular-agility/tsconfig.json b/types/angular-agility/tsconfig.json similarity index 100% rename from angular-agility/tsconfig.json rename to types/angular-agility/tsconfig.json diff --git a/angular-animate/index.d.ts b/types/angular-animate/index.d.ts similarity index 100% rename from angular-animate/index.d.ts rename to types/angular-animate/index.d.ts diff --git a/angular-animate/tsconfig.json b/types/angular-animate/tsconfig.json similarity index 100% rename from angular-animate/tsconfig.json rename to types/angular-animate/tsconfig.json diff --git a/angular-bootstrap-calendar/angular-bootstrap-calendar-tests.ts b/types/angular-bootstrap-calendar/angular-bootstrap-calendar-tests.ts similarity index 100% rename from angular-bootstrap-calendar/angular-bootstrap-calendar-tests.ts rename to types/angular-bootstrap-calendar/angular-bootstrap-calendar-tests.ts diff --git a/angular-bootstrap-calendar/index.d.ts b/types/angular-bootstrap-calendar/index.d.ts similarity index 100% rename from angular-bootstrap-calendar/index.d.ts rename to types/angular-bootstrap-calendar/index.d.ts diff --git a/angular-bootstrap-calendar/package.json b/types/angular-bootstrap-calendar/package.json similarity index 100% rename from angular-bootstrap-calendar/package.json rename to types/angular-bootstrap-calendar/package.json diff --git a/angular-bootstrap-calendar/tsconfig.json b/types/angular-bootstrap-calendar/tsconfig.json similarity index 100% rename from angular-bootstrap-calendar/tsconfig.json rename to types/angular-bootstrap-calendar/tsconfig.json diff --git a/angular-bootstrap-lightbox/angular-bootstrap-lightbox-tests.ts b/types/angular-bootstrap-lightbox/angular-bootstrap-lightbox-tests.ts similarity index 100% rename from angular-bootstrap-lightbox/angular-bootstrap-lightbox-tests.ts rename to types/angular-bootstrap-lightbox/angular-bootstrap-lightbox-tests.ts diff --git a/angular-bootstrap-lightbox/index.d.ts b/types/angular-bootstrap-lightbox/index.d.ts similarity index 100% rename from angular-bootstrap-lightbox/index.d.ts rename to types/angular-bootstrap-lightbox/index.d.ts diff --git a/angular-bootstrap-lightbox/tsconfig.json b/types/angular-bootstrap-lightbox/tsconfig.json similarity index 100% rename from angular-bootstrap-lightbox/tsconfig.json rename to types/angular-bootstrap-lightbox/tsconfig.json diff --git a/angular-breadcrumb/index.d.ts b/types/angular-breadcrumb/index.d.ts similarity index 100% rename from angular-breadcrumb/index.d.ts rename to types/angular-breadcrumb/index.d.ts diff --git a/angular-breadcrumb/tsconfig.json b/types/angular-breadcrumb/tsconfig.json similarity index 100% rename from angular-breadcrumb/tsconfig.json rename to types/angular-breadcrumb/tsconfig.json diff --git a/angular-clipboard/angular-clipboard-tests.ts b/types/angular-clipboard/angular-clipboard-tests.ts similarity index 100% rename from angular-clipboard/angular-clipboard-tests.ts rename to types/angular-clipboard/angular-clipboard-tests.ts diff --git a/angular-clipboard/index.d.ts b/types/angular-clipboard/index.d.ts similarity index 100% rename from angular-clipboard/index.d.ts rename to types/angular-clipboard/index.d.ts diff --git a/angular-clipboard/tsconfig.json b/types/angular-clipboard/tsconfig.json similarity index 100% rename from angular-clipboard/tsconfig.json rename to types/angular-clipboard/tsconfig.json diff --git a/angular-cookie/angular-cookie-tests.ts b/types/angular-cookie/angular-cookie-tests.ts similarity index 100% rename from angular-cookie/angular-cookie-tests.ts rename to types/angular-cookie/angular-cookie-tests.ts diff --git a/angular-cookie/index.d.ts b/types/angular-cookie/index.d.ts similarity index 100% rename from angular-cookie/index.d.ts rename to types/angular-cookie/index.d.ts diff --git a/angular-cookie/tsconfig.json b/types/angular-cookie/tsconfig.json similarity index 100% rename from angular-cookie/tsconfig.json rename to types/angular-cookie/tsconfig.json diff --git a/angular-cookies/index.d.ts b/types/angular-cookies/index.d.ts similarity index 100% rename from angular-cookies/index.d.ts rename to types/angular-cookies/index.d.ts diff --git a/angular-cookies/tsconfig.json b/types/angular-cookies/tsconfig.json similarity index 100% rename from angular-cookies/tsconfig.json rename to types/angular-cookies/tsconfig.json diff --git a/angular-deferred-bootstrap/angular-deferred-bootstrap-tests.ts b/types/angular-deferred-bootstrap/angular-deferred-bootstrap-tests.ts similarity index 100% rename from angular-deferred-bootstrap/angular-deferred-bootstrap-tests.ts rename to types/angular-deferred-bootstrap/angular-deferred-bootstrap-tests.ts diff --git a/angular-deferred-bootstrap/index.d.ts b/types/angular-deferred-bootstrap/index.d.ts similarity index 100% rename from angular-deferred-bootstrap/index.d.ts rename to types/angular-deferred-bootstrap/index.d.ts diff --git a/angular-deferred-bootstrap/tsconfig.json b/types/angular-deferred-bootstrap/tsconfig.json similarity index 100% rename from angular-deferred-bootstrap/tsconfig.json rename to types/angular-deferred-bootstrap/tsconfig.json diff --git a/angular-dialog-service/angular-dialog-service-tests.ts b/types/angular-dialog-service/angular-dialog-service-tests.ts similarity index 100% rename from angular-dialog-service/angular-dialog-service-tests.ts rename to types/angular-dialog-service/angular-dialog-service-tests.ts diff --git a/angular-dialog-service/index.d.ts b/types/angular-dialog-service/index.d.ts similarity index 100% rename from angular-dialog-service/index.d.ts rename to types/angular-dialog-service/index.d.ts diff --git a/angular-dialog-service/tsconfig.json b/types/angular-dialog-service/tsconfig.json similarity index 100% rename from angular-dialog-service/tsconfig.json rename to types/angular-dialog-service/tsconfig.json diff --git a/angular-dynamic-locale/angular-dynamic-locale-tests.ts b/types/angular-dynamic-locale/angular-dynamic-locale-tests.ts similarity index 100% rename from angular-dynamic-locale/angular-dynamic-locale-tests.ts rename to types/angular-dynamic-locale/angular-dynamic-locale-tests.ts diff --git a/angular-dynamic-locale/index.d.ts b/types/angular-dynamic-locale/index.d.ts similarity index 100% rename from angular-dynamic-locale/index.d.ts rename to types/angular-dynamic-locale/index.d.ts diff --git a/angular-dynamic-locale/tsconfig.json b/types/angular-dynamic-locale/tsconfig.json similarity index 100% rename from angular-dynamic-locale/tsconfig.json rename to types/angular-dynamic-locale/tsconfig.json diff --git a/angular-environment/angular-environment-tests.ts b/types/angular-environment/angular-environment-tests.ts similarity index 100% rename from angular-environment/angular-environment-tests.ts rename to types/angular-environment/angular-environment-tests.ts diff --git a/angular-environment/index.d.ts b/types/angular-environment/index.d.ts similarity index 100% rename from angular-environment/index.d.ts rename to types/angular-environment/index.d.ts diff --git a/angular-environment/tsconfig.json b/types/angular-environment/tsconfig.json similarity index 100% rename from angular-environment/tsconfig.json rename to types/angular-environment/tsconfig.json diff --git a/angular-es/angular-es-tests.ts b/types/angular-es/angular-es-tests.ts similarity index 100% rename from angular-es/angular-es-tests.ts rename to types/angular-es/angular-es-tests.ts diff --git a/angular-es/index.d.ts b/types/angular-es/index.d.ts similarity index 100% rename from angular-es/index.d.ts rename to types/angular-es/index.d.ts diff --git a/angular-es/tsconfig.json b/types/angular-es/tsconfig.json similarity index 100% rename from angular-es/tsconfig.json rename to types/angular-es/tsconfig.json diff --git a/angular-feature-flags/angular-feature-flags-tests.ts b/types/angular-feature-flags/angular-feature-flags-tests.ts similarity index 100% rename from angular-feature-flags/angular-feature-flags-tests.ts rename to types/angular-feature-flags/angular-feature-flags-tests.ts diff --git a/angular-feature-flags/index.d.ts b/types/angular-feature-flags/index.d.ts similarity index 100% rename from angular-feature-flags/index.d.ts rename to types/angular-feature-flags/index.d.ts diff --git a/angular-feature-flags/tsconfig.json b/types/angular-feature-flags/tsconfig.json similarity index 100% rename from angular-feature-flags/tsconfig.json rename to types/angular-feature-flags/tsconfig.json diff --git a/angular-file-saver/angular-file-saver-tests.ts b/types/angular-file-saver/angular-file-saver-tests.ts similarity index 100% rename from angular-file-saver/angular-file-saver-tests.ts rename to types/angular-file-saver/angular-file-saver-tests.ts diff --git a/angular-file-saver/index.d.ts b/types/angular-file-saver/index.d.ts similarity index 100% rename from angular-file-saver/index.d.ts rename to types/angular-file-saver/index.d.ts diff --git a/angular-file-saver/tsconfig.json b/types/angular-file-saver/tsconfig.json similarity index 100% rename from angular-file-saver/tsconfig.json rename to types/angular-file-saver/tsconfig.json diff --git a/angular-formly/angular-formly-tests.ts b/types/angular-formly/angular-formly-tests.ts similarity index 100% rename from angular-formly/angular-formly-tests.ts rename to types/angular-formly/angular-formly-tests.ts diff --git a/angular-formly/index.d.ts b/types/angular-formly/index.d.ts similarity index 100% rename from angular-formly/index.d.ts rename to types/angular-formly/index.d.ts diff --git a/angular-formly/tsconfig.json b/types/angular-formly/tsconfig.json similarity index 100% rename from angular-formly/tsconfig.json rename to types/angular-formly/tsconfig.json diff --git a/angular-fullscreen/angular-fullscreen-tests.ts b/types/angular-fullscreen/angular-fullscreen-tests.ts similarity index 100% rename from angular-fullscreen/angular-fullscreen-tests.ts rename to types/angular-fullscreen/angular-fullscreen-tests.ts diff --git a/angular-fullscreen/index.d.ts b/types/angular-fullscreen/index.d.ts similarity index 100% rename from angular-fullscreen/index.d.ts rename to types/angular-fullscreen/index.d.ts diff --git a/angular-fullscreen/tsconfig.json b/types/angular-fullscreen/tsconfig.json similarity index 100% rename from angular-fullscreen/tsconfig.json rename to types/angular-fullscreen/tsconfig.json diff --git a/angular-gettext/angular-gettext-tests.ts b/types/angular-gettext/angular-gettext-tests.ts similarity index 100% rename from angular-gettext/angular-gettext-tests.ts rename to types/angular-gettext/angular-gettext-tests.ts diff --git a/angular-gettext/index.d.ts b/types/angular-gettext/index.d.ts similarity index 100% rename from angular-gettext/index.d.ts rename to types/angular-gettext/index.d.ts diff --git a/angular-gettext/tsconfig.json b/types/angular-gettext/tsconfig.json similarity index 100% rename from angular-gettext/tsconfig.json rename to types/angular-gettext/tsconfig.json diff --git a/angular-google-analytics/angular-google-analytics-tests.ts b/types/angular-google-analytics/angular-google-analytics-tests.ts similarity index 100% rename from angular-google-analytics/angular-google-analytics-tests.ts rename to types/angular-google-analytics/angular-google-analytics-tests.ts diff --git a/angular-google-analytics/index.d.ts b/types/angular-google-analytics/index.d.ts similarity index 100% rename from angular-google-analytics/index.d.ts rename to types/angular-google-analytics/index.d.ts diff --git a/angular-google-analytics/tsconfig.json b/types/angular-google-analytics/tsconfig.json similarity index 100% rename from angular-google-analytics/tsconfig.json rename to types/angular-google-analytics/tsconfig.json diff --git a/angular-gridster/angular-gridster-tests.ts b/types/angular-gridster/angular-gridster-tests.ts similarity index 100% rename from angular-gridster/angular-gridster-tests.ts rename to types/angular-gridster/angular-gridster-tests.ts diff --git a/angular-gridster/index.d.ts b/types/angular-gridster/index.d.ts similarity index 100% rename from angular-gridster/index.d.ts rename to types/angular-gridster/index.d.ts diff --git a/angular-gridster/tsconfig.json b/types/angular-gridster/tsconfig.json similarity index 100% rename from angular-gridster/tsconfig.json rename to types/angular-gridster/tsconfig.json diff --git a/angular-gridster/tslint.json b/types/angular-gridster/tslint.json similarity index 100% rename from angular-gridster/tslint.json rename to types/angular-gridster/tslint.json diff --git a/angular-growl-v2/angular-growl-v2-tests.ts b/types/angular-growl-v2/angular-growl-v2-tests.ts similarity index 100% rename from angular-growl-v2/angular-growl-v2-tests.ts rename to types/angular-growl-v2/angular-growl-v2-tests.ts diff --git a/angular-growl-v2/index.d.ts b/types/angular-growl-v2/index.d.ts similarity index 100% rename from angular-growl-v2/index.d.ts rename to types/angular-growl-v2/index.d.ts diff --git a/angular-growl-v2/tsconfig.json b/types/angular-growl-v2/tsconfig.json similarity index 100% rename from angular-growl-v2/tsconfig.json rename to types/angular-growl-v2/tsconfig.json diff --git a/angular-hotkeys/angular-hotkeys-tests.ts b/types/angular-hotkeys/angular-hotkeys-tests.ts similarity index 100% rename from angular-hotkeys/angular-hotkeys-tests.ts rename to types/angular-hotkeys/angular-hotkeys-tests.ts diff --git a/angular-hotkeys/index.d.ts b/types/angular-hotkeys/index.d.ts similarity index 100% rename from angular-hotkeys/index.d.ts rename to types/angular-hotkeys/index.d.ts diff --git a/angular-hotkeys/tsconfig.json b/types/angular-hotkeys/tsconfig.json similarity index 100% rename from angular-hotkeys/tsconfig.json rename to types/angular-hotkeys/tsconfig.json diff --git a/angular-http-auth/angular-http-auth-tests.ts b/types/angular-http-auth/angular-http-auth-tests.ts similarity index 100% rename from angular-http-auth/angular-http-auth-tests.ts rename to types/angular-http-auth/angular-http-auth-tests.ts diff --git a/angular-http-auth/index.d.ts b/types/angular-http-auth/index.d.ts similarity index 100% rename from angular-http-auth/index.d.ts rename to types/angular-http-auth/index.d.ts diff --git a/angular-http-auth/tsconfig.json b/types/angular-http-auth/tsconfig.json similarity index 100% rename from angular-http-auth/tsconfig.json rename to types/angular-http-auth/tsconfig.json diff --git a/angular-httpi/angular-httpi-tests.ts b/types/angular-httpi/angular-httpi-tests.ts similarity index 100% rename from angular-httpi/angular-httpi-tests.ts rename to types/angular-httpi/angular-httpi-tests.ts diff --git a/angular-httpi/index.d.ts b/types/angular-httpi/index.d.ts similarity index 100% rename from angular-httpi/index.d.ts rename to types/angular-httpi/index.d.ts diff --git a/angular-httpi/tsconfig.json b/types/angular-httpi/tsconfig.json similarity index 100% rename from angular-httpi/tsconfig.json rename to types/angular-httpi/tsconfig.json diff --git a/angular-idle/angular-idle-tests.ts b/types/angular-idle/angular-idle-tests.ts similarity index 100% rename from angular-idle/angular-idle-tests.ts rename to types/angular-idle/angular-idle-tests.ts diff --git a/angular-idle/index.d.ts b/types/angular-idle/index.d.ts similarity index 100% rename from angular-idle/index.d.ts rename to types/angular-idle/index.d.ts diff --git a/angular-idle/tsconfig.json b/types/angular-idle/tsconfig.json similarity index 100% rename from angular-idle/tsconfig.json rename to types/angular-idle/tsconfig.json diff --git a/angular-jwt/angular-jwt-tests.ts b/types/angular-jwt/angular-jwt-tests.ts similarity index 100% rename from angular-jwt/angular-jwt-tests.ts rename to types/angular-jwt/angular-jwt-tests.ts diff --git a/angular-jwt/index.d.ts b/types/angular-jwt/index.d.ts similarity index 100% rename from angular-jwt/index.d.ts rename to types/angular-jwt/index.d.ts diff --git a/angular-jwt/tsconfig.json b/types/angular-jwt/tsconfig.json similarity index 100% rename from angular-jwt/tsconfig.json rename to types/angular-jwt/tsconfig.json diff --git a/angular-load/angular-load-tests.ts b/types/angular-load/angular-load-tests.ts similarity index 100% rename from angular-load/angular-load-tests.ts rename to types/angular-load/angular-load-tests.ts diff --git a/angular-load/index.d.ts b/types/angular-load/index.d.ts similarity index 100% rename from angular-load/index.d.ts rename to types/angular-load/index.d.ts diff --git a/angular-load/tsconfig.json b/types/angular-load/tsconfig.json similarity index 100% rename from angular-load/tsconfig.json rename to types/angular-load/tsconfig.json diff --git a/angular-loading-bar/angular-loading-bar-tests.ts b/types/angular-loading-bar/angular-loading-bar-tests.ts similarity index 100% rename from angular-loading-bar/angular-loading-bar-tests.ts rename to types/angular-loading-bar/angular-loading-bar-tests.ts diff --git a/angular-loading-bar/index.d.ts b/types/angular-loading-bar/index.d.ts similarity index 100% rename from angular-loading-bar/index.d.ts rename to types/angular-loading-bar/index.d.ts diff --git a/angular-loading-bar/tsconfig.json b/types/angular-loading-bar/tsconfig.json similarity index 100% rename from angular-loading-bar/tsconfig.json rename to types/angular-loading-bar/tsconfig.json diff --git a/angular-local-storage/angular-local-storage-tests.ts b/types/angular-local-storage/angular-local-storage-tests.ts similarity index 100% rename from angular-local-storage/angular-local-storage-tests.ts rename to types/angular-local-storage/angular-local-storage-tests.ts diff --git a/angular-local-storage/index.d.ts b/types/angular-local-storage/index.d.ts similarity index 100% rename from angular-local-storage/index.d.ts rename to types/angular-local-storage/index.d.ts diff --git a/angular-local-storage/tsconfig.json b/types/angular-local-storage/tsconfig.json similarity index 100% rename from angular-local-storage/tsconfig.json rename to types/angular-local-storage/tsconfig.json diff --git a/angular-localforage/angular-localforage-tests.ts b/types/angular-localforage/angular-localforage-tests.ts similarity index 100% rename from angular-localforage/angular-localforage-tests.ts rename to types/angular-localforage/angular-localforage-tests.ts diff --git a/angular-localforage/index.d.ts b/types/angular-localforage/index.d.ts similarity index 100% rename from angular-localforage/index.d.ts rename to types/angular-localforage/index.d.ts diff --git a/angular-localforage/package.json b/types/angular-localforage/package.json similarity index 100% rename from angular-localforage/package.json rename to types/angular-localforage/package.json diff --git a/angular-localforage/tsconfig.json b/types/angular-localforage/tsconfig.json similarity index 100% rename from angular-localforage/tsconfig.json rename to types/angular-localforage/tsconfig.json diff --git a/angular-locker/angular-locker-tests.ts b/types/angular-locker/angular-locker-tests.ts similarity index 100% rename from angular-locker/angular-locker-tests.ts rename to types/angular-locker/angular-locker-tests.ts diff --git a/angular-locker/index.d.ts b/types/angular-locker/index.d.ts similarity index 100% rename from angular-locker/index.d.ts rename to types/angular-locker/index.d.ts diff --git a/angular-locker/tsconfig.json b/types/angular-locker/tsconfig.json similarity index 100% rename from angular-locker/tsconfig.json rename to types/angular-locker/tsconfig.json diff --git a/angular-material/angular-material-tests.ts b/types/angular-material/angular-material-tests.ts similarity index 100% rename from angular-material/angular-material-tests.ts rename to types/angular-material/angular-material-tests.ts diff --git a/angular-material/index.d.ts b/types/angular-material/index.d.ts similarity index 100% rename from angular-material/index.d.ts rename to types/angular-material/index.d.ts diff --git a/angular-material/tsconfig.json b/types/angular-material/tsconfig.json similarity index 100% rename from angular-material/tsconfig.json rename to types/angular-material/tsconfig.json diff --git a/angular-media-queries/angular-media-queries-tests.ts b/types/angular-media-queries/angular-media-queries-tests.ts similarity index 100% rename from angular-media-queries/angular-media-queries-tests.ts rename to types/angular-media-queries/angular-media-queries-tests.ts diff --git a/angular-media-queries/index.d.ts b/types/angular-media-queries/index.d.ts similarity index 100% rename from angular-media-queries/index.d.ts rename to types/angular-media-queries/index.d.ts diff --git a/angular-media-queries/tsconfig.json b/types/angular-media-queries/tsconfig.json similarity index 100% rename from angular-media-queries/tsconfig.json rename to types/angular-media-queries/tsconfig.json diff --git a/angular-meteor/angular-meteor-tests.ts b/types/angular-meteor/angular-meteor-tests.ts similarity index 100% rename from angular-meteor/angular-meteor-tests.ts rename to types/angular-meteor/angular-meteor-tests.ts diff --git a/angular-meteor/index.d.ts b/types/angular-meteor/index.d.ts similarity index 100% rename from angular-meteor/index.d.ts rename to types/angular-meteor/index.d.ts diff --git a/angular-meteor/tsconfig.json b/types/angular-meteor/tsconfig.json similarity index 100% rename from angular-meteor/tsconfig.json rename to types/angular-meteor/tsconfig.json diff --git a/angular-mocks/angular-mocks-tests.ts b/types/angular-mocks/angular-mocks-tests.ts similarity index 100% rename from angular-mocks/angular-mocks-tests.ts rename to types/angular-mocks/angular-mocks-tests.ts diff --git a/angular-mocks/index.d.ts b/types/angular-mocks/index.d.ts similarity index 100% rename from angular-mocks/index.d.ts rename to types/angular-mocks/index.d.ts diff --git a/angular-mocks/mocks.d.ts b/types/angular-mocks/mocks.d.ts similarity index 100% rename from angular-mocks/mocks.d.ts rename to types/angular-mocks/mocks.d.ts diff --git a/angular-mocks/tsconfig.json b/types/angular-mocks/tsconfig.json similarity index 100% rename from angular-mocks/tsconfig.json rename to types/angular-mocks/tsconfig.json diff --git a/angular-modal/angular-modal-tests.ts b/types/angular-modal/angular-modal-tests.ts similarity index 100% rename from angular-modal/angular-modal-tests.ts rename to types/angular-modal/angular-modal-tests.ts diff --git a/angular-modal/index.d.ts b/types/angular-modal/index.d.ts similarity index 100% rename from angular-modal/index.d.ts rename to types/angular-modal/index.d.ts diff --git a/angular-modal/tsconfig.json b/types/angular-modal/tsconfig.json similarity index 100% rename from angular-modal/tsconfig.json rename to types/angular-modal/tsconfig.json diff --git a/angular-notifications/angular-notifications-tests.ts b/types/angular-notifications/angular-notifications-tests.ts similarity index 100% rename from angular-notifications/angular-notifications-tests.ts rename to types/angular-notifications/angular-notifications-tests.ts diff --git a/angular-notifications/index.d.ts b/types/angular-notifications/index.d.ts similarity index 100% rename from angular-notifications/index.d.ts rename to types/angular-notifications/index.d.ts diff --git a/angular-notifications/tsconfig.json b/types/angular-notifications/tsconfig.json similarity index 100% rename from angular-notifications/tsconfig.json rename to types/angular-notifications/tsconfig.json diff --git a/angular-notify/angular-notify-tests.ts b/types/angular-notify/angular-notify-tests.ts similarity index 100% rename from angular-notify/angular-notify-tests.ts rename to types/angular-notify/angular-notify-tests.ts diff --git a/angular-notify/index.d.ts b/types/angular-notify/index.d.ts similarity index 100% rename from angular-notify/index.d.ts rename to types/angular-notify/index.d.ts diff --git a/angular-notify/tsconfig.json b/types/angular-notify/tsconfig.json similarity index 100% rename from angular-notify/tsconfig.json rename to types/angular-notify/tsconfig.json diff --git a/angular-oauth2/angular-oauth2-tests.ts b/types/angular-oauth2/angular-oauth2-tests.ts similarity index 100% rename from angular-oauth2/angular-oauth2-tests.ts rename to types/angular-oauth2/angular-oauth2-tests.ts diff --git a/angular-oauth2/index.d.ts b/types/angular-oauth2/index.d.ts similarity index 100% rename from angular-oauth2/index.d.ts rename to types/angular-oauth2/index.d.ts diff --git a/angular-oauth2/tsconfig.json b/types/angular-oauth2/tsconfig.json similarity index 100% rename from angular-oauth2/tsconfig.json rename to types/angular-oauth2/tsconfig.json diff --git a/angular-oauth2/tslint.json b/types/angular-oauth2/tslint.json similarity index 100% rename from angular-oauth2/tslint.json rename to types/angular-oauth2/tslint.json diff --git a/angular-odata-resources/angular-odata-resources-tests.ts b/types/angular-odata-resources/angular-odata-resources-tests.ts similarity index 100% rename from angular-odata-resources/angular-odata-resources-tests.ts rename to types/angular-odata-resources/angular-odata-resources-tests.ts diff --git a/angular-odata-resources/index.d.ts b/types/angular-odata-resources/index.d.ts similarity index 100% rename from angular-odata-resources/index.d.ts rename to types/angular-odata-resources/index.d.ts diff --git a/angular-odata-resources/tsconfig.json b/types/angular-odata-resources/tsconfig.json similarity index 100% rename from angular-odata-resources/tsconfig.json rename to types/angular-odata-resources/tsconfig.json diff --git a/angular-permission/angular-permission-tests.ts b/types/angular-permission/angular-permission-tests.ts similarity index 100% rename from angular-permission/angular-permission-tests.ts rename to types/angular-permission/angular-permission-tests.ts diff --git a/angular-permission/index.d.ts b/types/angular-permission/index.d.ts similarity index 100% rename from angular-permission/index.d.ts rename to types/angular-permission/index.d.ts diff --git a/angular-permission/tsconfig.json b/types/angular-permission/tsconfig.json similarity index 100% rename from angular-permission/tsconfig.json rename to types/angular-permission/tsconfig.json diff --git a/angular-promise-tracker/angular-promise-tracker-tests.ts b/types/angular-promise-tracker/angular-promise-tracker-tests.ts similarity index 100% rename from angular-promise-tracker/angular-promise-tracker-tests.ts rename to types/angular-promise-tracker/angular-promise-tracker-tests.ts diff --git a/angular-promise-tracker/index.d.ts b/types/angular-promise-tracker/index.d.ts similarity index 100% rename from angular-promise-tracker/index.d.ts rename to types/angular-promise-tracker/index.d.ts diff --git a/angular-promise-tracker/tsconfig.json b/types/angular-promise-tracker/tsconfig.json similarity index 100% rename from angular-promise-tracker/tsconfig.json rename to types/angular-promise-tracker/tsconfig.json diff --git a/angular-q-spread/angular-q-spread-tests.ts b/types/angular-q-spread/angular-q-spread-tests.ts similarity index 100% rename from angular-q-spread/angular-q-spread-tests.ts rename to types/angular-q-spread/angular-q-spread-tests.ts diff --git a/angular-q-spread/index.d.ts b/types/angular-q-spread/index.d.ts similarity index 100% rename from angular-q-spread/index.d.ts rename to types/angular-q-spread/index.d.ts diff --git a/angular-q-spread/tsconfig.json b/types/angular-q-spread/tsconfig.json similarity index 100% rename from angular-q-spread/tsconfig.json rename to types/angular-q-spread/tsconfig.json diff --git a/angular-resource/angular-resource-tests.ts b/types/angular-resource/angular-resource-tests.ts similarity index 100% rename from angular-resource/angular-resource-tests.ts rename to types/angular-resource/angular-resource-tests.ts diff --git a/angular-resource/index.d.ts b/types/angular-resource/index.d.ts similarity index 100% rename from angular-resource/index.d.ts rename to types/angular-resource/index.d.ts diff --git a/angular-resource/tsconfig.json b/types/angular-resource/tsconfig.json similarity index 100% rename from angular-resource/tsconfig.json rename to types/angular-resource/tsconfig.json diff --git a/angular-route/angular-route-tests.ts b/types/angular-route/angular-route-tests.ts similarity index 100% rename from angular-route/angular-route-tests.ts rename to types/angular-route/angular-route-tests.ts diff --git a/angular-route/index.d.ts b/types/angular-route/index.d.ts similarity index 100% rename from angular-route/index.d.ts rename to types/angular-route/index.d.ts diff --git a/angular-route/tsconfig.json b/types/angular-route/tsconfig.json similarity index 100% rename from angular-route/tsconfig.json rename to types/angular-route/tsconfig.json diff --git a/angular-sanitize/angular-sanitize-tests.ts b/types/angular-sanitize/angular-sanitize-tests.ts similarity index 100% rename from angular-sanitize/angular-sanitize-tests.ts rename to types/angular-sanitize/angular-sanitize-tests.ts diff --git a/angular-sanitize/index.d.ts b/types/angular-sanitize/index.d.ts similarity index 100% rename from angular-sanitize/index.d.ts rename to types/angular-sanitize/index.d.ts diff --git a/angular-sanitize/tsconfig.json b/types/angular-sanitize/tsconfig.json similarity index 100% rename from angular-sanitize/tsconfig.json rename to types/angular-sanitize/tsconfig.json diff --git a/angular-scenario/index.d.ts b/types/angular-scenario/index.d.ts similarity index 100% rename from angular-scenario/index.d.ts rename to types/angular-scenario/index.d.ts diff --git a/angular-scenario/tsconfig.json b/types/angular-scenario/tsconfig.json similarity index 100% rename from angular-scenario/tsconfig.json rename to types/angular-scenario/tsconfig.json diff --git a/angular-scroll/angular-scroll-tests.ts b/types/angular-scroll/angular-scroll-tests.ts similarity index 100% rename from angular-scroll/angular-scroll-tests.ts rename to types/angular-scroll/angular-scroll-tests.ts diff --git a/angular-scroll/index.d.ts b/types/angular-scroll/index.d.ts similarity index 100% rename from angular-scroll/index.d.ts rename to types/angular-scroll/index.d.ts diff --git a/angular-scroll/tsconfig.json b/types/angular-scroll/tsconfig.json similarity index 100% rename from angular-scroll/tsconfig.json rename to types/angular-scroll/tsconfig.json diff --git a/angular-signalr-hub/angular-signalr-hub-tests.ts b/types/angular-signalr-hub/angular-signalr-hub-tests.ts similarity index 100% rename from angular-signalr-hub/angular-signalr-hub-tests.ts rename to types/angular-signalr-hub/angular-signalr-hub-tests.ts diff --git a/angular-signalr-hub/index.d.ts b/types/angular-signalr-hub/index.d.ts similarity index 100% rename from angular-signalr-hub/index.d.ts rename to types/angular-signalr-hub/index.d.ts diff --git a/angular-signalr-hub/tsconfig.json b/types/angular-signalr-hub/tsconfig.json similarity index 100% rename from angular-signalr-hub/tsconfig.json rename to types/angular-signalr-hub/tsconfig.json diff --git a/angular-spinner/angular-spinner-tests.ts b/types/angular-spinner/angular-spinner-tests.ts similarity index 100% rename from angular-spinner/angular-spinner-tests.ts rename to types/angular-spinner/angular-spinner-tests.ts diff --git a/angular-spinner/index.d.ts b/types/angular-spinner/index.d.ts similarity index 100% rename from angular-spinner/index.d.ts rename to types/angular-spinner/index.d.ts diff --git a/angular-spinner/tsconfig.json b/types/angular-spinner/tsconfig.json similarity index 100% rename from angular-spinner/tsconfig.json rename to types/angular-spinner/tsconfig.json diff --git a/angular-storage/angular-storage-tests.ts b/types/angular-storage/angular-storage-tests.ts similarity index 100% rename from angular-storage/angular-storage-tests.ts rename to types/angular-storage/angular-storage-tests.ts diff --git a/angular-storage/index.d.ts b/types/angular-storage/index.d.ts similarity index 100% rename from angular-storage/index.d.ts rename to types/angular-storage/index.d.ts diff --git a/angular-storage/tsconfig.json b/types/angular-storage/tsconfig.json similarity index 100% rename from angular-storage/tsconfig.json rename to types/angular-storage/tsconfig.json diff --git a/angular-strap/angular-strap-tests.ts b/types/angular-strap/angular-strap-tests.ts similarity index 100% rename from angular-strap/angular-strap-tests.ts rename to types/angular-strap/angular-strap-tests.ts diff --git a/angular-strap/index.d.ts b/types/angular-strap/index.d.ts similarity index 100% rename from angular-strap/index.d.ts rename to types/angular-strap/index.d.ts diff --git a/angular-strap/tsconfig.json b/types/angular-strap/tsconfig.json similarity index 100% rename from angular-strap/tsconfig.json rename to types/angular-strap/tsconfig.json diff --git a/angular-toastr/angular-toastr-tests.ts b/types/angular-toastr/angular-toastr-tests.ts similarity index 100% rename from angular-toastr/angular-toastr-tests.ts rename to types/angular-toastr/angular-toastr-tests.ts diff --git a/angular-toastr/index.d.ts b/types/angular-toastr/index.d.ts similarity index 100% rename from angular-toastr/index.d.ts rename to types/angular-toastr/index.d.ts diff --git a/angular-toastr/tsconfig.json b/types/angular-toastr/tsconfig.json similarity index 100% rename from angular-toastr/tsconfig.json rename to types/angular-toastr/tsconfig.json diff --git a/angular-toasty/angular-toasty-tests.ts b/types/angular-toasty/angular-toasty-tests.ts similarity index 100% rename from angular-toasty/angular-toasty-tests.ts rename to types/angular-toasty/angular-toasty-tests.ts diff --git a/angular-toasty/index.d.ts b/types/angular-toasty/index.d.ts similarity index 100% rename from angular-toasty/index.d.ts rename to types/angular-toasty/index.d.ts diff --git a/angular-toasty/tsconfig.json b/types/angular-toasty/tsconfig.json similarity index 100% rename from angular-toasty/tsconfig.json rename to types/angular-toasty/tsconfig.json diff --git a/angular-touchspin/angular-touchspin-tests.ts b/types/angular-touchspin/angular-touchspin-tests.ts similarity index 100% rename from angular-touchspin/angular-touchspin-tests.ts rename to types/angular-touchspin/angular-touchspin-tests.ts diff --git a/angular-touchspin/index.d.ts b/types/angular-touchspin/index.d.ts similarity index 100% rename from angular-touchspin/index.d.ts rename to types/angular-touchspin/index.d.ts diff --git a/angular-touchspin/tsconfig.json b/types/angular-touchspin/tsconfig.json similarity index 100% rename from angular-touchspin/tsconfig.json rename to types/angular-touchspin/tsconfig.json diff --git a/angular-translate/angular-translate-tests.ts b/types/angular-translate/angular-translate-tests.ts similarity index 100% rename from angular-translate/angular-translate-tests.ts rename to types/angular-translate/angular-translate-tests.ts diff --git a/angular-translate/index.d.ts b/types/angular-translate/index.d.ts similarity index 100% rename from angular-translate/index.d.ts rename to types/angular-translate/index.d.ts diff --git a/angular-translate/tsconfig.json b/types/angular-translate/tsconfig.json similarity index 100% rename from angular-translate/tsconfig.json rename to types/angular-translate/tsconfig.json diff --git a/angular-ui-bootstrap/angular-ui-bootstrap-tests.ts b/types/angular-ui-bootstrap/angular-ui-bootstrap-tests.ts similarity index 100% rename from angular-ui-bootstrap/angular-ui-bootstrap-tests.ts rename to types/angular-ui-bootstrap/angular-ui-bootstrap-tests.ts diff --git a/angular-ui-bootstrap/index.d.ts b/types/angular-ui-bootstrap/index.d.ts similarity index 100% rename from angular-ui-bootstrap/index.d.ts rename to types/angular-ui-bootstrap/index.d.ts diff --git a/angular-ui-bootstrap/tsconfig.json b/types/angular-ui-bootstrap/tsconfig.json similarity index 100% rename from angular-ui-bootstrap/tsconfig.json rename to types/angular-ui-bootstrap/tsconfig.json diff --git a/angular-ui-notification/angular-ui-notification-tests.ts b/types/angular-ui-notification/angular-ui-notification-tests.ts similarity index 100% rename from angular-ui-notification/angular-ui-notification-tests.ts rename to types/angular-ui-notification/angular-ui-notification-tests.ts diff --git a/angular-ui-notification/index.d.ts b/types/angular-ui-notification/index.d.ts similarity index 100% rename from angular-ui-notification/index.d.ts rename to types/angular-ui-notification/index.d.ts diff --git a/angular-ui-notification/tsconfig.json b/types/angular-ui-notification/tsconfig.json similarity index 100% rename from angular-ui-notification/tsconfig.json rename to types/angular-ui-notification/tsconfig.json diff --git a/angular-ui-router-default/angular-ui-router-default-tests.ts b/types/angular-ui-router-default/angular-ui-router-default-tests.ts similarity index 100% rename from angular-ui-router-default/angular-ui-router-default-tests.ts rename to types/angular-ui-router-default/angular-ui-router-default-tests.ts diff --git a/angular-ui-router-default/index.d.ts b/types/angular-ui-router-default/index.d.ts similarity index 100% rename from angular-ui-router-default/index.d.ts rename to types/angular-ui-router-default/index.d.ts diff --git a/angular-ui-router-default/tsconfig.json b/types/angular-ui-router-default/tsconfig.json similarity index 100% rename from angular-ui-router-default/tsconfig.json rename to types/angular-ui-router-default/tsconfig.json diff --git a/angular-ui-router-uib-modal/angular-ui-router-uib-modal-tests.ts b/types/angular-ui-router-uib-modal/angular-ui-router-uib-modal-tests.ts similarity index 100% rename from angular-ui-router-uib-modal/angular-ui-router-uib-modal-tests.ts rename to types/angular-ui-router-uib-modal/angular-ui-router-uib-modal-tests.ts diff --git a/angular-ui-router-uib-modal/index.d.ts b/types/angular-ui-router-uib-modal/index.d.ts similarity index 100% rename from angular-ui-router-uib-modal/index.d.ts rename to types/angular-ui-router-uib-modal/index.d.ts diff --git a/angular-ui-router-uib-modal/tsconfig.json b/types/angular-ui-router-uib-modal/tsconfig.json similarity index 100% rename from angular-ui-router-uib-modal/tsconfig.json rename to types/angular-ui-router-uib-modal/tsconfig.json diff --git a/angular-ui-router/angular-ui-router-tests.ts b/types/angular-ui-router/angular-ui-router-tests.ts similarity index 100% rename from angular-ui-router/angular-ui-router-tests.ts rename to types/angular-ui-router/angular-ui-router-tests.ts diff --git a/angular-ui-router/index.d.ts b/types/angular-ui-router/index.d.ts similarity index 100% rename from angular-ui-router/index.d.ts rename to types/angular-ui-router/index.d.ts diff --git a/angular-ui-router/tsconfig.json b/types/angular-ui-router/tsconfig.json similarity index 100% rename from angular-ui-router/tsconfig.json rename to types/angular-ui-router/tsconfig.json diff --git a/angular-ui-scroll/angular-ui-scroll-tests.ts b/types/angular-ui-scroll/angular-ui-scroll-tests.ts similarity index 100% rename from angular-ui-scroll/angular-ui-scroll-tests.ts rename to types/angular-ui-scroll/angular-ui-scroll-tests.ts diff --git a/angular-ui-scroll/index.d.ts b/types/angular-ui-scroll/index.d.ts similarity index 100% rename from angular-ui-scroll/index.d.ts rename to types/angular-ui-scroll/index.d.ts diff --git a/angular-ui-scroll/tsconfig.json b/types/angular-ui-scroll/tsconfig.json similarity index 100% rename from angular-ui-scroll/tsconfig.json rename to types/angular-ui-scroll/tsconfig.json diff --git a/angular-ui-sortable/angular-ui-sortable-tests.ts b/types/angular-ui-sortable/angular-ui-sortable-tests.ts similarity index 100% rename from angular-ui-sortable/angular-ui-sortable-tests.ts rename to types/angular-ui-sortable/angular-ui-sortable-tests.ts diff --git a/angular-ui-sortable/index.d.ts b/types/angular-ui-sortable/index.d.ts similarity index 100% rename from angular-ui-sortable/index.d.ts rename to types/angular-ui-sortable/index.d.ts diff --git a/angular-ui-sortable/tsconfig.json b/types/angular-ui-sortable/tsconfig.json similarity index 100% rename from angular-ui-sortable/tsconfig.json rename to types/angular-ui-sortable/tsconfig.json diff --git a/angular-ui-tree/angular-ui-tree-tests.ts b/types/angular-ui-tree/angular-ui-tree-tests.ts similarity index 100% rename from angular-ui-tree/angular-ui-tree-tests.ts rename to types/angular-ui-tree/angular-ui-tree-tests.ts diff --git a/angular-ui-tree/index.d.ts b/types/angular-ui-tree/index.d.ts similarity index 100% rename from angular-ui-tree/index.d.ts rename to types/angular-ui-tree/index.d.ts diff --git a/angular-ui-tree/tsconfig.json b/types/angular-ui-tree/tsconfig.json similarity index 100% rename from angular-ui-tree/tsconfig.json rename to types/angular-ui-tree/tsconfig.json diff --git a/angular-websocket/angular-websocket-tests.ts b/types/angular-websocket/angular-websocket-tests.ts similarity index 100% rename from angular-websocket/angular-websocket-tests.ts rename to types/angular-websocket/angular-websocket-tests.ts diff --git a/angular-websocket/index.d.ts b/types/angular-websocket/index.d.ts similarity index 100% rename from angular-websocket/index.d.ts rename to types/angular-websocket/index.d.ts diff --git a/angular-websocket/tsconfig.json b/types/angular-websocket/tsconfig.json similarity index 100% rename from angular-websocket/tsconfig.json rename to types/angular-websocket/tsconfig.json diff --git a/angular-wizard/angular-wizard-tests.ts b/types/angular-wizard/angular-wizard-tests.ts similarity index 100% rename from angular-wizard/angular-wizard-tests.ts rename to types/angular-wizard/angular-wizard-tests.ts diff --git a/angular-wizard/index.d.ts b/types/angular-wizard/index.d.ts similarity index 100% rename from angular-wizard/index.d.ts rename to types/angular-wizard/index.d.ts diff --git a/angular-wizard/tsconfig.json b/types/angular-wizard/tsconfig.json similarity index 100% rename from angular-wizard/tsconfig.json rename to types/angular-wizard/tsconfig.json diff --git a/angular-xeditable/angular-xeditable-tests.ts b/types/angular-xeditable/angular-xeditable-tests.ts similarity index 100% rename from angular-xeditable/angular-xeditable-tests.ts rename to types/angular-xeditable/angular-xeditable-tests.ts diff --git a/angular-xeditable/index.d.ts b/types/angular-xeditable/index.d.ts similarity index 100% rename from angular-xeditable/index.d.ts rename to types/angular-xeditable/index.d.ts diff --git a/angular-xeditable/tsconfig.json b/types/angular-xeditable/tsconfig.json similarity index 100% rename from angular-xeditable/tsconfig.json rename to types/angular-xeditable/tsconfig.json diff --git a/angular.throttle/angular.throttle-tests.ts b/types/angular.throttle/angular.throttle-tests.ts similarity index 100% rename from angular.throttle/angular.throttle-tests.ts rename to types/angular.throttle/angular.throttle-tests.ts diff --git a/angular.throttle/index.d.ts b/types/angular.throttle/index.d.ts similarity index 100% rename from angular.throttle/index.d.ts rename to types/angular.throttle/index.d.ts diff --git a/angular.throttle/tsconfig.json b/types/angular.throttle/tsconfig.json similarity index 100% rename from angular.throttle/tsconfig.json rename to types/angular.throttle/tsconfig.json diff --git a/angular/README.md b/types/angular/README.md similarity index 100% rename from angular/README.md rename to types/angular/README.md diff --git a/angular/UNUSED_FILES.txt b/types/angular/UNUSED_FILES.txt similarity index 100% rename from angular/UNUSED_FILES.txt rename to types/angular/UNUSED_FILES.txt diff --git a/angular/angular-component-router.d.ts b/types/angular/angular-component-router.d.ts similarity index 99% rename from angular/angular-component-router.d.ts rename to types/angular/angular-component-router.d.ts index 92458331d6..da3afc7a71 100644 --- a/angular/angular-component-router.d.ts +++ b/types/angular/angular-component-router.d.ts @@ -178,6 +178,7 @@ declare namespace angular { registry: RouteRegistry; parent: Router; hostComponent: any; + currentInstruction: Instruction; /** * Constructs a child router. You probably don't need to use this unless you're writing a reusable diff --git a/angular/angular-tests.ts b/types/angular/angular-tests.ts similarity index 100% rename from angular/angular-tests.ts rename to types/angular/angular-tests.ts diff --git a/angular/index.d.ts b/types/angular/index.d.ts similarity index 100% rename from angular/index.d.ts rename to types/angular/index.d.ts diff --git a/angular/tsconfig.json b/types/angular/tsconfig.json similarity index 100% rename from angular/tsconfig.json rename to types/angular/tsconfig.json diff --git a/angular/tslint.json b/types/angular/tslint.json similarity index 100% rename from angular/tslint.json rename to types/angular/tslint.json diff --git a/angularfire/angularfire-tests.ts b/types/angularfire/angularfire-tests.ts similarity index 100% rename from angularfire/angularfire-tests.ts rename to types/angularfire/angularfire-tests.ts diff --git a/angularfire/index.d.ts b/types/angularfire/index.d.ts similarity index 100% rename from angularfire/index.d.ts rename to types/angularfire/index.d.ts diff --git a/angularfire/tsconfig.json b/types/angularfire/tsconfig.json similarity index 100% rename from angularfire/tsconfig.json rename to types/angularfire/tsconfig.json diff --git a/angularlocalstorage/angularlocalstorage-tests.ts b/types/angularlocalstorage/angularlocalstorage-tests.ts similarity index 100% rename from angularlocalstorage/angularlocalstorage-tests.ts rename to types/angularlocalstorage/angularlocalstorage-tests.ts diff --git a/angularlocalstorage/index.d.ts b/types/angularlocalstorage/index.d.ts similarity index 100% rename from angularlocalstorage/index.d.ts rename to types/angularlocalstorage/index.d.ts diff --git a/angularlocalstorage/tsconfig.json b/types/angularlocalstorage/tsconfig.json similarity index 100% rename from angularlocalstorage/tsconfig.json rename to types/angularlocalstorage/tsconfig.json diff --git a/angulartics/angulartics-tests.ts b/types/angulartics/angulartics-tests.ts similarity index 100% rename from angulartics/angulartics-tests.ts rename to types/angulartics/angulartics-tests.ts diff --git a/angulartics/index.d.ts b/types/angulartics/index.d.ts similarity index 100% rename from angulartics/index.d.ts rename to types/angulartics/index.d.ts diff --git a/angulartics/tsconfig.json b/types/angulartics/tsconfig.json similarity index 100% rename from angulartics/tsconfig.json rename to types/angulartics/tsconfig.json diff --git a/animation-frame/animation-frame-tests.ts b/types/animation-frame/animation-frame-tests.ts similarity index 100% rename from animation-frame/animation-frame-tests.ts rename to types/animation-frame/animation-frame-tests.ts diff --git a/animation-frame/index.d.ts b/types/animation-frame/index.d.ts similarity index 100% rename from animation-frame/index.d.ts rename to types/animation-frame/index.d.ts diff --git a/animation-frame/tsconfig.json b/types/animation-frame/tsconfig.json similarity index 100% rename from animation-frame/tsconfig.json rename to types/animation-frame/tsconfig.json diff --git a/ansi-styles/ansi-styles-tests.ts b/types/ansi-styles/ansi-styles-tests.ts similarity index 100% rename from ansi-styles/ansi-styles-tests.ts rename to types/ansi-styles/ansi-styles-tests.ts diff --git a/ansi-styles/index.d.ts b/types/ansi-styles/index.d.ts similarity index 100% rename from ansi-styles/index.d.ts rename to types/ansi-styles/index.d.ts diff --git a/ansi-styles/tsconfig.json b/types/ansi-styles/tsconfig.json similarity index 100% rename from ansi-styles/tsconfig.json rename to types/ansi-styles/tsconfig.json diff --git a/ansicolors/index.d.ts b/types/ansicolors/index.d.ts similarity index 100% rename from ansicolors/index.d.ts rename to types/ansicolors/index.d.ts diff --git a/ansicolors/tsconfig.json b/types/ansicolors/tsconfig.json similarity index 100% rename from ansicolors/tsconfig.json rename to types/ansicolors/tsconfig.json diff --git a/any-db-transaction/any-db-transaction-tests.ts b/types/any-db-transaction/any-db-transaction-tests.ts similarity index 100% rename from any-db-transaction/any-db-transaction-tests.ts rename to types/any-db-transaction/any-db-transaction-tests.ts diff --git a/any-db-transaction/index.d.ts b/types/any-db-transaction/index.d.ts similarity index 100% rename from any-db-transaction/index.d.ts rename to types/any-db-transaction/index.d.ts diff --git a/any-db-transaction/tsconfig.json b/types/any-db-transaction/tsconfig.json similarity index 100% rename from any-db-transaction/tsconfig.json rename to types/any-db-transaction/tsconfig.json diff --git a/any-db/any-db-tests.ts b/types/any-db/any-db-tests.ts similarity index 100% rename from any-db/any-db-tests.ts rename to types/any-db/any-db-tests.ts diff --git a/any-db/index.d.ts b/types/any-db/index.d.ts similarity index 100% rename from any-db/index.d.ts rename to types/any-db/index.d.ts diff --git a/any-db/tsconfig.json b/types/any-db/tsconfig.json similarity index 100% rename from any-db/tsconfig.json rename to types/any-db/tsconfig.json diff --git a/anybar/anybar-tests.ts b/types/anybar/anybar-tests.ts similarity index 100% rename from anybar/anybar-tests.ts rename to types/anybar/anybar-tests.ts diff --git a/anybar/index.d.ts b/types/anybar/index.d.ts similarity index 100% rename from anybar/index.d.ts rename to types/anybar/index.d.ts diff --git a/anybar/tsconfig.json b/types/anybar/tsconfig.json similarity index 100% rename from anybar/tsconfig.json rename to types/anybar/tsconfig.json diff --git a/anydb-sql-migrations/anydb-sql-migrations-tests.ts b/types/anydb-sql-migrations/anydb-sql-migrations-tests.ts similarity index 100% rename from anydb-sql-migrations/anydb-sql-migrations-tests.ts rename to types/anydb-sql-migrations/anydb-sql-migrations-tests.ts diff --git a/anydb-sql-migrations/index.d.ts b/types/anydb-sql-migrations/index.d.ts similarity index 100% rename from anydb-sql-migrations/index.d.ts rename to types/anydb-sql-migrations/index.d.ts diff --git a/anydb-sql-migrations/tsconfig.json b/types/anydb-sql-migrations/tsconfig.json similarity index 100% rename from anydb-sql-migrations/tsconfig.json rename to types/anydb-sql-migrations/tsconfig.json diff --git a/anydb-sql/anydb-sql-tests.ts b/types/anydb-sql/anydb-sql-tests.ts similarity index 100% rename from anydb-sql/anydb-sql-tests.ts rename to types/anydb-sql/anydb-sql-tests.ts diff --git a/anydb-sql/index.d.ts b/types/anydb-sql/index.d.ts similarity index 100% rename from anydb-sql/index.d.ts rename to types/anydb-sql/index.d.ts diff --git a/anydb-sql/tsconfig.json b/types/anydb-sql/tsconfig.json similarity index 100% rename from anydb-sql/tsconfig.json rename to types/anydb-sql/tsconfig.json diff --git a/apex.js/apex.js-tests.ts b/types/apex.js/apex.js-tests.ts similarity index 100% rename from apex.js/apex.js-tests.ts rename to types/apex.js/apex.js-tests.ts diff --git a/apex.js/index.d.ts b/types/apex.js/index.d.ts similarity index 100% rename from apex.js/index.d.ts rename to types/apex.js/index.d.ts diff --git a/apex.js/tsconfig.json b/types/apex.js/tsconfig.json similarity index 100% rename from apex.js/tsconfig.json rename to types/apex.js/tsconfig.json diff --git a/apex.js/tslint.json b/types/apex.js/tslint.json similarity index 100% rename from apex.js/tslint.json rename to types/apex.js/tslint.json diff --git a/aphrodite/aphrodite-tests.tsx b/types/aphrodite/aphrodite-tests.tsx similarity index 100% rename from aphrodite/aphrodite-tests.tsx rename to types/aphrodite/aphrodite-tests.tsx diff --git a/aphrodite/index.d.ts b/types/aphrodite/index.d.ts similarity index 100% rename from aphrodite/index.d.ts rename to types/aphrodite/index.d.ts diff --git a/aphrodite/no-important/index.d.ts b/types/aphrodite/no-important/index.d.ts similarity index 100% rename from aphrodite/no-important/index.d.ts rename to types/aphrodite/no-important/index.d.ts diff --git a/aphrodite/tsconfig.json b/types/aphrodite/tsconfig.json similarity index 100% rename from aphrodite/tsconfig.json rename to types/aphrodite/tsconfig.json diff --git a/api-error-handler/api-error-handler-tests.ts b/types/api-error-handler/api-error-handler-tests.ts similarity index 100% rename from api-error-handler/api-error-handler-tests.ts rename to types/api-error-handler/api-error-handler-tests.ts diff --git a/api-error-handler/index.d.ts b/types/api-error-handler/index.d.ts similarity index 100% rename from api-error-handler/index.d.ts rename to types/api-error-handler/index.d.ts diff --git a/api-error-handler/tsconfig.json b/types/api-error-handler/tsconfig.json similarity index 100% rename from api-error-handler/tsconfig.json rename to types/api-error-handler/tsconfig.json diff --git a/apigee-access/apigee-access-tests.ts b/types/apigee-access/apigee-access-tests.ts similarity index 100% rename from apigee-access/apigee-access-tests.ts rename to types/apigee-access/apigee-access-tests.ts diff --git a/apigee-access/index.d.ts b/types/apigee-access/index.d.ts similarity index 100% rename from apigee-access/index.d.ts rename to types/apigee-access/index.d.ts diff --git a/apigee-access/tsconfig.json b/types/apigee-access/tsconfig.json similarity index 100% rename from apigee-access/tsconfig.json rename to types/apigee-access/tsconfig.json diff --git a/apn/apn-tests.ts b/types/apn/apn-tests.ts similarity index 100% rename from apn/apn-tests.ts rename to types/apn/apn-tests.ts diff --git a/apn/index.d.ts b/types/apn/index.d.ts similarity index 100% rename from apn/index.d.ts rename to types/apn/index.d.ts diff --git a/apn/tsconfig.json b/types/apn/tsconfig.json similarity index 100% rename from apn/tsconfig.json rename to types/apn/tsconfig.json diff --git a/app-root-path/app-root-path-tests.ts b/types/app-root-path/app-root-path-tests.ts similarity index 100% rename from app-root-path/app-root-path-tests.ts rename to types/app-root-path/app-root-path-tests.ts diff --git a/app-root-path/index.d.ts b/types/app-root-path/index.d.ts similarity index 100% rename from app-root-path/index.d.ts rename to types/app-root-path/index.d.ts diff --git a/app-root-path/tsconfig.json b/types/app-root-path/tsconfig.json similarity index 100% rename from app-root-path/tsconfig.json rename to types/app-root-path/tsconfig.json diff --git a/appframework/appframework-tests.ts b/types/appframework/appframework-tests.ts similarity index 100% rename from appframework/appframework-tests.ts rename to types/appframework/appframework-tests.ts diff --git a/appframework/index.d.ts b/types/appframework/index.d.ts similarity index 100% rename from appframework/index.d.ts rename to types/appframework/index.d.ts diff --git a/appframework/tsconfig.json b/types/appframework/tsconfig.json similarity index 100% rename from appframework/tsconfig.json rename to types/appframework/tsconfig.json diff --git a/appletvjs/README.md b/types/appletvjs/README.md similarity index 100% rename from appletvjs/README.md rename to types/appletvjs/README.md diff --git a/appletvjs/appletvjs-tests.ts b/types/appletvjs/appletvjs-tests.ts similarity index 100% rename from appletvjs/appletvjs-tests.ts rename to types/appletvjs/appletvjs-tests.ts diff --git a/appletvjs/index.d.ts b/types/appletvjs/index.d.ts similarity index 100% rename from appletvjs/index.d.ts rename to types/appletvjs/index.d.ts diff --git a/appletvjs/tsconfig.json b/types/appletvjs/tsconfig.json similarity index 100% rename from appletvjs/tsconfig.json rename to types/appletvjs/tsconfig.json diff --git a/applicationinsights-js/applicationinsights-js-tests.ts b/types/applicationinsights-js/applicationinsights-js-tests.ts similarity index 100% rename from applicationinsights-js/applicationinsights-js-tests.ts rename to types/applicationinsights-js/applicationinsights-js-tests.ts diff --git a/applicationinsights-js/index.d.ts b/types/applicationinsights-js/index.d.ts similarity index 100% rename from applicationinsights-js/index.d.ts rename to types/applicationinsights-js/index.d.ts diff --git a/applicationinsights-js/tsconfig.json b/types/applicationinsights-js/tsconfig.json similarity index 100% rename from applicationinsights-js/tsconfig.json rename to types/applicationinsights-js/tsconfig.json diff --git a/applicationinsights-js/tslint.json b/types/applicationinsights-js/tslint.json similarity index 100% rename from applicationinsights-js/tslint.json rename to types/applicationinsights-js/tslint.json diff --git a/applicationinsights/applicationinsights-tests.ts b/types/applicationinsights/applicationinsights-tests.ts similarity index 100% rename from applicationinsights/applicationinsights-tests.ts rename to types/applicationinsights/applicationinsights-tests.ts diff --git a/applicationinsights/index.d.ts b/types/applicationinsights/index.d.ts similarity index 100% rename from applicationinsights/index.d.ts rename to types/applicationinsights/index.d.ts diff --git a/applicationinsights/tsconfig.json b/types/applicationinsights/tsconfig.json similarity index 100% rename from applicationinsights/tsconfig.json rename to types/applicationinsights/tsconfig.json diff --git a/arbiter/arbiter-tests.ts b/types/arbiter/arbiter-tests.ts similarity index 100% rename from arbiter/arbiter-tests.ts rename to types/arbiter/arbiter-tests.ts diff --git a/arbiter/index.d.ts b/types/arbiter/index.d.ts similarity index 100% rename from arbiter/index.d.ts rename to types/arbiter/index.d.ts diff --git a/arbiter/tsconfig.json b/types/arbiter/tsconfig.json similarity index 100% rename from arbiter/tsconfig.json rename to types/arbiter/tsconfig.json diff --git a/arcgis-js-api/arcgis-js-api-tests.ts b/types/arcgis-js-api/arcgis-js-api-tests.ts similarity index 100% rename from arcgis-js-api/arcgis-js-api-tests.ts rename to types/arcgis-js-api/arcgis-js-api-tests.ts diff --git a/arcgis-js-api/index.d.ts b/types/arcgis-js-api/index.d.ts similarity index 100% rename from arcgis-js-api/index.d.ts rename to types/arcgis-js-api/index.d.ts diff --git a/arcgis-js-api/tsconfig.json b/types/arcgis-js-api/tsconfig.json similarity index 100% rename from arcgis-js-api/tsconfig.json rename to types/arcgis-js-api/tsconfig.json diff --git a/arcgis-js-api/v3/arcgis-js-api-tests.ts b/types/arcgis-js-api/v3/arcgis-js-api-tests.ts similarity index 100% rename from arcgis-js-api/v3/arcgis-js-api-tests.ts rename to types/arcgis-js-api/v3/arcgis-js-api-tests.ts diff --git a/arcgis-js-api/v3/index.d.ts b/types/arcgis-js-api/v3/index.d.ts similarity index 100% rename from arcgis-js-api/v3/index.d.ts rename to types/arcgis-js-api/v3/index.d.ts diff --git a/arcgis-js-api/v3/tsconfig.json b/types/arcgis-js-api/v3/tsconfig.json similarity index 100% rename from arcgis-js-api/v3/tsconfig.json rename to types/arcgis-js-api/v3/tsconfig.json diff --git a/arcgis-rest-api/arcgis-rest-api-tests.ts b/types/arcgis-rest-api/arcgis-rest-api-tests.ts similarity index 100% rename from arcgis-rest-api/arcgis-rest-api-tests.ts rename to types/arcgis-rest-api/arcgis-rest-api-tests.ts diff --git a/arcgis-rest-api/index.d.ts b/types/arcgis-rest-api/index.d.ts similarity index 100% rename from arcgis-rest-api/index.d.ts rename to types/arcgis-rest-api/index.d.ts diff --git a/arcgis-rest-api/tsconfig.json b/types/arcgis-rest-api/tsconfig.json similarity index 100% rename from arcgis-rest-api/tsconfig.json rename to types/arcgis-rest-api/tsconfig.json diff --git a/arcgis-rest-api/tslint.json b/types/arcgis-rest-api/tslint.json similarity index 100% rename from arcgis-rest-api/tslint.json rename to types/arcgis-rest-api/tslint.json diff --git a/arcgis-to-geojson-utils/arcgis-to-geojson-utils-tests.ts b/types/arcgis-to-geojson-utils/arcgis-to-geojson-utils-tests.ts similarity index 100% rename from arcgis-to-geojson-utils/arcgis-to-geojson-utils-tests.ts rename to types/arcgis-to-geojson-utils/arcgis-to-geojson-utils-tests.ts diff --git a/arcgis-to-geojson-utils/index.d.ts b/types/arcgis-to-geojson-utils/index.d.ts similarity index 100% rename from arcgis-to-geojson-utils/index.d.ts rename to types/arcgis-to-geojson-utils/index.d.ts diff --git a/arcgis-to-geojson-utils/tsconfig.json b/types/arcgis-to-geojson-utils/tsconfig.json similarity index 100% rename from arcgis-to-geojson-utils/tsconfig.json rename to types/arcgis-to-geojson-utils/tsconfig.json diff --git a/arcgis-to-geojson-utils/tslint.json b/types/arcgis-to-geojson-utils/tslint.json similarity index 100% rename from arcgis-to-geojson-utils/tslint.json rename to types/arcgis-to-geojson-utils/tslint.json diff --git a/archiver/archiver-tests.ts b/types/archiver/archiver-tests.ts similarity index 100% rename from archiver/archiver-tests.ts rename to types/archiver/archiver-tests.ts diff --git a/archiver/index.d.ts b/types/archiver/index.d.ts similarity index 100% rename from archiver/index.d.ts rename to types/archiver/index.d.ts diff --git a/archiver/tsconfig.json b/types/archiver/tsconfig.json similarity index 100% rename from archiver/tsconfig.json rename to types/archiver/tsconfig.json diff --git a/archy/archy-tests.ts b/types/archy/archy-tests.ts similarity index 100% rename from archy/archy-tests.ts rename to types/archy/archy-tests.ts diff --git a/archy/index.d.ts b/types/archy/index.d.ts similarity index 100% rename from archy/index.d.ts rename to types/archy/index.d.ts diff --git a/archy/tsconfig.json b/types/archy/tsconfig.json similarity index 100% rename from archy/tsconfig.json rename to types/archy/tsconfig.json diff --git a/argparse/argparse-tests.ts b/types/argparse/argparse-tests.ts similarity index 100% rename from argparse/argparse-tests.ts rename to types/argparse/argparse-tests.ts diff --git a/argparse/index.d.ts b/types/argparse/index.d.ts similarity index 100% rename from argparse/index.d.ts rename to types/argparse/index.d.ts diff --git a/argparse/tsconfig.json b/types/argparse/tsconfig.json similarity index 100% rename from argparse/tsconfig.json rename to types/argparse/tsconfig.json diff --git a/argv/argv-tests.ts b/types/argv/argv-tests.ts similarity index 100% rename from argv/argv-tests.ts rename to types/argv/argv-tests.ts diff --git a/argv/index.d.ts b/types/argv/index.d.ts similarity index 100% rename from argv/index.d.ts rename to types/argv/index.d.ts diff --git a/argv/tsconfig.json b/types/argv/tsconfig.json similarity index 100% rename from argv/tsconfig.json rename to types/argv/tsconfig.json diff --git a/array-find-index/array-find-index-tests.ts b/types/array-find-index/array-find-index-tests.ts similarity index 100% rename from array-find-index/array-find-index-tests.ts rename to types/array-find-index/array-find-index-tests.ts diff --git a/array-find-index/index.d.ts b/types/array-find-index/index.d.ts similarity index 100% rename from array-find-index/index.d.ts rename to types/array-find-index/index.d.ts diff --git a/array-find-index/tsconfig.json b/types/array-find-index/tsconfig.json similarity index 100% rename from array-find-index/tsconfig.json rename to types/array-find-index/tsconfig.json diff --git a/array-find-index/tslint.json b/types/array-find-index/tslint.json similarity index 100% rename from array-find-index/tslint.json rename to types/array-find-index/tslint.json diff --git a/array-foreach/array-foreach-tests.ts b/types/array-foreach/array-foreach-tests.ts similarity index 100% rename from array-foreach/array-foreach-tests.ts rename to types/array-foreach/array-foreach-tests.ts diff --git a/array-foreach/index.d.ts b/types/array-foreach/index.d.ts similarity index 100% rename from array-foreach/index.d.ts rename to types/array-foreach/index.d.ts diff --git a/array-foreach/tsconfig.json b/types/array-foreach/tsconfig.json similarity index 100% rename from array-foreach/tsconfig.json rename to types/array-foreach/tsconfig.json diff --git a/array-uniq/array-uniq-tests.ts b/types/array-uniq/array-uniq-tests.ts similarity index 100% rename from array-uniq/array-uniq-tests.ts rename to types/array-uniq/array-uniq-tests.ts diff --git a/array-uniq/index.d.ts b/types/array-uniq/index.d.ts similarity index 100% rename from array-uniq/index.d.ts rename to types/array-uniq/index.d.ts diff --git a/array-uniq/tsconfig.json b/types/array-uniq/tsconfig.json similarity index 100% rename from array-uniq/tsconfig.json rename to types/array-uniq/tsconfig.json diff --git a/array-uniq/tslint.json b/types/array-uniq/tslint.json similarity index 100% rename from array-uniq/tslint.json rename to types/array-uniq/tslint.json diff --git a/artyom.js/artyom.js-tests.ts b/types/artyom.js/artyom.js-tests.ts similarity index 100% rename from artyom.js/artyom.js-tests.ts rename to types/artyom.js/artyom.js-tests.ts diff --git a/artyom.js/index.d.ts b/types/artyom.js/index.d.ts similarity index 100% rename from artyom.js/index.d.ts rename to types/artyom.js/index.d.ts diff --git a/artyom.js/tsconfig.json b/types/artyom.js/tsconfig.json similarity index 100% rename from artyom.js/tsconfig.json rename to types/artyom.js/tsconfig.json diff --git a/artyom.js/tslint.json b/types/artyom.js/tslint.json similarity index 100% rename from artyom.js/tslint.json rename to types/artyom.js/tslint.json diff --git a/asana/asana-tests.ts b/types/asana/asana-tests.ts similarity index 100% rename from asana/asana-tests.ts rename to types/asana/asana-tests.ts diff --git a/asana/index.d.ts b/types/asana/index.d.ts similarity index 100% rename from asana/index.d.ts rename to types/asana/index.d.ts diff --git a/asana/tsconfig.json b/types/asana/tsconfig.json similarity index 100% rename from asana/tsconfig.json rename to types/asana/tsconfig.json diff --git a/asciify/asciify-tests.ts b/types/asciify/asciify-tests.ts similarity index 100% rename from asciify/asciify-tests.ts rename to types/asciify/asciify-tests.ts diff --git a/asciify/index.d.ts b/types/asciify/index.d.ts similarity index 100% rename from asciify/index.d.ts rename to types/asciify/index.d.ts diff --git a/asciify/tsconfig.json b/types/asciify/tsconfig.json similarity index 100% rename from asciify/tsconfig.json rename to types/asciify/tsconfig.json diff --git a/asn1js/asn1js-tests.ts b/types/asn1js/asn1js-tests.ts similarity index 100% rename from asn1js/asn1js-tests.ts rename to types/asn1js/asn1js-tests.ts diff --git a/asn1js/index.d.ts b/types/asn1js/index.d.ts similarity index 100% rename from asn1js/index.d.ts rename to types/asn1js/index.d.ts diff --git a/asn1js/tsconfig.json b/types/asn1js/tsconfig.json similarity index 100% rename from asn1js/tsconfig.json rename to types/asn1js/tsconfig.json diff --git a/aspnet-identity-pw/aspnet-identity-pw-tests.ts b/types/aspnet-identity-pw/aspnet-identity-pw-tests.ts similarity index 100% rename from aspnet-identity-pw/aspnet-identity-pw-tests.ts rename to types/aspnet-identity-pw/aspnet-identity-pw-tests.ts diff --git a/aspnet-identity-pw/index.d.ts b/types/aspnet-identity-pw/index.d.ts similarity index 100% rename from aspnet-identity-pw/index.d.ts rename to types/aspnet-identity-pw/index.d.ts diff --git a/aspnet-identity-pw/tsconfig.json b/types/aspnet-identity-pw/tsconfig.json similarity index 100% rename from aspnet-identity-pw/tsconfig.json rename to types/aspnet-identity-pw/tsconfig.json diff --git a/assert-plus/assert-plus-tests.ts b/types/assert-plus/assert-plus-tests.ts similarity index 100% rename from assert-plus/assert-plus-tests.ts rename to types/assert-plus/assert-plus-tests.ts diff --git a/assert-plus/index.d.ts b/types/assert-plus/index.d.ts similarity index 100% rename from assert-plus/index.d.ts rename to types/assert-plus/index.d.ts diff --git a/assert-plus/tsconfig.json b/types/assert-plus/tsconfig.json similarity index 100% rename from assert-plus/tsconfig.json rename to types/assert-plus/tsconfig.json diff --git a/assert-plus/tslint.json b/types/assert-plus/tslint.json similarity index 100% rename from assert-plus/tslint.json rename to types/assert-plus/tslint.json diff --git a/assertion-error/assertion-error-tests.ts b/types/assertion-error/assertion-error-tests.ts similarity index 100% rename from assertion-error/assertion-error-tests.ts rename to types/assertion-error/assertion-error-tests.ts diff --git a/assertion-error/index.d.ts b/types/assertion-error/index.d.ts similarity index 100% rename from assertion-error/index.d.ts rename to types/assertion-error/index.d.ts diff --git a/assertion-error/tsconfig.json b/types/assertion-error/tsconfig.json similarity index 100% rename from assertion-error/tsconfig.json rename to types/assertion-error/tsconfig.json diff --git a/assertsharp/assertsharp-tests.ts b/types/assertsharp/assertsharp-tests.ts similarity index 100% rename from assertsharp/assertsharp-tests.ts rename to types/assertsharp/assertsharp-tests.ts diff --git a/assertsharp/index.d.ts b/types/assertsharp/index.d.ts similarity index 100% rename from assertsharp/index.d.ts rename to types/assertsharp/index.d.ts diff --git a/assertsharp/tsconfig.json b/types/assertsharp/tsconfig.json similarity index 100% rename from assertsharp/tsconfig.json rename to types/assertsharp/tsconfig.json diff --git a/async-lock/async-lock-tests.ts b/types/async-lock/async-lock-tests.ts similarity index 100% rename from async-lock/async-lock-tests.ts rename to types/async-lock/async-lock-tests.ts diff --git a/async-lock/index.d.ts b/types/async-lock/index.d.ts similarity index 100% rename from async-lock/index.d.ts rename to types/async-lock/index.d.ts diff --git a/async-lock/tsconfig.json b/types/async-lock/tsconfig.json similarity index 100% rename from async-lock/tsconfig.json rename to types/async-lock/tsconfig.json diff --git a/async-polling/async-polling-tests.ts b/types/async-polling/async-polling-tests.ts similarity index 100% rename from async-polling/async-polling-tests.ts rename to types/async-polling/async-polling-tests.ts diff --git a/async-polling/index.d.ts b/types/async-polling/index.d.ts similarity index 100% rename from async-polling/index.d.ts rename to types/async-polling/index.d.ts diff --git a/async-polling/tsconfig.json b/types/async-polling/tsconfig.json similarity index 100% rename from async-polling/tsconfig.json rename to types/async-polling/tsconfig.json diff --git a/async-writer/async-writer-tests.ts b/types/async-writer/async-writer-tests.ts similarity index 100% rename from async-writer/async-writer-tests.ts rename to types/async-writer/async-writer-tests.ts diff --git a/async-writer/index.d.ts b/types/async-writer/index.d.ts similarity index 100% rename from async-writer/index.d.ts rename to types/async-writer/index.d.ts diff --git a/async-writer/tsconfig.json b/types/async-writer/tsconfig.json similarity index 100% rename from async-writer/tsconfig.json rename to types/async-writer/tsconfig.json diff --git a/async/index.d.ts b/types/async/index.d.ts similarity index 100% rename from async/index.d.ts rename to types/async/index.d.ts diff --git a/async/test/es6-generators.ts b/types/async/test/es6-generators.ts similarity index 100% rename from async/test/es6-generators.ts rename to types/async/test/es6-generators.ts diff --git a/async/test/explicit.ts b/types/async/test/explicit.ts similarity index 100% rename from async/test/explicit.ts rename to types/async/test/explicit.ts diff --git a/async/test/index.ts b/types/async/test/index.ts similarity index 100% rename from async/test/index.ts rename to types/async/test/index.ts diff --git a/async/tsconfig.json b/types/async/tsconfig.json similarity index 100% rename from async/tsconfig.json rename to types/async/tsconfig.json diff --git a/asyncblock/asyncblock-tests.ts b/types/asyncblock/asyncblock-tests.ts similarity index 100% rename from asyncblock/asyncblock-tests.ts rename to types/asyncblock/asyncblock-tests.ts diff --git a/asyncblock/index.d.ts b/types/asyncblock/index.d.ts similarity index 100% rename from asyncblock/index.d.ts rename to types/asyncblock/index.d.ts diff --git a/asyncblock/tsconfig.json b/types/asyncblock/tsconfig.json similarity index 100% rename from asyncblock/tsconfig.json rename to types/asyncblock/tsconfig.json diff --git a/atmosphere/atmosphere-tests.ts b/types/atmosphere/atmosphere-tests.ts similarity index 100% rename from atmosphere/atmosphere-tests.ts rename to types/atmosphere/atmosphere-tests.ts diff --git a/atmosphere/index.d.ts b/types/atmosphere/index.d.ts similarity index 100% rename from atmosphere/index.d.ts rename to types/atmosphere/index.d.ts diff --git a/atmosphere/tsconfig.json b/types/atmosphere/tsconfig.json similarity index 100% rename from atmosphere/tsconfig.json rename to types/atmosphere/tsconfig.json diff --git a/atom-keymap/.editorconfig b/types/atom-keymap/.editorconfig similarity index 100% rename from atom-keymap/.editorconfig rename to types/atom-keymap/.editorconfig diff --git a/atom-keymap/atom-keymap-tests.ts b/types/atom-keymap/atom-keymap-tests.ts similarity index 100% rename from atom-keymap/atom-keymap-tests.ts rename to types/atom-keymap/atom-keymap-tests.ts diff --git a/atom-keymap/index.d.ts b/types/atom-keymap/index.d.ts similarity index 100% rename from atom-keymap/index.d.ts rename to types/atom-keymap/index.d.ts diff --git a/atom-keymap/tsconfig.json b/types/atom-keymap/tsconfig.json similarity index 100% rename from atom-keymap/tsconfig.json rename to types/atom-keymap/tsconfig.json diff --git a/atom/api-docs.d.ts b/types/atom/api-docs.d.ts similarity index 100% rename from atom/api-docs.d.ts rename to types/atom/api-docs.d.ts diff --git a/atom/atom-tests.ts b/types/atom/atom-tests.ts similarity index 100% rename from atom/atom-tests.ts rename to types/atom/atom-tests.ts diff --git a/atom/index.d.ts b/types/atom/index.d.ts similarity index 100% rename from atom/index.d.ts rename to types/atom/index.d.ts diff --git a/atom/tsconfig.json b/types/atom/tsconfig.json similarity index 100% rename from atom/tsconfig.json rename to types/atom/tsconfig.json diff --git a/atpl/atpl-tests.ts b/types/atpl/atpl-tests.ts similarity index 100% rename from atpl/atpl-tests.ts rename to types/atpl/atpl-tests.ts diff --git a/atpl/index.d.ts b/types/atpl/index.d.ts similarity index 100% rename from atpl/index.d.ts rename to types/atpl/index.d.ts diff --git a/atpl/tsconfig.json b/types/atpl/tsconfig.json similarity index 100% rename from atpl/tsconfig.json rename to types/atpl/tsconfig.json diff --git a/aurelia-knockout/aurelia-knockout-tests.ts b/types/aurelia-knockout/aurelia-knockout-tests.ts similarity index 100% rename from aurelia-knockout/aurelia-knockout-tests.ts rename to types/aurelia-knockout/aurelia-knockout-tests.ts diff --git a/aurelia-knockout/index.d.ts b/types/aurelia-knockout/index.d.ts similarity index 100% rename from aurelia-knockout/index.d.ts rename to types/aurelia-knockout/index.d.ts diff --git a/aurelia-knockout/tsconfig.json b/types/aurelia-knockout/tsconfig.json similarity index 100% rename from aurelia-knockout/tsconfig.json rename to types/aurelia-knockout/tsconfig.json diff --git a/aurelia-knockout/tslint.json b/types/aurelia-knockout/tslint.json similarity index 100% rename from aurelia-knockout/tslint.json rename to types/aurelia-knockout/tslint.json diff --git a/auth0-angular/auth0-angular-tests.ts b/types/auth0-angular/auth0-angular-tests.ts similarity index 100% rename from auth0-angular/auth0-angular-tests.ts rename to types/auth0-angular/auth0-angular-tests.ts diff --git a/auth0-angular/index.d.ts b/types/auth0-angular/index.d.ts similarity index 100% rename from auth0-angular/index.d.ts rename to types/auth0-angular/index.d.ts diff --git a/auth0-angular/tsconfig.json b/types/auth0-angular/tsconfig.json similarity index 100% rename from auth0-angular/tsconfig.json rename to types/auth0-angular/tsconfig.json diff --git a/auth0-js/auth0-js-tests.ts b/types/auth0-js/auth0-js-tests.ts similarity index 100% rename from auth0-js/auth0-js-tests.ts rename to types/auth0-js/auth0-js-tests.ts diff --git a/auth0-js/index.d.ts b/types/auth0-js/index.d.ts similarity index 100% rename from auth0-js/index.d.ts rename to types/auth0-js/index.d.ts diff --git a/auth0-js/tsconfig.json b/types/auth0-js/tsconfig.json similarity index 100% rename from auth0-js/tsconfig.json rename to types/auth0-js/tsconfig.json diff --git a/auth0-js/v7/auth0-js-tests.ts b/types/auth0-js/v7/auth0-js-tests.ts similarity index 100% rename from auth0-js/v7/auth0-js-tests.ts rename to types/auth0-js/v7/auth0-js-tests.ts diff --git a/auth0-js/v7/index.d.ts b/types/auth0-js/v7/index.d.ts similarity index 100% rename from auth0-js/v7/index.d.ts rename to types/auth0-js/v7/index.d.ts diff --git a/auth0-js/v7/tsconfig.json b/types/auth0-js/v7/tsconfig.json similarity index 100% rename from auth0-js/v7/tsconfig.json rename to types/auth0-js/v7/tsconfig.json diff --git a/auth0-lock/auth0-lock-tests.ts b/types/auth0-lock/auth0-lock-tests.ts similarity index 100% rename from auth0-lock/auth0-lock-tests.ts rename to types/auth0-lock/auth0-lock-tests.ts diff --git a/auth0-lock/index.d.ts b/types/auth0-lock/index.d.ts similarity index 100% rename from auth0-lock/index.d.ts rename to types/auth0-lock/index.d.ts diff --git a/auth0-lock/package.json b/types/auth0-lock/package.json similarity index 100% rename from auth0-lock/package.json rename to types/auth0-lock/package.json diff --git a/auth0-lock/tsconfig.json b/types/auth0-lock/tsconfig.json similarity index 100% rename from auth0-lock/tsconfig.json rename to types/auth0-lock/tsconfig.json diff --git a/auth0.widget/auth0.widget-tests.ts b/types/auth0.widget/auth0.widget-tests.ts similarity index 100% rename from auth0.widget/auth0.widget-tests.ts rename to types/auth0.widget/auth0.widget-tests.ts diff --git a/auth0.widget/index.d.ts b/types/auth0.widget/index.d.ts similarity index 100% rename from auth0.widget/index.d.ts rename to types/auth0.widget/index.d.ts diff --git a/auth0.widget/package.json b/types/auth0.widget/package.json similarity index 100% rename from auth0.widget/package.json rename to types/auth0.widget/package.json diff --git a/auth0.widget/tsconfig.json b/types/auth0.widget/tsconfig.json similarity index 100% rename from auth0.widget/tsconfig.json rename to types/auth0.widget/tsconfig.json diff --git a/auth0/auth0-tests.ts b/types/auth0/auth0-tests.ts similarity index 100% rename from auth0/auth0-tests.ts rename to types/auth0/auth0-tests.ts diff --git a/auth0/index.d.ts b/types/auth0/index.d.ts similarity index 100% rename from auth0/index.d.ts rename to types/auth0/index.d.ts diff --git a/auth0/tsconfig.json b/types/auth0/tsconfig.json similarity index 100% rename from auth0/tsconfig.json rename to types/auth0/tsconfig.json diff --git a/auto-launch/auto-launch-tests.ts b/types/auto-launch/auto-launch-tests.ts similarity index 100% rename from auto-launch/auto-launch-tests.ts rename to types/auto-launch/auto-launch-tests.ts diff --git a/auto-launch/index.d.ts b/types/auto-launch/index.d.ts similarity index 100% rename from auto-launch/index.d.ts rename to types/auto-launch/index.d.ts diff --git a/auto-launch/tsconfig.json b/types/auto-launch/tsconfig.json similarity index 100% rename from auto-launch/tsconfig.json rename to types/auto-launch/tsconfig.json diff --git a/autobahn/autobahn-tests.ts b/types/autobahn/autobahn-tests.ts similarity index 100% rename from autobahn/autobahn-tests.ts rename to types/autobahn/autobahn-tests.ts diff --git a/autobahn/index.d.ts b/types/autobahn/index.d.ts similarity index 100% rename from autobahn/index.d.ts rename to types/autobahn/index.d.ts diff --git a/autobahn/tsconfig.json b/types/autobahn/tsconfig.json similarity index 100% rename from autobahn/tsconfig.json rename to types/autobahn/tsconfig.json diff --git a/autobind-decorator/autobind-decorator-tests.ts b/types/autobind-decorator/autobind-decorator-tests.ts similarity index 100% rename from autobind-decorator/autobind-decorator-tests.ts rename to types/autobind-decorator/autobind-decorator-tests.ts diff --git a/autobind-decorator/index.d.ts b/types/autobind-decorator/index.d.ts similarity index 100% rename from autobind-decorator/index.d.ts rename to types/autobind-decorator/index.d.ts diff --git a/autobind-decorator/tsconfig.json b/types/autobind-decorator/tsconfig.json similarity index 100% rename from autobind-decorator/tsconfig.json rename to types/autobind-decorator/tsconfig.json diff --git a/autolinker/autolinker-tests.ts b/types/autolinker/autolinker-tests.ts similarity index 100% rename from autolinker/autolinker-tests.ts rename to types/autolinker/autolinker-tests.ts diff --git a/autolinker/index.d.ts b/types/autolinker/index.d.ts similarity index 100% rename from autolinker/index.d.ts rename to types/autolinker/index.d.ts diff --git a/autolinker/tsconfig.json b/types/autolinker/tsconfig.json similarity index 100% rename from autolinker/tsconfig.json rename to types/autolinker/tsconfig.json diff --git a/autoprefixer-core/autoprefixer-core-tests.ts b/types/autoprefixer-core/autoprefixer-core-tests.ts similarity index 100% rename from autoprefixer-core/autoprefixer-core-tests.ts rename to types/autoprefixer-core/autoprefixer-core-tests.ts diff --git a/autoprefixer-core/index.d.ts b/types/autoprefixer-core/index.d.ts similarity index 100% rename from autoprefixer-core/index.d.ts rename to types/autoprefixer-core/index.d.ts diff --git a/autoprefixer-core/tsconfig.json b/types/autoprefixer-core/tsconfig.json similarity index 100% rename from autoprefixer-core/tsconfig.json rename to types/autoprefixer-core/tsconfig.json diff --git a/autoprefixer/autoprefixer-tests.ts b/types/autoprefixer/autoprefixer-tests.ts similarity index 100% rename from autoprefixer/autoprefixer-tests.ts rename to types/autoprefixer/autoprefixer-tests.ts diff --git a/autoprefixer/index.d.ts b/types/autoprefixer/index.d.ts similarity index 100% rename from autoprefixer/index.d.ts rename to types/autoprefixer/index.d.ts diff --git a/autoprefixer/package.json b/types/autoprefixer/package.json similarity index 100% rename from autoprefixer/package.json rename to types/autoprefixer/package.json diff --git a/autoprefixer/tsconfig.json b/types/autoprefixer/tsconfig.json similarity index 100% rename from autoprefixer/tsconfig.json rename to types/autoprefixer/tsconfig.json diff --git a/autoprefixer/tslint.json b/types/autoprefixer/tslint.json similarity index 100% rename from autoprefixer/tslint.json rename to types/autoprefixer/tslint.json diff --git a/autosize/autosize-tests.ts b/types/autosize/autosize-tests.ts similarity index 100% rename from autosize/autosize-tests.ts rename to types/autosize/autosize-tests.ts diff --git a/autosize/index.d.ts b/types/autosize/index.d.ts similarity index 100% rename from autosize/index.d.ts rename to types/autosize/index.d.ts diff --git a/autosize/tsconfig.json b/types/autosize/tsconfig.json similarity index 100% rename from autosize/tsconfig.json rename to types/autosize/tsconfig.json diff --git a/avoscloud-sdk/avoscloud-sdk-tests.ts b/types/avoscloud-sdk/avoscloud-sdk-tests.ts similarity index 100% rename from avoscloud-sdk/avoscloud-sdk-tests.ts rename to types/avoscloud-sdk/avoscloud-sdk-tests.ts diff --git a/avoscloud-sdk/index.d.ts b/types/avoscloud-sdk/index.d.ts similarity index 100% rename from avoscloud-sdk/index.d.ts rename to types/avoscloud-sdk/index.d.ts diff --git a/avoscloud-sdk/tsconfig.json b/types/avoscloud-sdk/tsconfig.json similarity index 100% rename from avoscloud-sdk/tsconfig.json rename to types/avoscloud-sdk/tsconfig.json diff --git a/awesomplete/awesomplete-tests.ts b/types/awesomplete/awesomplete-tests.ts similarity index 100% rename from awesomplete/awesomplete-tests.ts rename to types/awesomplete/awesomplete-tests.ts diff --git a/awesomplete/index.d.ts b/types/awesomplete/index.d.ts similarity index 100% rename from awesomplete/index.d.ts rename to types/awesomplete/index.d.ts diff --git a/awesomplete/tsconfig.json b/types/awesomplete/tsconfig.json similarity index 100% rename from awesomplete/tsconfig.json rename to types/awesomplete/tsconfig.json diff --git a/awesomplete/tslint.json b/types/awesomplete/tslint.json similarity index 100% rename from awesomplete/tslint.json rename to types/awesomplete/tslint.json diff --git a/aws-iot-device-sdk/aws-iot-device-sdk-tests.ts b/types/aws-iot-device-sdk/aws-iot-device-sdk-tests.ts similarity index 100% rename from aws-iot-device-sdk/aws-iot-device-sdk-tests.ts rename to types/aws-iot-device-sdk/aws-iot-device-sdk-tests.ts diff --git a/aws-iot-device-sdk/index.d.ts b/types/aws-iot-device-sdk/index.d.ts similarity index 100% rename from aws-iot-device-sdk/index.d.ts rename to types/aws-iot-device-sdk/index.d.ts diff --git a/aws-iot-device-sdk/tsconfig.json b/types/aws-iot-device-sdk/tsconfig.json similarity index 100% rename from aws-iot-device-sdk/tsconfig.json rename to types/aws-iot-device-sdk/tsconfig.json diff --git a/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts similarity index 100% rename from aws-lambda/aws-lambda-tests.ts rename to types/aws-lambda/aws-lambda-tests.ts diff --git a/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts similarity index 100% rename from aws-lambda/index.d.ts rename to types/aws-lambda/index.d.ts diff --git a/aws-lambda/tsconfig.json b/types/aws-lambda/tsconfig.json similarity index 100% rename from aws-lambda/tsconfig.json rename to types/aws-lambda/tsconfig.json diff --git a/aws-sdk/aws-sdk-tests.ts b/types/aws-sdk/aws-sdk-tests.ts similarity index 100% rename from aws-sdk/aws-sdk-tests.ts rename to types/aws-sdk/aws-sdk-tests.ts diff --git a/aws-sdk/index.d.ts b/types/aws-sdk/index.d.ts similarity index 100% rename from aws-sdk/index.d.ts rename to types/aws-sdk/index.d.ts diff --git a/aws-sdk/tsconfig.json b/types/aws-sdk/tsconfig.json similarity index 100% rename from aws-sdk/tsconfig.json rename to types/aws-sdk/tsconfig.json diff --git a/aws-serverless-express/aws-serverless-express-tests.ts b/types/aws-serverless-express/aws-serverless-express-tests.ts similarity index 100% rename from aws-serverless-express/aws-serverless-express-tests.ts rename to types/aws-serverless-express/aws-serverless-express-tests.ts diff --git a/aws-serverless-express/index.d.ts b/types/aws-serverless-express/index.d.ts similarity index 100% rename from aws-serverless-express/index.d.ts rename to types/aws-serverless-express/index.d.ts diff --git a/aws-serverless-express/middleware.d.ts b/types/aws-serverless-express/middleware.d.ts similarity index 100% rename from aws-serverless-express/middleware.d.ts rename to types/aws-serverless-express/middleware.d.ts diff --git a/aws-serverless-express/tsconfig.json b/types/aws-serverless-express/tsconfig.json similarity index 100% rename from aws-serverless-express/tsconfig.json rename to types/aws-serverless-express/tsconfig.json diff --git a/aws-serverless-express/tslint.json b/types/aws-serverless-express/tslint.json similarity index 100% rename from aws-serverless-express/tslint.json rename to types/aws-serverless-express/tslint.json diff --git a/aws4/aws4-tests.ts b/types/aws4/aws4-tests.ts similarity index 100% rename from aws4/aws4-tests.ts rename to types/aws4/aws4-tests.ts diff --git a/aws4/index.d.ts b/types/aws4/index.d.ts similarity index 100% rename from aws4/index.d.ts rename to types/aws4/index.d.ts diff --git a/aws4/tsconfig.json b/types/aws4/tsconfig.json similarity index 100% rename from aws4/tsconfig.json rename to types/aws4/tsconfig.json diff --git a/axe-core/axe-core-tests.ts b/types/axe-core/axe-core-tests.ts similarity index 100% rename from axe-core/axe-core-tests.ts rename to types/axe-core/axe-core-tests.ts diff --git a/axe-core/index.d.ts b/types/axe-core/index.d.ts similarity index 100% rename from axe-core/index.d.ts rename to types/axe-core/index.d.ts diff --git a/axe-core/tsconfig.json b/types/axe-core/tsconfig.json similarity index 100% rename from axe-core/tsconfig.json rename to types/axe-core/tsconfig.json diff --git a/axel/axel-tests.ts b/types/axel/axel-tests.ts similarity index 100% rename from axel/axel-tests.ts rename to types/axel/axel-tests.ts diff --git a/axel/index.d.ts b/types/axel/index.d.ts similarity index 100% rename from axel/index.d.ts rename to types/axel/index.d.ts diff --git a/axel/tsconfig.json b/types/axel/tsconfig.json similarity index 100% rename from axel/tsconfig.json rename to types/axel/tsconfig.json diff --git a/azure-mobile-apps/azure-mobile-apps-tests.ts b/types/azure-mobile-apps/azure-mobile-apps-tests.ts similarity index 100% rename from azure-mobile-apps/azure-mobile-apps-tests.ts rename to types/azure-mobile-apps/azure-mobile-apps-tests.ts diff --git a/azure-mobile-apps/index.d.ts b/types/azure-mobile-apps/index.d.ts similarity index 100% rename from azure-mobile-apps/index.d.ts rename to types/azure-mobile-apps/index.d.ts diff --git a/azure-mobile-apps/tsconfig.json b/types/azure-mobile-apps/tsconfig.json similarity index 100% rename from azure-mobile-apps/tsconfig.json rename to types/azure-mobile-apps/tsconfig.json diff --git a/azure-mobile-services-client/azure-mobile-services-client-tests.ts b/types/azure-mobile-services-client/azure-mobile-services-client-tests.ts similarity index 100% rename from azure-mobile-services-client/azure-mobile-services-client-tests.ts rename to types/azure-mobile-services-client/azure-mobile-services-client-tests.ts diff --git a/azure-mobile-services-client/index.d.ts b/types/azure-mobile-services-client/index.d.ts similarity index 100% rename from azure-mobile-services-client/index.d.ts rename to types/azure-mobile-services-client/index.d.ts diff --git a/azure-mobile-services-client/tsconfig.json b/types/azure-mobile-services-client/tsconfig.json similarity index 100% rename from azure-mobile-services-client/tsconfig.json rename to types/azure-mobile-services-client/tsconfig.json diff --git a/azure-sb/azure-sb-tests.ts b/types/azure-sb/azure-sb-tests.ts similarity index 100% rename from azure-sb/azure-sb-tests.ts rename to types/azure-sb/azure-sb-tests.ts diff --git a/azure-sb/index.d.ts b/types/azure-sb/index.d.ts similarity index 100% rename from azure-sb/index.d.ts rename to types/azure-sb/index.d.ts diff --git a/azure-sb/tsconfig.json b/types/azure-sb/tsconfig.json similarity index 100% rename from azure-sb/tsconfig.json rename to types/azure-sb/tsconfig.json diff --git a/azure/azure-tests.ts b/types/azure/azure-tests.ts similarity index 100% rename from azure/azure-tests.ts rename to types/azure/azure-tests.ts diff --git a/azure/index.d.ts b/types/azure/index.d.ts similarity index 100% rename from azure/index.d.ts rename to types/azure/index.d.ts diff --git a/azure/tsconfig.json b/types/azure/tsconfig.json similarity index 100% rename from azure/tsconfig.json rename to types/azure/tsconfig.json diff --git a/b_/b_-tests.ts b/types/b_/b_-tests.ts similarity index 100% rename from b_/b_-tests.ts rename to types/b_/b_-tests.ts diff --git a/b_/index.d.ts b/types/b_/index.d.ts similarity index 100% rename from b_/index.d.ts rename to types/b_/index.d.ts diff --git a/b_/tsconfig.json b/types/b_/tsconfig.json similarity index 100% rename from b_/tsconfig.json rename to types/b_/tsconfig.json diff --git a/b_/tslint.json b/types/b_/tslint.json similarity index 100% rename from b_/tslint.json rename to types/b_/tslint.json diff --git a/babel-code-frame/babel-code-frame-tests.ts b/types/babel-code-frame/babel-code-frame-tests.ts similarity index 100% rename from babel-code-frame/babel-code-frame-tests.ts rename to types/babel-code-frame/babel-code-frame-tests.ts diff --git a/babel-code-frame/index.d.ts b/types/babel-code-frame/index.d.ts similarity index 100% rename from babel-code-frame/index.d.ts rename to types/babel-code-frame/index.d.ts diff --git a/babel-code-frame/tsconfig.json b/types/babel-code-frame/tsconfig.json similarity index 100% rename from babel-code-frame/tsconfig.json rename to types/babel-code-frame/tsconfig.json diff --git a/babel-code-frame/tslint.json b/types/babel-code-frame/tslint.json similarity index 100% rename from babel-code-frame/tslint.json rename to types/babel-code-frame/tslint.json diff --git a/babel-core/babel-core-tests.ts b/types/babel-core/babel-core-tests.ts similarity index 100% rename from babel-core/babel-core-tests.ts rename to types/babel-core/babel-core-tests.ts diff --git a/babel-core/index.d.ts b/types/babel-core/index.d.ts similarity index 100% rename from babel-core/index.d.ts rename to types/babel-core/index.d.ts diff --git a/babel-core/tsconfig.json b/types/babel-core/tsconfig.json similarity index 100% rename from babel-core/tsconfig.json rename to types/babel-core/tsconfig.json diff --git a/babel-generator/babel-generator-tests.ts b/types/babel-generator/babel-generator-tests.ts similarity index 100% rename from babel-generator/babel-generator-tests.ts rename to types/babel-generator/babel-generator-tests.ts diff --git a/babel-generator/index.d.ts b/types/babel-generator/index.d.ts similarity index 100% rename from babel-generator/index.d.ts rename to types/babel-generator/index.d.ts diff --git a/babel-generator/tsconfig.json b/types/babel-generator/tsconfig.json similarity index 100% rename from babel-generator/tsconfig.json rename to types/babel-generator/tsconfig.json diff --git a/babel-template/babel-template-tests.ts b/types/babel-template/babel-template-tests.ts similarity index 100% rename from babel-template/babel-template-tests.ts rename to types/babel-template/babel-template-tests.ts diff --git a/babel-template/index.d.ts b/types/babel-template/index.d.ts similarity index 100% rename from babel-template/index.d.ts rename to types/babel-template/index.d.ts diff --git a/babel-template/tsconfig.json b/types/babel-template/tsconfig.json similarity index 100% rename from babel-template/tsconfig.json rename to types/babel-template/tsconfig.json diff --git a/babel-traverse/babel-traverse-tests.ts b/types/babel-traverse/babel-traverse-tests.ts similarity index 100% rename from babel-traverse/babel-traverse-tests.ts rename to types/babel-traverse/babel-traverse-tests.ts diff --git a/babel-traverse/index.d.ts b/types/babel-traverse/index.d.ts similarity index 100% rename from babel-traverse/index.d.ts rename to types/babel-traverse/index.d.ts diff --git a/babel-traverse/tsconfig.json b/types/babel-traverse/tsconfig.json similarity index 100% rename from babel-traverse/tsconfig.json rename to types/babel-traverse/tsconfig.json diff --git a/babel-types/babel-types-tests.ts b/types/babel-types/babel-types-tests.ts similarity index 100% rename from babel-types/babel-types-tests.ts rename to types/babel-types/babel-types-tests.ts diff --git a/babel-types/index.d.ts b/types/babel-types/index.d.ts similarity index 100% rename from babel-types/index.d.ts rename to types/babel-types/index.d.ts diff --git a/babel-types/tsconfig.json b/types/babel-types/tsconfig.json similarity index 100% rename from babel-types/tsconfig.json rename to types/babel-types/tsconfig.json diff --git a/babelify/babelify-tests.ts b/types/babelify/babelify-tests.ts similarity index 100% rename from babelify/babelify-tests.ts rename to types/babelify/babelify-tests.ts diff --git a/babelify/index.d.ts b/types/babelify/index.d.ts similarity index 100% rename from babelify/index.d.ts rename to types/babelify/index.d.ts diff --git a/babelify/tsconfig.json b/types/babelify/tsconfig.json similarity index 100% rename from babelify/tsconfig.json rename to types/babelify/tsconfig.json diff --git a/babylon/babylon-tests.ts b/types/babylon/babylon-tests.ts similarity index 100% rename from babylon/babylon-tests.ts rename to types/babylon/babylon-tests.ts diff --git a/babylon/index.d.ts b/types/babylon/index.d.ts similarity index 100% rename from babylon/index.d.ts rename to types/babylon/index.d.ts diff --git a/babylon/tsconfig.json b/types/babylon/tsconfig.json similarity index 100% rename from babylon/tsconfig.json rename to types/babylon/tsconfig.json diff --git a/babylonjs/babylonjs-tests.ts b/types/babylonjs/babylonjs-tests.ts similarity index 100% rename from babylonjs/babylonjs-tests.ts rename to types/babylonjs/babylonjs-tests.ts diff --git a/babylonjs/index.d.ts b/types/babylonjs/index.d.ts similarity index 100% rename from babylonjs/index.d.ts rename to types/babylonjs/index.d.ts diff --git a/babylonjs/tsconfig.json b/types/babylonjs/tsconfig.json similarity index 100% rename from babylonjs/tsconfig.json rename to types/babylonjs/tsconfig.json diff --git a/babyparse/babyparse-tests.ts b/types/babyparse/babyparse-tests.ts similarity index 100% rename from babyparse/babyparse-tests.ts rename to types/babyparse/babyparse-tests.ts diff --git a/babyparse/index.d.ts b/types/babyparse/index.d.ts similarity index 100% rename from babyparse/index.d.ts rename to types/babyparse/index.d.ts diff --git a/babyparse/tsconfig.json b/types/babyparse/tsconfig.json similarity index 100% rename from babyparse/tsconfig.json rename to types/babyparse/tsconfig.json diff --git a/backbone-associations/backbone-associations-tests.ts b/types/backbone-associations/backbone-associations-tests.ts similarity index 100% rename from backbone-associations/backbone-associations-tests.ts rename to types/backbone-associations/backbone-associations-tests.ts diff --git a/backbone-associations/index.d.ts b/types/backbone-associations/index.d.ts similarity index 100% rename from backbone-associations/index.d.ts rename to types/backbone-associations/index.d.ts diff --git a/backbone-associations/tsconfig.json b/types/backbone-associations/tsconfig.json similarity index 100% rename from backbone-associations/tsconfig.json rename to types/backbone-associations/tsconfig.json diff --git a/backbone-fetch-cache/backbone-fetch-cache-tests.ts b/types/backbone-fetch-cache/backbone-fetch-cache-tests.ts similarity index 100% rename from backbone-fetch-cache/backbone-fetch-cache-tests.ts rename to types/backbone-fetch-cache/backbone-fetch-cache-tests.ts diff --git a/backbone-fetch-cache/index.d.ts b/types/backbone-fetch-cache/index.d.ts similarity index 100% rename from backbone-fetch-cache/index.d.ts rename to types/backbone-fetch-cache/index.d.ts diff --git a/backbone-fetch-cache/tsconfig.json b/types/backbone-fetch-cache/tsconfig.json similarity index 100% rename from backbone-fetch-cache/tsconfig.json rename to types/backbone-fetch-cache/tsconfig.json diff --git a/backbone-relational/backbone-relational-tests.ts b/types/backbone-relational/backbone-relational-tests.ts similarity index 100% rename from backbone-relational/backbone-relational-tests.ts rename to types/backbone-relational/backbone-relational-tests.ts diff --git a/backbone-relational/index.d.ts b/types/backbone-relational/index.d.ts similarity index 100% rename from backbone-relational/index.d.ts rename to types/backbone-relational/index.d.ts diff --git a/backbone-relational/tsconfig.json b/types/backbone-relational/tsconfig.json similarity index 100% rename from backbone-relational/tsconfig.json rename to types/backbone-relational/tsconfig.json diff --git a/backbone.layoutmanager/backbone.layoutmanager-tests.ts b/types/backbone.layoutmanager/backbone.layoutmanager-tests.ts similarity index 100% rename from backbone.layoutmanager/backbone.layoutmanager-tests.ts rename to types/backbone.layoutmanager/backbone.layoutmanager-tests.ts diff --git a/backbone.layoutmanager/index.d.ts b/types/backbone.layoutmanager/index.d.ts similarity index 100% rename from backbone.layoutmanager/index.d.ts rename to types/backbone.layoutmanager/index.d.ts diff --git a/backbone.layoutmanager/tsconfig.json b/types/backbone.layoutmanager/tsconfig.json similarity index 100% rename from backbone.layoutmanager/tsconfig.json rename to types/backbone.layoutmanager/tsconfig.json diff --git a/backbone.localstorage/backbone.localstorage-tests.ts b/types/backbone.localstorage/backbone.localstorage-tests.ts similarity index 100% rename from backbone.localstorage/backbone.localstorage-tests.ts rename to types/backbone.localstorage/backbone.localstorage-tests.ts diff --git a/backbone.localstorage/index.d.ts b/types/backbone.localstorage/index.d.ts similarity index 100% rename from backbone.localstorage/index.d.ts rename to types/backbone.localstorage/index.d.ts diff --git a/backbone.localstorage/tsconfig.json b/types/backbone.localstorage/tsconfig.json similarity index 100% rename from backbone.localstorage/tsconfig.json rename to types/backbone.localstorage/tsconfig.json diff --git a/backbone.marionette/backbone.marionette-tests.ts b/types/backbone.marionette/backbone.marionette-tests.ts similarity index 100% rename from backbone.marionette/backbone.marionette-tests.ts rename to types/backbone.marionette/backbone.marionette-tests.ts diff --git a/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts similarity index 100% rename from backbone.marionette/index.d.ts rename to types/backbone.marionette/index.d.ts diff --git a/backbone.marionette/tsconfig.json b/types/backbone.marionette/tsconfig.json similarity index 100% rename from backbone.marionette/tsconfig.json rename to types/backbone.marionette/tsconfig.json diff --git a/backbone.paginator/backbone.paginator-tests.ts b/types/backbone.paginator/backbone.paginator-tests.ts similarity index 100% rename from backbone.paginator/backbone.paginator-tests.ts rename to types/backbone.paginator/backbone.paginator-tests.ts diff --git a/backbone.paginator/index.d.ts b/types/backbone.paginator/index.d.ts similarity index 100% rename from backbone.paginator/index.d.ts rename to types/backbone.paginator/index.d.ts diff --git a/backbone.paginator/tsconfig.json b/types/backbone.paginator/tsconfig.json similarity index 100% rename from backbone.paginator/tsconfig.json rename to types/backbone.paginator/tsconfig.json diff --git a/backbone.radio/backbone.radio-tests.ts b/types/backbone.radio/backbone.radio-tests.ts similarity index 100% rename from backbone.radio/backbone.radio-tests.ts rename to types/backbone.radio/backbone.radio-tests.ts diff --git a/backbone.radio/index.d.ts b/types/backbone.radio/index.d.ts similarity index 100% rename from backbone.radio/index.d.ts rename to types/backbone.radio/index.d.ts diff --git a/backbone.radio/tsconfig.json b/types/backbone.radio/tsconfig.json similarity index 100% rename from backbone.radio/tsconfig.json rename to types/backbone.radio/tsconfig.json diff --git a/backbone/backbone-tests.ts b/types/backbone/backbone-tests.ts similarity index 100% rename from backbone/backbone-tests.ts rename to types/backbone/backbone-tests.ts diff --git a/backbone/index.d.ts b/types/backbone/index.d.ts similarity index 100% rename from backbone/index.d.ts rename to types/backbone/index.d.ts diff --git a/backbone/tsconfig.json b/types/backbone/tsconfig.json similarity index 100% rename from backbone/tsconfig.json rename to types/backbone/tsconfig.json diff --git a/backgrid/backgrid-tests.ts b/types/backgrid/backgrid-tests.ts similarity index 100% rename from backgrid/backgrid-tests.ts rename to types/backgrid/backgrid-tests.ts diff --git a/backgrid/index.d.ts b/types/backgrid/index.d.ts similarity index 100% rename from backgrid/index.d.ts rename to types/backgrid/index.d.ts diff --git a/backgrid/tsconfig.json b/types/backgrid/tsconfig.json similarity index 100% rename from backgrid/tsconfig.json rename to types/backgrid/tsconfig.json diff --git a/backlog-js/backlog-js-tests.ts b/types/backlog-js/backlog-js-tests.ts similarity index 100% rename from backlog-js/backlog-js-tests.ts rename to types/backlog-js/backlog-js-tests.ts diff --git a/backlog-js/index.d.ts b/types/backlog-js/index.d.ts similarity index 100% rename from backlog-js/index.d.ts rename to types/backlog-js/index.d.ts diff --git a/backlog-js/tsconfig.json b/types/backlog-js/tsconfig.json similarity index 100% rename from backlog-js/tsconfig.json rename to types/backlog-js/tsconfig.json diff --git a/baconjs/.editorconfig b/types/baconjs/.editorconfig similarity index 100% rename from baconjs/.editorconfig rename to types/baconjs/.editorconfig diff --git a/baconjs/baconjs-tests.ts b/types/baconjs/baconjs-tests.ts similarity index 100% rename from baconjs/baconjs-tests.ts rename to types/baconjs/baconjs-tests.ts diff --git a/baconjs/index.d.ts b/types/baconjs/index.d.ts similarity index 100% rename from baconjs/index.d.ts rename to types/baconjs/index.d.ts diff --git a/baconjs/tsconfig.json b/types/baconjs/tsconfig.json similarity index 100% rename from baconjs/tsconfig.json rename to types/baconjs/tsconfig.json diff --git a/barcode/barcode-tests.ts b/types/barcode/barcode-tests.ts similarity index 100% rename from barcode/barcode-tests.ts rename to types/barcode/barcode-tests.ts diff --git a/barcode/index.d.ts b/types/barcode/index.d.ts similarity index 100% rename from barcode/index.d.ts rename to types/barcode/index.d.ts diff --git a/barcode/tsconfig.json b/types/barcode/tsconfig.json similarity index 100% rename from barcode/tsconfig.json rename to types/barcode/tsconfig.json diff --git a/bardjs/bardjs-tests.ts b/types/bardjs/bardjs-tests.ts similarity index 100% rename from bardjs/bardjs-tests.ts rename to types/bardjs/bardjs-tests.ts diff --git a/bardjs/index.d.ts b/types/bardjs/index.d.ts similarity index 100% rename from bardjs/index.d.ts rename to types/bardjs/index.d.ts diff --git a/bardjs/tsconfig.json b/types/bardjs/tsconfig.json similarity index 100% rename from bardjs/tsconfig.json rename to types/bardjs/tsconfig.json diff --git a/base-64/base-64-tests.ts b/types/base-64/base-64-tests.ts similarity index 100% rename from base-64/base-64-tests.ts rename to types/base-64/base-64-tests.ts diff --git a/base-64/index.d.ts b/types/base-64/index.d.ts similarity index 100% rename from base-64/index.d.ts rename to types/base-64/index.d.ts diff --git a/base-64/tsconfig.json b/types/base-64/tsconfig.json similarity index 100% rename from base-64/tsconfig.json rename to types/base-64/tsconfig.json diff --git a/base-64/tslint.json b/types/base-64/tslint.json similarity index 100% rename from base-64/tslint.json rename to types/base-64/tslint.json diff --git a/base-x/base-x-tests.ts b/types/base-x/base-x-tests.ts similarity index 100% rename from base-x/base-x-tests.ts rename to types/base-x/base-x-tests.ts diff --git a/base-x/index.d.ts b/types/base-x/index.d.ts similarity index 100% rename from base-x/index.d.ts rename to types/base-x/index.d.ts diff --git a/base-x/tsconfig.json b/types/base-x/tsconfig.json similarity index 100% rename from base-x/tsconfig.json rename to types/base-x/tsconfig.json diff --git a/base16/base16-tests.ts b/types/base16/base16-tests.ts similarity index 100% rename from base16/base16-tests.ts rename to types/base16/base16-tests.ts diff --git a/base16/index.d.ts b/types/base16/index.d.ts similarity index 100% rename from base16/index.d.ts rename to types/base16/index.d.ts diff --git a/base16/tsconfig.json b/types/base16/tsconfig.json similarity index 100% rename from base16/tsconfig.json rename to types/base16/tsconfig.json diff --git a/base64-js/base64-js-tests.ts b/types/base64-js/base64-js-tests.ts similarity index 100% rename from base64-js/base64-js-tests.ts rename to types/base64-js/base64-js-tests.ts diff --git a/base64-js/index.d.ts b/types/base64-js/index.d.ts similarity index 100% rename from base64-js/index.d.ts rename to types/base64-js/index.d.ts diff --git a/base64-js/tsconfig.json b/types/base64-js/tsconfig.json similarity index 100% rename from base64-js/tsconfig.json rename to types/base64-js/tsconfig.json diff --git a/base64-js/tslint.json b/types/base64-js/tslint.json similarity index 100% rename from base64-js/tslint.json rename to types/base64-js/tslint.json diff --git a/base64url/base64url-tests.ts b/types/base64url/base64url-tests.ts similarity index 100% rename from base64url/base64url-tests.ts rename to types/base64url/base64url-tests.ts diff --git a/base64url/index.d.ts b/types/base64url/index.d.ts similarity index 100% rename from base64url/index.d.ts rename to types/base64url/index.d.ts diff --git a/base64url/tsconfig.json b/types/base64url/tsconfig.json similarity index 100% rename from base64url/tsconfig.json rename to types/base64url/tsconfig.json diff --git a/bases/bases-tests.ts b/types/bases/bases-tests.ts similarity index 100% rename from bases/bases-tests.ts rename to types/bases/bases-tests.ts diff --git a/bases/index.d.ts b/types/bases/index.d.ts similarity index 100% rename from bases/index.d.ts rename to types/bases/index.d.ts diff --git a/bases/tsconfig.json b/types/bases/tsconfig.json similarity index 100% rename from bases/tsconfig.json rename to types/bases/tsconfig.json diff --git a/basic-auth/basic-auth-tests.ts b/types/basic-auth/basic-auth-tests.ts similarity index 100% rename from basic-auth/basic-auth-tests.ts rename to types/basic-auth/basic-auth-tests.ts diff --git a/basic-auth/index.d.ts b/types/basic-auth/index.d.ts similarity index 100% rename from basic-auth/index.d.ts rename to types/basic-auth/index.d.ts diff --git a/basic-auth/tsconfig.json b/types/basic-auth/tsconfig.json similarity index 100% rename from basic-auth/tsconfig.json rename to types/basic-auth/tsconfig.json diff --git a/batch-stream/batch-stream-tests.ts b/types/batch-stream/batch-stream-tests.ts similarity index 100% rename from batch-stream/batch-stream-tests.ts rename to types/batch-stream/batch-stream-tests.ts diff --git a/batch-stream/index.d.ts b/types/batch-stream/index.d.ts similarity index 100% rename from batch-stream/index.d.ts rename to types/batch-stream/index.d.ts diff --git a/batch-stream/tsconfig.json b/types/batch-stream/tsconfig.json similarity index 100% rename from batch-stream/tsconfig.json rename to types/batch-stream/tsconfig.json diff --git a/bazinga-translator/bazinga-translator-tests.ts b/types/bazinga-translator/bazinga-translator-tests.ts similarity index 100% rename from bazinga-translator/bazinga-translator-tests.ts rename to types/bazinga-translator/bazinga-translator-tests.ts diff --git a/bazinga-translator/index.d.ts b/types/bazinga-translator/index.d.ts similarity index 100% rename from bazinga-translator/index.d.ts rename to types/bazinga-translator/index.d.ts diff --git a/bazinga-translator/tsconfig.json b/types/bazinga-translator/tsconfig.json similarity index 100% rename from bazinga-translator/tsconfig.json rename to types/bazinga-translator/tsconfig.json diff --git a/bcrypt-nodejs/bcrypt-nodejs-tests.ts b/types/bcrypt-nodejs/bcrypt-nodejs-tests.ts similarity index 100% rename from bcrypt-nodejs/bcrypt-nodejs-tests.ts rename to types/bcrypt-nodejs/bcrypt-nodejs-tests.ts diff --git a/bcrypt-nodejs/index.d.ts b/types/bcrypt-nodejs/index.d.ts similarity index 100% rename from bcrypt-nodejs/index.d.ts rename to types/bcrypt-nodejs/index.d.ts diff --git a/bcrypt-nodejs/tsconfig.json b/types/bcrypt-nodejs/tsconfig.json similarity index 100% rename from bcrypt-nodejs/tsconfig.json rename to types/bcrypt-nodejs/tsconfig.json diff --git a/bcrypt/bcrypt-tests.ts b/types/bcrypt/bcrypt-tests.ts similarity index 100% rename from bcrypt/bcrypt-tests.ts rename to types/bcrypt/bcrypt-tests.ts diff --git a/bcrypt/index.d.ts b/types/bcrypt/index.d.ts similarity index 100% rename from bcrypt/index.d.ts rename to types/bcrypt/index.d.ts diff --git a/bcrypt/tsconfig.json b/types/bcrypt/tsconfig.json similarity index 100% rename from bcrypt/tsconfig.json rename to types/bcrypt/tsconfig.json diff --git a/bcryptjs/bcryptjs-tests.ts b/types/bcryptjs/bcryptjs-tests.ts similarity index 100% rename from bcryptjs/bcryptjs-tests.ts rename to types/bcryptjs/bcryptjs-tests.ts diff --git a/bcryptjs/index.d.ts b/types/bcryptjs/index.d.ts similarity index 100% rename from bcryptjs/index.d.ts rename to types/bcryptjs/index.d.ts diff --git a/bcryptjs/tsconfig.json b/types/bcryptjs/tsconfig.json similarity index 100% rename from bcryptjs/tsconfig.json rename to types/bcryptjs/tsconfig.json diff --git a/benchmark/benchmark-tests.ts b/types/benchmark/benchmark-tests.ts similarity index 100% rename from benchmark/benchmark-tests.ts rename to types/benchmark/benchmark-tests.ts diff --git a/benchmark/index.d.ts b/types/benchmark/index.d.ts similarity index 100% rename from benchmark/index.d.ts rename to types/benchmark/index.d.ts diff --git a/benchmark/tsconfig.json b/types/benchmark/tsconfig.json similarity index 100% rename from benchmark/tsconfig.json rename to types/benchmark/tsconfig.json diff --git a/better-curry/better-curry-tests.ts b/types/better-curry/better-curry-tests.ts similarity index 100% rename from better-curry/better-curry-tests.ts rename to types/better-curry/better-curry-tests.ts diff --git a/better-curry/index.d.ts b/types/better-curry/index.d.ts similarity index 100% rename from better-curry/index.d.ts rename to types/better-curry/index.d.ts diff --git a/better-curry/tsconfig.json b/types/better-curry/tsconfig.json similarity index 100% rename from better-curry/tsconfig.json rename to types/better-curry/tsconfig.json diff --git a/bezier-easing/bezier-easing-tests.ts b/types/bezier-easing/bezier-easing-tests.ts similarity index 100% rename from bezier-easing/bezier-easing-tests.ts rename to types/bezier-easing/bezier-easing-tests.ts diff --git a/bezier-easing/index.d.ts b/types/bezier-easing/index.d.ts similarity index 100% rename from bezier-easing/index.d.ts rename to types/bezier-easing/index.d.ts diff --git a/bezier-easing/tsconfig.json b/types/bezier-easing/tsconfig.json similarity index 100% rename from bezier-easing/tsconfig.json rename to types/bezier-easing/tsconfig.json diff --git a/bezier-js/bezier-js-tests.ts b/types/bezier-js/bezier-js-tests.ts similarity index 100% rename from bezier-js/bezier-js-tests.ts rename to types/bezier-js/bezier-js-tests.ts diff --git a/bezier-js/index.d.ts b/types/bezier-js/index.d.ts similarity index 100% rename from bezier-js/index.d.ts rename to types/bezier-js/index.d.ts diff --git a/bezier-js/tsconfig.json b/types/bezier-js/tsconfig.json similarity index 100% rename from bezier-js/tsconfig.json rename to types/bezier-js/tsconfig.json diff --git a/bgiframe/index.d.ts b/types/bgiframe/index.d.ts similarity index 100% rename from bgiframe/index.d.ts rename to types/bgiframe/index.d.ts diff --git a/bgiframe/tsconfig.json b/types/bgiframe/tsconfig.json similarity index 100% rename from bgiframe/tsconfig.json rename to types/bgiframe/tsconfig.json diff --git a/big-integer/big-integer-tests.ts b/types/big-integer/big-integer-tests.ts similarity index 100% rename from big-integer/big-integer-tests.ts rename to types/big-integer/big-integer-tests.ts diff --git a/big-integer/index.d.ts b/types/big-integer/index.d.ts similarity index 100% rename from big-integer/index.d.ts rename to types/big-integer/index.d.ts diff --git a/big-integer/tsconfig.json b/types/big-integer/tsconfig.json similarity index 100% rename from big-integer/tsconfig.json rename to types/big-integer/tsconfig.json diff --git a/big.js/big.js-tests.ts b/types/big.js/big.js-tests.ts similarity index 100% rename from big.js/big.js-tests.ts rename to types/big.js/big.js-tests.ts diff --git a/big.js/index.d.ts b/types/big.js/index.d.ts similarity index 100% rename from big.js/index.d.ts rename to types/big.js/index.d.ts diff --git a/big.js/tsconfig.json b/types/big.js/tsconfig.json similarity index 100% rename from big.js/tsconfig.json rename to types/big.js/tsconfig.json diff --git a/bigi/bigi-tests.ts b/types/bigi/bigi-tests.ts similarity index 100% rename from bigi/bigi-tests.ts rename to types/bigi/bigi-tests.ts diff --git a/bigi/index.d.ts b/types/bigi/index.d.ts similarity index 100% rename from bigi/index.d.ts rename to types/bigi/index.d.ts diff --git a/bigi/tsconfig.json b/types/bigi/tsconfig.json similarity index 100% rename from bigi/tsconfig.json rename to types/bigi/tsconfig.json diff --git a/bigi/tslint.json b/types/bigi/tslint.json similarity index 100% rename from bigi/tslint.json rename to types/bigi/tslint.json diff --git a/bigint/bigint-tests.ts b/types/bigint/bigint-tests.ts similarity index 100% rename from bigint/bigint-tests.ts rename to types/bigint/bigint-tests.ts diff --git a/bigint/index.d.ts b/types/bigint/index.d.ts similarity index 100% rename from bigint/index.d.ts rename to types/bigint/index.d.ts diff --git a/bigint/tsconfig.json b/types/bigint/tsconfig.json similarity index 100% rename from bigint/tsconfig.json rename to types/bigint/tsconfig.json diff --git a/bignum/bignum-tests.ts b/types/bignum/bignum-tests.ts similarity index 100% rename from bignum/bignum-tests.ts rename to types/bignum/bignum-tests.ts diff --git a/bignum/index.d.ts b/types/bignum/index.d.ts similarity index 100% rename from bignum/index.d.ts rename to types/bignum/index.d.ts diff --git a/bignum/tsconfig.json b/types/bignum/tsconfig.json similarity index 100% rename from bignum/tsconfig.json rename to types/bignum/tsconfig.json diff --git a/bignumber.js/bignumber.js-tests.ts b/types/bignumber.js/bignumber.js-tests.ts similarity index 100% rename from bignumber.js/bignumber.js-tests.ts rename to types/bignumber.js/bignumber.js-tests.ts diff --git a/bignumber.js/index.d.ts b/types/bignumber.js/index.d.ts similarity index 100% rename from bignumber.js/index.d.ts rename to types/bignumber.js/index.d.ts diff --git a/bignumber.js/tsconfig.json b/types/bignumber.js/tsconfig.json similarity index 100% rename from bignumber.js/tsconfig.json rename to types/bignumber.js/tsconfig.json diff --git a/bignumber.js/tslint.json b/types/bignumber.js/tslint.json similarity index 100% rename from bignumber.js/tslint.json rename to types/bignumber.js/tslint.json diff --git a/bigscreen/bigscreen-tests.ts b/types/bigscreen/bigscreen-tests.ts similarity index 100% rename from bigscreen/bigscreen-tests.ts rename to types/bigscreen/bigscreen-tests.ts diff --git a/bigscreen/index.d.ts b/types/bigscreen/index.d.ts similarity index 100% rename from bigscreen/index.d.ts rename to types/bigscreen/index.d.ts diff --git a/bigscreen/tsconfig.json b/types/bigscreen/tsconfig.json similarity index 100% rename from bigscreen/tsconfig.json rename to types/bigscreen/tsconfig.json diff --git a/bind-ponyfill/bind-ponyfill-tests.ts b/types/bind-ponyfill/bind-ponyfill-tests.ts similarity index 100% rename from bind-ponyfill/bind-ponyfill-tests.ts rename to types/bind-ponyfill/bind-ponyfill-tests.ts diff --git a/bind-ponyfill/index.d.ts b/types/bind-ponyfill/index.d.ts similarity index 100% rename from bind-ponyfill/index.d.ts rename to types/bind-ponyfill/index.d.ts diff --git a/bind-ponyfill/tsconfig.json b/types/bind-ponyfill/tsconfig.json similarity index 100% rename from bind-ponyfill/tsconfig.json rename to types/bind-ponyfill/tsconfig.json diff --git a/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts b/types/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts similarity index 100% rename from bingmaps/Microsoft.Maps.AdvancedShapes.d.ts rename to types/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts diff --git a/bingmaps/Microsoft.Maps.Directions.d.ts b/types/bingmaps/Microsoft.Maps.Directions.d.ts similarity index 100% rename from bingmaps/Microsoft.Maps.Directions.d.ts rename to types/bingmaps/Microsoft.Maps.Directions.d.ts diff --git a/bingmaps/Microsoft.Maps.Search.d.ts b/types/bingmaps/Microsoft.Maps.Search.d.ts similarity index 100% rename from bingmaps/Microsoft.Maps.Search.d.ts rename to types/bingmaps/Microsoft.Maps.Search.d.ts diff --git a/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts b/types/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts similarity index 100% rename from bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts rename to types/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts diff --git a/bingmaps/Microsoft.Maps.Traffic.d.ts b/types/bingmaps/Microsoft.Maps.Traffic.d.ts similarity index 100% rename from bingmaps/Microsoft.Maps.Traffic.d.ts rename to types/bingmaps/Microsoft.Maps.Traffic.d.ts diff --git a/bingmaps/Microsoft.Maps.VenueMaps.d.ts b/types/bingmaps/Microsoft.Maps.VenueMaps.d.ts similarity index 100% rename from bingmaps/Microsoft.Maps.VenueMaps.d.ts rename to types/bingmaps/Microsoft.Maps.VenueMaps.d.ts diff --git a/bingmaps/UNUSED_FILES.txt b/types/bingmaps/UNUSED_FILES.txt similarity index 100% rename from bingmaps/UNUSED_FILES.txt rename to types/bingmaps/UNUSED_FILES.txt diff --git a/bingmaps/bingmaps-tests.ts b/types/bingmaps/bingmaps-tests.ts similarity index 100% rename from bingmaps/bingmaps-tests.ts rename to types/bingmaps/bingmaps-tests.ts diff --git a/bingmaps/index.d.ts b/types/bingmaps/index.d.ts similarity index 100% rename from bingmaps/index.d.ts rename to types/bingmaps/index.d.ts diff --git a/bingmaps/tsconfig.json b/types/bingmaps/tsconfig.json similarity index 100% rename from bingmaps/tsconfig.json rename to types/bingmaps/tsconfig.json diff --git a/bintrees/bintrees-tests.ts b/types/bintrees/bintrees-tests.ts similarity index 100% rename from bintrees/bintrees-tests.ts rename to types/bintrees/bintrees-tests.ts diff --git a/bintrees/index.d.ts b/types/bintrees/index.d.ts similarity index 100% rename from bintrees/index.d.ts rename to types/bintrees/index.d.ts diff --git a/bintrees/tsconfig.json b/types/bintrees/tsconfig.json similarity index 100% rename from bintrees/tsconfig.json rename to types/bintrees/tsconfig.json diff --git a/bip21/bip21-tests.ts b/types/bip21/bip21-tests.ts similarity index 100% rename from bip21/bip21-tests.ts rename to types/bip21/bip21-tests.ts diff --git a/bip21/index.d.ts b/types/bip21/index.d.ts similarity index 100% rename from bip21/index.d.ts rename to types/bip21/index.d.ts diff --git a/bip21/tsconfig.json b/types/bip21/tsconfig.json similarity index 100% rename from bip21/tsconfig.json rename to types/bip21/tsconfig.json diff --git a/bit-array/bit-array-tests.ts b/types/bit-array/bit-array-tests.ts similarity index 100% rename from bit-array/bit-array-tests.ts rename to types/bit-array/bit-array-tests.ts diff --git a/bit-array/index.d.ts b/types/bit-array/index.d.ts similarity index 100% rename from bit-array/index.d.ts rename to types/bit-array/index.d.ts diff --git a/bit-array/tsconfig.json b/types/bit-array/tsconfig.json similarity index 100% rename from bit-array/tsconfig.json rename to types/bit-array/tsconfig.json diff --git a/bitcoinjs-lib/bitcoinjs-lib-tests.ts b/types/bitcoinjs-lib/bitcoinjs-lib-tests.ts similarity index 100% rename from bitcoinjs-lib/bitcoinjs-lib-tests.ts rename to types/bitcoinjs-lib/bitcoinjs-lib-tests.ts diff --git a/bitcoinjs-lib/index.d.ts b/types/bitcoinjs-lib/index.d.ts similarity index 100% rename from bitcoinjs-lib/index.d.ts rename to types/bitcoinjs-lib/index.d.ts diff --git a/bitcoinjs-lib/tsconfig.json b/types/bitcoinjs-lib/tsconfig.json similarity index 100% rename from bitcoinjs-lib/tsconfig.json rename to types/bitcoinjs-lib/tsconfig.json diff --git a/bitcoinjs-lib/tslint.json b/types/bitcoinjs-lib/tslint.json similarity index 100% rename from bitcoinjs-lib/tslint.json rename to types/bitcoinjs-lib/tslint.json diff --git a/bittorrent-protocol/bittorrent-protocol-tests.ts b/types/bittorrent-protocol/bittorrent-protocol-tests.ts similarity index 100% rename from bittorrent-protocol/bittorrent-protocol-tests.ts rename to types/bittorrent-protocol/bittorrent-protocol-tests.ts diff --git a/bittorrent-protocol/index.d.ts b/types/bittorrent-protocol/index.d.ts similarity index 100% rename from bittorrent-protocol/index.d.ts rename to types/bittorrent-protocol/index.d.ts diff --git a/bittorrent-protocol/tsconfig.json b/types/bittorrent-protocol/tsconfig.json similarity index 100% rename from bittorrent-protocol/tsconfig.json rename to types/bittorrent-protocol/tsconfig.json diff --git a/bittorrent-protocol/tslint.json b/types/bittorrent-protocol/tslint.json similarity index 100% rename from bittorrent-protocol/tslint.json rename to types/bittorrent-protocol/tslint.json diff --git a/bitwise-xor/bitwise-xor-tests.ts b/types/bitwise-xor/bitwise-xor-tests.ts similarity index 100% rename from bitwise-xor/bitwise-xor-tests.ts rename to types/bitwise-xor/bitwise-xor-tests.ts diff --git a/bitwise-xor/index.d.ts b/types/bitwise-xor/index.d.ts similarity index 100% rename from bitwise-xor/index.d.ts rename to types/bitwise-xor/index.d.ts diff --git a/bitwise-xor/tsconfig.json b/types/bitwise-xor/tsconfig.json similarity index 100% rename from bitwise-xor/tsconfig.json rename to types/bitwise-xor/tsconfig.json diff --git a/bl/bl-tests.ts b/types/bl/bl-tests.ts similarity index 100% rename from bl/bl-tests.ts rename to types/bl/bl-tests.ts diff --git a/bl/index.d.ts b/types/bl/index.d.ts similarity index 100% rename from bl/index.d.ts rename to types/bl/index.d.ts diff --git a/bl/tsconfig.json b/types/bl/tsconfig.json similarity index 100% rename from bl/tsconfig.json rename to types/bl/tsconfig.json diff --git a/blacklist/blacklist-tests.ts b/types/blacklist/blacklist-tests.ts similarity index 100% rename from blacklist/blacklist-tests.ts rename to types/blacklist/blacklist-tests.ts diff --git a/blacklist/index.d.ts b/types/blacklist/index.d.ts similarity index 100% rename from blacklist/index.d.ts rename to types/blacklist/index.d.ts diff --git a/blacklist/tsconfig.json b/types/blacklist/tsconfig.json similarity index 100% rename from blacklist/tsconfig.json rename to types/blacklist/tsconfig.json diff --git a/blacklist/tslint.json b/types/blacklist/tslint.json similarity index 100% rename from blacklist/tslint.json rename to types/blacklist/tslint.json diff --git a/blazy/blazy-tests.ts b/types/blazy/blazy-tests.ts similarity index 100% rename from blazy/blazy-tests.ts rename to types/blazy/blazy-tests.ts diff --git a/blazy/index.d.ts b/types/blazy/index.d.ts similarity index 100% rename from blazy/index.d.ts rename to types/blazy/index.d.ts diff --git a/blazy/tsconfig.json b/types/blazy/tsconfig.json similarity index 100% rename from blazy/tsconfig.json rename to types/blazy/tsconfig.json diff --git a/blessed/blessed-tests.ts b/types/blessed/blessed-tests.ts similarity index 100% rename from blessed/blessed-tests.ts rename to types/blessed/blessed-tests.ts diff --git a/blessed/index.d.ts b/types/blessed/index.d.ts similarity index 100% rename from blessed/index.d.ts rename to types/blessed/index.d.ts diff --git a/blessed/tsconfig.json b/types/blessed/tsconfig.json similarity index 100% rename from blessed/tsconfig.json rename to types/blessed/tsconfig.json diff --git a/blissfuljs/blissfuljs-tests.ts b/types/blissfuljs/blissfuljs-tests.ts similarity index 100% rename from blissfuljs/blissfuljs-tests.ts rename to types/blissfuljs/blissfuljs-tests.ts diff --git a/blissfuljs/index.d.ts b/types/blissfuljs/index.d.ts similarity index 100% rename from blissfuljs/index.d.ts rename to types/blissfuljs/index.d.ts diff --git a/blissfuljs/tsconfig.json b/types/blissfuljs/tsconfig.json similarity index 100% rename from blissfuljs/tsconfig.json rename to types/blissfuljs/tsconfig.json diff --git a/blob-stream/blob-stream-tests.ts b/types/blob-stream/blob-stream-tests.ts similarity index 100% rename from blob-stream/blob-stream-tests.ts rename to types/blob-stream/blob-stream-tests.ts diff --git a/blob-stream/index.d.ts b/types/blob-stream/index.d.ts similarity index 100% rename from blob-stream/index.d.ts rename to types/blob-stream/index.d.ts diff --git a/blob-stream/tsconfig.json b/types/blob-stream/tsconfig.json similarity index 100% rename from blob-stream/tsconfig.json rename to types/blob-stream/tsconfig.json diff --git a/blocks/blocks-tests.ts b/types/blocks/blocks-tests.ts similarity index 100% rename from blocks/blocks-tests.ts rename to types/blocks/blocks-tests.ts diff --git a/blocks/index.d.ts b/types/blocks/index.d.ts similarity index 100% rename from blocks/index.d.ts rename to types/blocks/index.d.ts diff --git a/blocks/tsconfig.json b/types/blocks/tsconfig.json similarity index 100% rename from blocks/tsconfig.json rename to types/blocks/tsconfig.json diff --git a/bloomfilter/bloomfilter-tests.ts b/types/bloomfilter/bloomfilter-tests.ts similarity index 100% rename from bloomfilter/bloomfilter-tests.ts rename to types/bloomfilter/bloomfilter-tests.ts diff --git a/bloomfilter/index.d.ts b/types/bloomfilter/index.d.ts similarity index 100% rename from bloomfilter/index.d.ts rename to types/bloomfilter/index.d.ts diff --git a/bloomfilter/tsconfig.json b/types/bloomfilter/tsconfig.json similarity index 100% rename from bloomfilter/tsconfig.json rename to types/bloomfilter/tsconfig.json diff --git a/bloomfilter/tslint.json b/types/bloomfilter/tslint.json similarity index 100% rename from bloomfilter/tslint.json rename to types/bloomfilter/tslint.json diff --git a/blue-tape/blue-tape-tests.ts b/types/blue-tape/blue-tape-tests.ts similarity index 100% rename from blue-tape/blue-tape-tests.ts rename to types/blue-tape/blue-tape-tests.ts diff --git a/blue-tape/index.d.ts b/types/blue-tape/index.d.ts similarity index 100% rename from blue-tape/index.d.ts rename to types/blue-tape/index.d.ts diff --git a/blue-tape/tsconfig.json b/types/blue-tape/tsconfig.json similarity index 100% rename from blue-tape/tsconfig.json rename to types/blue-tape/tsconfig.json diff --git a/bluebird-global/bluebird-global-tests.ts b/types/bluebird-global/bluebird-global-tests.ts similarity index 100% rename from bluebird-global/bluebird-global-tests.ts rename to types/bluebird-global/bluebird-global-tests.ts diff --git a/bluebird-global/index.d.ts b/types/bluebird-global/index.d.ts similarity index 100% rename from bluebird-global/index.d.ts rename to types/bluebird-global/index.d.ts diff --git a/bluebird-global/tsconfig.json b/types/bluebird-global/tsconfig.json similarity index 100% rename from bluebird-global/tsconfig.json rename to types/bluebird-global/tsconfig.json diff --git a/bluebird-global/tslint.json b/types/bluebird-global/tslint.json similarity index 100% rename from bluebird-global/tslint.json rename to types/bluebird-global/tslint.json diff --git a/bluebird-retry/bluebird-retry-tests.ts b/types/bluebird-retry/bluebird-retry-tests.ts similarity index 100% rename from bluebird-retry/bluebird-retry-tests.ts rename to types/bluebird-retry/bluebird-retry-tests.ts diff --git a/bluebird-retry/index.d.ts b/types/bluebird-retry/index.d.ts similarity index 100% rename from bluebird-retry/index.d.ts rename to types/bluebird-retry/index.d.ts diff --git a/bluebird-retry/tsconfig.json b/types/bluebird-retry/tsconfig.json similarity index 100% rename from bluebird-retry/tsconfig.json rename to types/bluebird-retry/tsconfig.json diff --git a/bluebird/bluebird-tests.ts b/types/bluebird/bluebird-tests.ts similarity index 100% rename from bluebird/bluebird-tests.ts rename to types/bluebird/bluebird-tests.ts diff --git a/bluebird/index.d.ts b/types/bluebird/index.d.ts similarity index 98% rename from bluebird/index.d.ts rename to types/bluebird/index.d.ts index 3508a4e742..e9a79d8834 100644 --- a/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -533,11 +533,11 @@ declare class Bluebird implements Bluebird.Thenable, Bluebird.Inspection(arg1: A1 | Bluebird.Thenable, handler: (arg1?: A1) => R | Bluebird.Thenable): Bluebird; - static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, handler: (arg1?: A1, arg2?: A2) => R | Bluebird.Thenable): Bluebird; - static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, arg3: A3 | Bluebird.Thenable, handler: (arg1?: A1, arg2?: A2, arg3?: A3) => R | Bluebird.Thenable): Bluebird; - static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, arg3: A3 | Bluebird.Thenable, arg4: A4 | Bluebird.Thenable, handler: (arg1?: A1, arg2?: A2, arg3?: A3, arg4?: A4) => R | Bluebird.Thenable): Bluebird; - static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, arg3: A3 | Bluebird.Thenable, arg4: A4 | Bluebird.Thenable, arg5: A5 | Bluebird.Thenable, handler: (arg1?: A1, arg2?: A2, arg3?: A3, arg4?: A4, arg5?: A5) => R | Bluebird.Thenable): Bluebird; + static join(arg1: A1 | Bluebird.Thenable, handler: (arg1: A1) => R | Bluebird.Thenable): Bluebird; + static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, handler: (arg1: A1, arg2: A2) => R | Bluebird.Thenable): Bluebird; + static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, arg3: A3 | Bluebird.Thenable, handler: (arg1: A1, arg2: A2, arg3: A3) => R | Bluebird.Thenable): Bluebird; + static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, arg3: A3 | Bluebird.Thenable, arg4: A4 | Bluebird.Thenable, handler: (arg1: A1, arg2: A2, arg3: A3, arg4: A4) => R | Bluebird.Thenable): Bluebird; + static join(arg1: A1 | Bluebird.Thenable, arg2: A2 | Bluebird.Thenable, arg3: A3 | Bluebird.Thenable, arg4: A4 | Bluebird.Thenable, arg5: A5 | Bluebird.Thenable, handler: (arg1: A1, arg2: A2, arg3: A3, arg4: A4, arg5: A5) => R | Bluebird.Thenable): Bluebird; // variadic array /** @deprecated use .all instead */ diff --git a/bluebird/tsconfig.json b/types/bluebird/tsconfig.json similarity index 100% rename from bluebird/tsconfig.json rename to types/bluebird/tsconfig.json diff --git a/bluebird/v1/bluebird-tests.ts b/types/bluebird/v1/bluebird-tests.ts similarity index 100% rename from bluebird/v1/bluebird-tests.ts rename to types/bluebird/v1/bluebird-tests.ts diff --git a/bluebird/v1/index.d.ts b/types/bluebird/v1/index.d.ts similarity index 100% rename from bluebird/v1/index.d.ts rename to types/bluebird/v1/index.d.ts diff --git a/bluebird/v1/tsconfig.json b/types/bluebird/v1/tsconfig.json similarity index 100% rename from bluebird/v1/tsconfig.json rename to types/bluebird/v1/tsconfig.json diff --git a/bluebird/v2/bluebird-tests.ts b/types/bluebird/v2/bluebird-tests.ts similarity index 100% rename from bluebird/v2/bluebird-tests.ts rename to types/bluebird/v2/bluebird-tests.ts diff --git a/bluebird/v2/index.d.ts b/types/bluebird/v2/index.d.ts similarity index 100% rename from bluebird/v2/index.d.ts rename to types/bluebird/v2/index.d.ts diff --git a/bluebird/v2/tsconfig.json b/types/bluebird/v2/tsconfig.json similarity index 100% rename from bluebird/v2/tsconfig.json rename to types/bluebird/v2/tsconfig.json diff --git a/types/blueimp-md5/blueimp-md5-tests.ts b/types/blueimp-md5/blueimp-md5-tests.ts new file mode 100644 index 0000000000..0b59ae2f24 --- /dev/null +++ b/types/blueimp-md5/blueimp-md5-tests.ts @@ -0,0 +1,5 @@ +import md5 = require("blueimp-md5"); + +function hash1(): string { + return md5('hello world'); +} diff --git a/types/blueimp-md5/index.d.ts b/types/blueimp-md5/index.d.ts new file mode 100644 index 0000000000..881d5c7afe --- /dev/null +++ b/types/blueimp-md5/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for blueimp-md5 v2.7.0 +// Project: https://github.com/blueimp/JavaScript-MD5 +// Definitions by: Ray Martone , Mikael Kohlmyr +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function md5(value: string, key?: string, raw?: boolean): string; +export = md5; diff --git a/blueimp-md5/tsconfig.json b/types/blueimp-md5/tsconfig.json similarity index 100% rename from blueimp-md5/tsconfig.json rename to types/blueimp-md5/tsconfig.json diff --git a/body-parser/body-parser-tests.ts b/types/body-parser/body-parser-tests.ts similarity index 100% rename from body-parser/body-parser-tests.ts rename to types/body-parser/body-parser-tests.ts diff --git a/body-parser/index.d.ts b/types/body-parser/index.d.ts similarity index 100% rename from body-parser/index.d.ts rename to types/body-parser/index.d.ts diff --git a/body-parser/tsconfig.json b/types/body-parser/tsconfig.json similarity index 100% rename from body-parser/tsconfig.json rename to types/body-parser/tsconfig.json diff --git a/body-parser/tslint.json b/types/body-parser/tslint.json similarity index 100% rename from body-parser/tslint.json rename to types/body-parser/tslint.json diff --git a/bonjour/bonjour-tests.ts b/types/bonjour/bonjour-tests.ts similarity index 100% rename from bonjour/bonjour-tests.ts rename to types/bonjour/bonjour-tests.ts diff --git a/bonjour/index.d.ts b/types/bonjour/index.d.ts similarity index 100% rename from bonjour/index.d.ts rename to types/bonjour/index.d.ts diff --git a/bonjour/tsconfig.json b/types/bonjour/tsconfig.json similarity index 100% rename from bonjour/tsconfig.json rename to types/bonjour/tsconfig.json diff --git a/bookshelf/bookshelf-tests.ts b/types/bookshelf/bookshelf-tests.ts similarity index 100% rename from bookshelf/bookshelf-tests.ts rename to types/bookshelf/bookshelf-tests.ts diff --git a/bookshelf/index.d.ts b/types/bookshelf/index.d.ts similarity index 100% rename from bookshelf/index.d.ts rename to types/bookshelf/index.d.ts diff --git a/bookshelf/tsconfig.json b/types/bookshelf/tsconfig.json similarity index 100% rename from bookshelf/tsconfig.json rename to types/bookshelf/tsconfig.json diff --git a/boolify-string/boolify-string-tests.ts b/types/boolify-string/boolify-string-tests.ts similarity index 100% rename from boolify-string/boolify-string-tests.ts rename to types/boolify-string/boolify-string-tests.ts diff --git a/boolify-string/index.d.ts b/types/boolify-string/index.d.ts similarity index 100% rename from boolify-string/index.d.ts rename to types/boolify-string/index.d.ts diff --git a/boolify-string/tsconfig.json b/types/boolify-string/tsconfig.json similarity index 100% rename from boolify-string/tsconfig.json rename to types/boolify-string/tsconfig.json diff --git a/boom/boom-tests.ts b/types/boom/boom-tests.ts similarity index 100% rename from boom/boom-tests.ts rename to types/boom/boom-tests.ts diff --git a/boom/index.d.ts b/types/boom/index.d.ts similarity index 100% rename from boom/index.d.ts rename to types/boom/index.d.ts diff --git a/boom/tsconfig.json b/types/boom/tsconfig.json similarity index 100% rename from boom/tsconfig.json rename to types/boom/tsconfig.json diff --git a/bootbox/bootbox-tests.ts b/types/bootbox/bootbox-tests.ts similarity index 100% rename from bootbox/bootbox-tests.ts rename to types/bootbox/bootbox-tests.ts diff --git a/bootbox/index.d.ts b/types/bootbox/index.d.ts similarity index 100% rename from bootbox/index.d.ts rename to types/bootbox/index.d.ts diff --git a/bootbox/tsconfig.json b/types/bootbox/tsconfig.json similarity index 100% rename from bootbox/tsconfig.json rename to types/bootbox/tsconfig.json diff --git a/bootpag/bootpag-tests.ts b/types/bootpag/bootpag-tests.ts similarity index 100% rename from bootpag/bootpag-tests.ts rename to types/bootpag/bootpag-tests.ts diff --git a/bootpag/index.d.ts b/types/bootpag/index.d.ts similarity index 100% rename from bootpag/index.d.ts rename to types/bootpag/index.d.ts diff --git a/bootpag/tsconfig.json b/types/bootpag/tsconfig.json similarity index 100% rename from bootpag/tsconfig.json rename to types/bootpag/tsconfig.json diff --git a/bootstrap-datepicker/bootstrap-datepicker-tests.ts b/types/bootstrap-datepicker/bootstrap-datepicker-tests.ts similarity index 100% rename from bootstrap-datepicker/bootstrap-datepicker-tests.ts rename to types/bootstrap-datepicker/bootstrap-datepicker-tests.ts diff --git a/bootstrap-datepicker/index.d.ts b/types/bootstrap-datepicker/index.d.ts similarity index 100% rename from bootstrap-datepicker/index.d.ts rename to types/bootstrap-datepicker/index.d.ts diff --git a/bootstrap-datepicker/tsconfig.json b/types/bootstrap-datepicker/tsconfig.json similarity index 100% rename from bootstrap-datepicker/tsconfig.json rename to types/bootstrap-datepicker/tsconfig.json diff --git a/bootstrap-fileinput/index.d.ts b/types/bootstrap-fileinput/index.d.ts similarity index 100% rename from bootstrap-fileinput/index.d.ts rename to types/bootstrap-fileinput/index.d.ts diff --git a/bootstrap-fileinput/tsconfig.json b/types/bootstrap-fileinput/tsconfig.json similarity index 100% rename from bootstrap-fileinput/tsconfig.json rename to types/bootstrap-fileinput/tsconfig.json diff --git a/bootstrap-maxlength/bootstrap-maxlength-tests.ts b/types/bootstrap-maxlength/bootstrap-maxlength-tests.ts similarity index 100% rename from bootstrap-maxlength/bootstrap-maxlength-tests.ts rename to types/bootstrap-maxlength/bootstrap-maxlength-tests.ts diff --git a/bootstrap-maxlength/index.d.ts b/types/bootstrap-maxlength/index.d.ts similarity index 100% rename from bootstrap-maxlength/index.d.ts rename to types/bootstrap-maxlength/index.d.ts diff --git a/bootstrap-maxlength/tsconfig.json b/types/bootstrap-maxlength/tsconfig.json similarity index 100% rename from bootstrap-maxlength/tsconfig.json rename to types/bootstrap-maxlength/tsconfig.json diff --git a/bootstrap-notify/bootstrap-notify-tests.ts b/types/bootstrap-notify/bootstrap-notify-tests.ts similarity index 100% rename from bootstrap-notify/bootstrap-notify-tests.ts rename to types/bootstrap-notify/bootstrap-notify-tests.ts diff --git a/bootstrap-notify/index.d.ts b/types/bootstrap-notify/index.d.ts similarity index 100% rename from bootstrap-notify/index.d.ts rename to types/bootstrap-notify/index.d.ts diff --git a/bootstrap-notify/tsconfig.json b/types/bootstrap-notify/tsconfig.json similarity index 100% rename from bootstrap-notify/tsconfig.json rename to types/bootstrap-notify/tsconfig.json diff --git a/bootstrap-select/bootstrap-select-tests.ts b/types/bootstrap-select/bootstrap-select-tests.ts similarity index 100% rename from bootstrap-select/bootstrap-select-tests.ts rename to types/bootstrap-select/bootstrap-select-tests.ts diff --git a/bootstrap-select/index.d.ts b/types/bootstrap-select/index.d.ts similarity index 100% rename from bootstrap-select/index.d.ts rename to types/bootstrap-select/index.d.ts diff --git a/bootstrap-select/tsconfig.json b/types/bootstrap-select/tsconfig.json similarity index 100% rename from bootstrap-select/tsconfig.json rename to types/bootstrap-select/tsconfig.json diff --git a/bootstrap-slider/bootstrap-slider-tests.ts b/types/bootstrap-slider/bootstrap-slider-tests.ts similarity index 100% rename from bootstrap-slider/bootstrap-slider-tests.ts rename to types/bootstrap-slider/bootstrap-slider-tests.ts diff --git a/bootstrap-slider/index.d.ts b/types/bootstrap-slider/index.d.ts similarity index 100% rename from bootstrap-slider/index.d.ts rename to types/bootstrap-slider/index.d.ts diff --git a/bootstrap-slider/tsconfig.json b/types/bootstrap-slider/tsconfig.json similarity index 100% rename from bootstrap-slider/tsconfig.json rename to types/bootstrap-slider/tsconfig.json diff --git a/bootstrap-switch/bootstrap-switch-tests.ts b/types/bootstrap-switch/bootstrap-switch-tests.ts similarity index 100% rename from bootstrap-switch/bootstrap-switch-tests.ts rename to types/bootstrap-switch/bootstrap-switch-tests.ts diff --git a/bootstrap-switch/index.d.ts b/types/bootstrap-switch/index.d.ts similarity index 100% rename from bootstrap-switch/index.d.ts rename to types/bootstrap-switch/index.d.ts diff --git a/bootstrap-switch/tsconfig.json b/types/bootstrap-switch/tsconfig.json similarity index 100% rename from bootstrap-switch/tsconfig.json rename to types/bootstrap-switch/tsconfig.json diff --git a/bootstrap-table/bootstrap-table-tests.ts b/types/bootstrap-table/bootstrap-table-tests.ts similarity index 100% rename from bootstrap-table/bootstrap-table-tests.ts rename to types/bootstrap-table/bootstrap-table-tests.ts diff --git a/bootstrap-table/index.d.ts b/types/bootstrap-table/index.d.ts similarity index 100% rename from bootstrap-table/index.d.ts rename to types/bootstrap-table/index.d.ts diff --git a/bootstrap-table/tsconfig.json b/types/bootstrap-table/tsconfig.json similarity index 100% rename from bootstrap-table/tsconfig.json rename to types/bootstrap-table/tsconfig.json diff --git a/bootstrap-touchspin/bootstrap-touchspin-tests.ts b/types/bootstrap-touchspin/bootstrap-touchspin-tests.ts similarity index 100% rename from bootstrap-touchspin/bootstrap-touchspin-tests.ts rename to types/bootstrap-touchspin/bootstrap-touchspin-tests.ts diff --git a/bootstrap-touchspin/index.d.ts b/types/bootstrap-touchspin/index.d.ts similarity index 100% rename from bootstrap-touchspin/index.d.ts rename to types/bootstrap-touchspin/index.d.ts diff --git a/bootstrap-touchspin/tsconfig.json b/types/bootstrap-touchspin/tsconfig.json similarity index 100% rename from bootstrap-touchspin/tsconfig.json rename to types/bootstrap-touchspin/tsconfig.json diff --git a/bootstrap-validator/bootstrap-validator-tests.ts b/types/bootstrap-validator/bootstrap-validator-tests.ts similarity index 100% rename from bootstrap-validator/bootstrap-validator-tests.ts rename to types/bootstrap-validator/bootstrap-validator-tests.ts diff --git a/bootstrap-validator/index.d.ts b/types/bootstrap-validator/index.d.ts similarity index 100% rename from bootstrap-validator/index.d.ts rename to types/bootstrap-validator/index.d.ts diff --git a/bootstrap-validator/tsconfig.json b/types/bootstrap-validator/tsconfig.json similarity index 100% rename from bootstrap-validator/tsconfig.json rename to types/bootstrap-validator/tsconfig.json diff --git a/bootstrap-validator/tslint.json b/types/bootstrap-validator/tslint.json similarity index 100% rename from bootstrap-validator/tslint.json rename to types/bootstrap-validator/tslint.json diff --git a/bootstrap.paginator/index.d.ts b/types/bootstrap.paginator/index.d.ts similarity index 100% rename from bootstrap.paginator/index.d.ts rename to types/bootstrap.paginator/index.d.ts diff --git a/bootstrap.paginator/tsconfig.json b/types/bootstrap.paginator/tsconfig.json similarity index 100% rename from bootstrap.paginator/tsconfig.json rename to types/bootstrap.paginator/tsconfig.json diff --git a/bootstrap.timepicker/index.d.ts b/types/bootstrap.timepicker/index.d.ts similarity index 100% rename from bootstrap.timepicker/index.d.ts rename to types/bootstrap.timepicker/index.d.ts diff --git a/bootstrap.timepicker/tsconfig.json b/types/bootstrap.timepicker/tsconfig.json similarity index 100% rename from bootstrap.timepicker/tsconfig.json rename to types/bootstrap.timepicker/tsconfig.json diff --git a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts b/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts similarity index 99% rename from bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts rename to types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts index 575f72b7cb..70c8f8a586 100644 --- a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts +++ b/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts @@ -116,7 +116,6 @@ function test_timeZone() { strFormats = dp.timeZone() as string; } - function test_widgetParent() { let nullW: null = null; let str: string = "myId"; diff --git a/bootstrap.v3.datetimepicker/index.d.ts b/types/bootstrap.v3.datetimepicker/index.d.ts similarity index 96% rename from bootstrap.v3.datetimepicker/index.d.ts rename to types/bootstrap.v3.datetimepicker/index.d.ts index d8ec008dca..653135057d 100644 --- a/bootstrap.v3.datetimepicker/index.d.ts +++ b/types/bootstrap.v3.datetimepicker/index.d.ts @@ -49,9 +49,9 @@ export interface Datetimepicker { hide(): void; /**Returns the components current options object. * Note that the changing the values of the returned object does not change the components actual configuration. */ - options(): DatetimepickerOptions + options(): DatetimepickerOptions; /**Takes an object variable with option key:value properties and configures the component. Use this to update multiple options on the component. */ - options(options: DatetimepickerOptions): void + options(options: DatetimepickerOptions): void; /**Shows the widget * Emits: * - dp.show - if the widget was hidden before that call @@ -85,14 +85,14 @@ export interface Datetimepicker { /**Returns the options.daysOfWeekDisabled configuration * IMPORTANT! Throws exception if not set explicitly https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1459 */ - daysOfWeekDisabled(): Array; + daysOfWeekDisabled(): number[]; /**Takes an [ Number:0 to 6 ] and disallow the user to select weekdays that exist in this array. * This has lower priority over the options.minDate, options.maxDate, options.disabledDates and options.enabledDates configuration settings. * Emits: * - dp.change - if the currently selected moment falls in the values passed on the daysOfWeek parameter. * - dp.error - if the currently selected moment falls in the values passed on the daysOfWeek parameter. */ - daysOfWeekDisabled(days: Array): void; + daysOfWeekDisabled(days: number[]): void; /**Returns the options.dayViewHeaderFormat option. */ dayViewHeaderFormat(): string; /**Used to customize the header of the day view. */ @@ -117,22 +117,22 @@ export interface Datetimepicker { */ disabledDates(dates: boolean | Array): void; /**Returns the options.disabledHours option. - * NOTES: probably should be: disabledHours(): boolean | Array; see: DatetimepickerOptions + * NOTES: probably should be: disabledHours(): boolean | number[]; see: DatetimepickerOptions */ disabledHours(): boolean | any; /**Must be in 24 hour format. Will disallow hour selections (much like disabledTimeIntervals) but will affect all days. * Like en/disabledDates, the en/disabledHours options are mutually exclusive and will reset one of the options back to false. */ - disabledHours(value: boolean | Array): void; + disabledHours(value: boolean | number[]): void; /**Returns the options.disabledTimeIntervals option, or... not exactly * IMPORTANT! Creates an object from the options.disabledTimeIntervals with the keys being numbers, the values being the moment arrays. * eg { "0": [, ], "1": [...] } * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1498 */ - disabledTimeIntervals(): boolean | Array>; + disabledTimeIntervals(): boolean | moment.Moment[][]; /**Disables time selection between the given moments * eg: [[moment({ h: 0 }), moment({ h: 8 })], [moment({ h: 18 }), moment({ h: 24 })]] */ - disabledTimeIntervals(value: boolean | Array>): void; + disabledTimeIntervals(value: boolean | moment.Moment[][]): void; /**Returns the options.enabledDates option * NOTES: probably should be: enabledDates(): boolean | Array; see: DatetimepickerOptions */ @@ -144,12 +144,12 @@ export interface Datetimepicker { */ enabledDates(dates: boolean | Array): void; /**Returns the options.enabledHours option. - * NOTES: probably should be: enabledHours(): boolean | Array; see: DatetimepickerOptions + * NOTES: probably should be: enabledHours(): boolean | number[]; see: DatetimepickerOptions */ enabledHours(): boolean | any; /**Must be in 24 hour format. Will allow hour selections (much like enabledTimeIntervals) but will affect all days. * Like en/disabledDates, the en/disabledHours options are mutually exclusive and will reset one of the options back to false. */ - enabledHours(value: boolean | Array): void; + enabledHours(value: boolean | number[]): void; /**Returns a boolean or array with the options.extraFormats option configuration */ extraFormats(): boolean | Array; /**Takes an array of valid input moment format options, or boolean:false */ @@ -303,7 +303,7 @@ export interface Datetimepicker { */ viewMode(value: string): void; /**Returns a $(element) variable with the currently set options.widgetParent option. */ - widgetParent(): string | JQuery | null + widgetParent(): string | JQuery | null; /**Takes a string or $(element) value. */ widgetParent(widgetParent: string | JQuery | null): void; /**Returns the options.widgetPositioning object */ @@ -332,7 +332,7 @@ export interface DatetimepickerOptions { * Accepts: array of numbers from 0-6 * @default: false */ - daysOfWeekDisabled?: Array | boolean; + daysOfWeekDisabled?: number[] | boolean; /**Changes the heading of the datepicker when in "days" view. * @default: "MMMM YYYY" */ @@ -358,12 +358,12 @@ export interface DatetimepickerOptions { * eg disabledHours = [0, 1]; -> disabledHours will be { "0": true, "1": true } * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 */ - disabledHours?: boolean | Array | any; + disabledHours?: boolean | number[] | any; /**Disables time selection between the given moments * eg: [[moment({ h: 0 }), moment({ h: 8 })], [moment({ h: 18 }), moment({ h: 24 })]] * @default: false */ - disabledTimeIntervals?: boolean | Array>; + disabledTimeIntervals?: boolean | moment.Moment[][]; /**Disables selection of dates NOT in the array, e.g. holidays * @default: false * IMPORTANT! The getter returns an Object NOT an Array, with keys being the dates, values being true. @@ -377,7 +377,7 @@ export interface DatetimepickerOptions { * eg enabledHours = [0, 1]; -> enabledHours will be { "0": true, "1": true } * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 */ - enabledHours?: boolean | Array; + enabledHours?: boolean | number[]; /**Allows for several input formats to be valid. See: https://github.com/Eonasdan/bootstrap-datetimepicker/pull/666 * @default: false */ @@ -566,7 +566,6 @@ type EventName = "dp.show" | "dp.hide" | "dp.error"; declare global { interface JQuery { - datetimepicker(options?: DatetimepickerOptions): JQuery; data(key: "DateTimePicker"): Datetimepicker; @@ -575,21 +574,21 @@ declare global { on(events: "dp.change", selector: string, handler: (eventobject: ChangeEvent) => any): JQuery; on(events: "dp.change", selector: string, data: any, handler?: (eventobject: ChangeEvent) => any): JQuery; - off(events: "dp.change", handler: (eventobject: ChangeEvent) => any): JQuery; - off(events: "dp.change", selector?: string, handler?: (eventobject: ChangeEvent) => any): JQuery; + on(events: "dp.update", handler: (eventObject: UpdateEvent) => any): JQuery; + on(events: "dp.update", selector: string, handler: (eventobject: UpdateEvent) => any): JQuery; + on(events: "dp.update", selector: string, data: any, handler?: (eventobject: UpdateEvent) => any): JQuery; on(events: EventName , handler: (eventObject: Event) => any): JQuery; on(events: EventName, selector: string, handler: (eventobject: Event) => any): JQuery; on(events: EventName, selector: string, data: any, handler?: (eventobject: Event) => any): JQuery; - off(events: EventName, handler: (eventobject: Event) => any): JQuery; - off(events: EventName, selector?: string, handler?: (eventobject: Event) => any): JQuery; - - on(events: "dp.update", handler: (eventObject: UpdateEvent) => any): JQuery; - on(events: "dp.update", selector: string, handler: (eventobject: UpdateEvent) => any): JQuery; - on(events: "dp.update", selector: string, data: any, handler?: (eventobject: UpdateEvent) => any): JQuery; + off(events: "dp.change", handler: (eventobject: ChangeEvent) => any): JQuery; + off(events: "dp.change", selector?: string, handler?: (eventobject: ChangeEvent) => any): JQuery; off(events: "dp.update", handler: (eventobject: UpdateEvent) => any): JQuery; off(events: "dp.update", selector?: string, handler?: (eventobject: UpdateEvent) => any): JQuery; + + off(events: EventName, handler: (eventobject: Event) => any): JQuery; + off(events: EventName, selector?: string, handler?: (eventobject: Event) => any): JQuery; } } diff --git a/bootstrap.v3.datetimepicker/package.json b/types/bootstrap.v3.datetimepicker/package.json similarity index 100% rename from bootstrap.v3.datetimepicker/package.json rename to types/bootstrap.v3.datetimepicker/package.json diff --git a/bootstrap.v3.datetimepicker/tsconfig.json b/types/bootstrap.v3.datetimepicker/tsconfig.json similarity index 100% rename from bootstrap.v3.datetimepicker/tsconfig.json rename to types/bootstrap.v3.datetimepicker/tsconfig.json diff --git a/bootstrap.v3.datetimepicker/tslint.json b/types/bootstrap.v3.datetimepicker/tslint.json similarity index 100% rename from bootstrap.v3.datetimepicker/tslint.json rename to types/bootstrap.v3.datetimepicker/tslint.json diff --git a/bootstrap.v3.datetimepicker/v3/index.d.ts b/types/bootstrap.v3.datetimepicker/v3/index.d.ts similarity index 100% rename from bootstrap.v3.datetimepicker/v3/index.d.ts rename to types/bootstrap.v3.datetimepicker/v3/index.d.ts diff --git a/bootstrap.v3.datetimepicker/v3/package.json b/types/bootstrap.v3.datetimepicker/v3/package.json similarity index 100% rename from bootstrap.v3.datetimepicker/v3/package.json rename to types/bootstrap.v3.datetimepicker/v3/package.json diff --git a/bootstrap.v3.datetimepicker/v3/tsconfig.json b/types/bootstrap.v3.datetimepicker/v3/tsconfig.json similarity index 100% rename from bootstrap.v3.datetimepicker/v3/tsconfig.json rename to types/bootstrap.v3.datetimepicker/v3/tsconfig.json diff --git a/bootstrap/bootstrap-tests.ts b/types/bootstrap/bootstrap-tests.ts similarity index 100% rename from bootstrap/bootstrap-tests.ts rename to types/bootstrap/bootstrap-tests.ts diff --git a/bootstrap/index.d.ts b/types/bootstrap/index.d.ts similarity index 100% rename from bootstrap/index.d.ts rename to types/bootstrap/index.d.ts diff --git a/bootstrap/tsconfig.json b/types/bootstrap/tsconfig.json similarity index 100% rename from bootstrap/tsconfig.json rename to types/bootstrap/tsconfig.json diff --git a/bounce.js/bounce.js-tests.ts b/types/bounce.js/bounce.js-tests.ts similarity index 100% rename from bounce.js/bounce.js-tests.ts rename to types/bounce.js/bounce.js-tests.ts diff --git a/bounce.js/index.d.ts b/types/bounce.js/index.d.ts similarity index 100% rename from bounce.js/index.d.ts rename to types/bounce.js/index.d.ts diff --git a/bounce.js/tsconfig.json b/types/bounce.js/tsconfig.json similarity index 100% rename from bounce.js/tsconfig.json rename to types/bounce.js/tsconfig.json diff --git a/bowser/bowser-tests.ts b/types/bowser/bowser-tests.ts similarity index 100% rename from bowser/bowser-tests.ts rename to types/bowser/bowser-tests.ts diff --git a/bowser/index.d.ts b/types/bowser/index.d.ts similarity index 100% rename from bowser/index.d.ts rename to types/bowser/index.d.ts diff --git a/bowser/tsconfig.json b/types/bowser/tsconfig.json similarity index 100% rename from bowser/tsconfig.json rename to types/bowser/tsconfig.json diff --git a/box2d/README.md b/types/box2d/README.md similarity index 100% rename from box2d/README.md rename to types/box2d/README.md diff --git a/box2d/box2d-tests.ts b/types/box2d/box2d-tests.ts similarity index 100% rename from box2d/box2d-tests.ts rename to types/box2d/box2d-tests.ts diff --git a/box2d/index.d.ts b/types/box2d/index.d.ts similarity index 100% rename from box2d/index.d.ts rename to types/box2d/index.d.ts diff --git a/box2d/tsconfig.json b/types/box2d/tsconfig.json similarity index 100% rename from box2d/tsconfig.json rename to types/box2d/tsconfig.json diff --git a/braintree-web/braintree-web-tests.ts b/types/braintree-web/braintree-web-tests.ts similarity index 100% rename from braintree-web/braintree-web-tests.ts rename to types/braintree-web/braintree-web-tests.ts diff --git a/braintree-web/index.d.ts b/types/braintree-web/index.d.ts similarity index 100% rename from braintree-web/index.d.ts rename to types/braintree-web/index.d.ts diff --git a/braintree-web/tsconfig.json b/types/braintree-web/tsconfig.json similarity index 100% rename from braintree-web/tsconfig.json rename to types/braintree-web/tsconfig.json diff --git a/breeze/breeze-tests.ts b/types/breeze/breeze-tests.ts similarity index 100% rename from breeze/breeze-tests.ts rename to types/breeze/breeze-tests.ts diff --git a/breeze/index.d.ts b/types/breeze/index.d.ts similarity index 100% rename from breeze/index.d.ts rename to types/breeze/index.d.ts diff --git a/breeze/tsconfig.json b/types/breeze/tsconfig.json similarity index 100% rename from breeze/tsconfig.json rename to types/breeze/tsconfig.json diff --git a/brorand/brorand-tests.ts b/types/brorand/brorand-tests.ts similarity index 100% rename from brorand/brorand-tests.ts rename to types/brorand/brorand-tests.ts diff --git a/brorand/index.d.ts b/types/brorand/index.d.ts similarity index 100% rename from brorand/index.d.ts rename to types/brorand/index.d.ts diff --git a/brorand/tsconfig.json b/types/brorand/tsconfig.json similarity index 100% rename from brorand/tsconfig.json rename to types/brorand/tsconfig.json diff --git a/browser-bunyan/browser-bunyan-tests.ts b/types/browser-bunyan/browser-bunyan-tests.ts similarity index 83% rename from browser-bunyan/browser-bunyan-tests.ts rename to types/browser-bunyan/browser-bunyan-tests.ts index ffb2ebf7a7..47f439a07e 100644 --- a/browser-bunyan/browser-bunyan-tests.ts +++ b/types/browser-bunyan/browser-bunyan-tests.ts @@ -1,6 +1,6 @@ import * as bunyan from "browser-bunyan"; -var log = bunyan.createLogger({ +const log = bunyan.createLogger({ name: 'play', serializers: bunyan.stdSerializers }); diff --git a/browser-bunyan/index.d.ts b/types/browser-bunyan/index.d.ts similarity index 85% rename from browser-bunyan/index.d.ts rename to types/browser-bunyan/index.d.ts index f2981bfacd..bb243e4324 100644 --- a/browser-bunyan/index.d.ts +++ b/types/browser-bunyan/index.d.ts @@ -6,7 +6,7 @@ import bunyan = require("bunyan"); declare module "bunyan" { - export function ConsoleFormattedStream(): void; + function ConsoleFormattedStream(): void; } export = bunyan; diff --git a/browser-bunyan/tsconfig.json b/types/browser-bunyan/tsconfig.json similarity index 100% rename from browser-bunyan/tsconfig.json rename to types/browser-bunyan/tsconfig.json diff --git a/browser-bunyan/tslint.json b/types/browser-bunyan/tslint.json similarity index 100% rename from browser-bunyan/tslint.json rename to types/browser-bunyan/tslint.json diff --git a/browser-fingerprint/browser-fingerprint-tests.ts b/types/browser-fingerprint/browser-fingerprint-tests.ts similarity index 100% rename from browser-fingerprint/browser-fingerprint-tests.ts rename to types/browser-fingerprint/browser-fingerprint-tests.ts diff --git a/browser-fingerprint/index.d.ts b/types/browser-fingerprint/index.d.ts similarity index 100% rename from browser-fingerprint/index.d.ts rename to types/browser-fingerprint/index.d.ts diff --git a/browser-fingerprint/tsconfig.json b/types/browser-fingerprint/tsconfig.json similarity index 100% rename from browser-fingerprint/tsconfig.json rename to types/browser-fingerprint/tsconfig.json diff --git a/browser-fingerprint/tslint.json b/types/browser-fingerprint/tslint.json similarity index 100% rename from browser-fingerprint/tslint.json rename to types/browser-fingerprint/tslint.json diff --git a/browser-harness/browser-harness-tests.ts b/types/browser-harness/browser-harness-tests.ts similarity index 100% rename from browser-harness/browser-harness-tests.ts rename to types/browser-harness/browser-harness-tests.ts diff --git a/browser-harness/index.d.ts b/types/browser-harness/index.d.ts similarity index 100% rename from browser-harness/index.d.ts rename to types/browser-harness/index.d.ts diff --git a/browser-harness/tsconfig.json b/types/browser-harness/tsconfig.json similarity index 100% rename from browser-harness/tsconfig.json rename to types/browser-harness/tsconfig.json diff --git a/browser-pack/browser-pack-tests.ts b/types/browser-pack/browser-pack-tests.ts similarity index 100% rename from browser-pack/browser-pack-tests.ts rename to types/browser-pack/browser-pack-tests.ts diff --git a/browser-pack/index.d.ts b/types/browser-pack/index.d.ts similarity index 100% rename from browser-pack/index.d.ts rename to types/browser-pack/index.d.ts diff --git a/browser-pack/tsconfig.json b/types/browser-pack/tsconfig.json similarity index 100% rename from browser-pack/tsconfig.json rename to types/browser-pack/tsconfig.json diff --git a/browser-resolve/browser-resolve-tests.ts b/types/browser-resolve/browser-resolve-tests.ts similarity index 100% rename from browser-resolve/browser-resolve-tests.ts rename to types/browser-resolve/browser-resolve-tests.ts diff --git a/browser-resolve/index.d.ts b/types/browser-resolve/index.d.ts similarity index 100% rename from browser-resolve/index.d.ts rename to types/browser-resolve/index.d.ts diff --git a/browser-resolve/tsconfig.json b/types/browser-resolve/tsconfig.json similarity index 100% rename from browser-resolve/tsconfig.json rename to types/browser-resolve/tsconfig.json diff --git a/browser-sync/browser-sync-tests.ts b/types/browser-sync/browser-sync-tests.ts similarity index 100% rename from browser-sync/browser-sync-tests.ts rename to types/browser-sync/browser-sync-tests.ts diff --git a/browser-sync/index.d.ts b/types/browser-sync/index.d.ts similarity index 100% rename from browser-sync/index.d.ts rename to types/browser-sync/index.d.ts diff --git a/browser-sync/tsconfig.json b/types/browser-sync/tsconfig.json similarity index 100% rename from browser-sync/tsconfig.json rename to types/browser-sync/tsconfig.json diff --git a/browserify/browserify-tests.ts b/types/browserify/browserify-tests.ts similarity index 100% rename from browserify/browserify-tests.ts rename to types/browserify/browserify-tests.ts diff --git a/browserify/index.d.ts b/types/browserify/index.d.ts similarity index 100% rename from browserify/index.d.ts rename to types/browserify/index.d.ts diff --git a/browserify/tsconfig.json b/types/browserify/tsconfig.json similarity index 100% rename from browserify/tsconfig.json rename to types/browserify/tsconfig.json diff --git a/bs58/bs58-tests.ts b/types/bs58/bs58-tests.ts similarity index 100% rename from bs58/bs58-tests.ts rename to types/bs58/bs58-tests.ts diff --git a/bs58/index.d.ts b/types/bs58/index.d.ts similarity index 100% rename from bs58/index.d.ts rename to types/bs58/index.d.ts diff --git a/bs58/tsconfig.json b/types/bs58/tsconfig.json similarity index 100% rename from bs58/tsconfig.json rename to types/bs58/tsconfig.json diff --git a/bson/bson-tests.ts b/types/bson/bson-tests.ts similarity index 100% rename from bson/bson-tests.ts rename to types/bson/bson-tests.ts diff --git a/bson/index.d.ts b/types/bson/index.d.ts similarity index 100% rename from bson/index.d.ts rename to types/bson/index.d.ts diff --git a/bson/tsconfig.json b/types/bson/tsconfig.json similarity index 100% rename from bson/tsconfig.json rename to types/bson/tsconfig.json diff --git a/bucks/bucks-tests.ts b/types/bucks/bucks-tests.ts similarity index 100% rename from bucks/bucks-tests.ts rename to types/bucks/bucks-tests.ts diff --git a/bucks/index.d.ts b/types/bucks/index.d.ts similarity index 100% rename from bucks/index.d.ts rename to types/bucks/index.d.ts diff --git a/bucks/tsconfig.json b/types/bucks/tsconfig.json similarity index 100% rename from bucks/tsconfig.json rename to types/bucks/tsconfig.json diff --git a/buffer-compare/buffer-compare-tests.ts b/types/buffer-compare/buffer-compare-tests.ts similarity index 100% rename from buffer-compare/buffer-compare-tests.ts rename to types/buffer-compare/buffer-compare-tests.ts diff --git a/buffer-compare/index.d.ts b/types/buffer-compare/index.d.ts similarity index 100% rename from buffer-compare/index.d.ts rename to types/buffer-compare/index.d.ts diff --git a/buffer-compare/tsconfig.json b/types/buffer-compare/tsconfig.json similarity index 100% rename from buffer-compare/tsconfig.json rename to types/buffer-compare/tsconfig.json diff --git a/buffer-equal/buffer-equal-tests.ts b/types/buffer-equal/buffer-equal-tests.ts similarity index 100% rename from buffer-equal/buffer-equal-tests.ts rename to types/buffer-equal/buffer-equal-tests.ts diff --git a/buffer-equal/index.d.ts b/types/buffer-equal/index.d.ts similarity index 100% rename from buffer-equal/index.d.ts rename to types/buffer-equal/index.d.ts diff --git a/buffer-equal/tsconfig.json b/types/buffer-equal/tsconfig.json similarity index 100% rename from buffer-equal/tsconfig.json rename to types/buffer-equal/tsconfig.json diff --git a/buffers/buffers-tests.ts b/types/buffers/buffers-tests.ts similarity index 100% rename from buffers/buffers-tests.ts rename to types/buffers/buffers-tests.ts diff --git a/buffers/index.d.ts b/types/buffers/index.d.ts similarity index 100% rename from buffers/index.d.ts rename to types/buffers/index.d.ts diff --git a/buffers/tsconfig.json b/types/buffers/tsconfig.json similarity index 100% rename from buffers/tsconfig.json rename to types/buffers/tsconfig.json diff --git a/bufferstream/bufferstream-tests.ts b/types/bufferstream/bufferstream-tests.ts similarity index 80% rename from bufferstream/bufferstream-tests.ts rename to types/bufferstream/bufferstream-tests.ts index 06cbd43e28..609e8828c7 100644 --- a/bufferstream/bufferstream-tests.ts +++ b/types/bufferstream/bufferstream-tests.ts @@ -1,8 +1,6 @@ - - import BufferStream = require('bufferstream'); -var stream = new BufferStream({encoding: 'utf8', size: 'flexible'}); +const stream = new BufferStream({encoding: 'utf8', size: 'flexible'}); stream.enable(); stream.disable(); stream.split('//', ':'); @@ -11,4 +9,3 @@ stream.on('split', (chunk: any, token: any) => { }); stream.write("buffer:stream//23"); console.log(stream.toString()); - diff --git a/bufferstream/index.d.ts b/types/bufferstream/index.d.ts similarity index 97% rename from bufferstream/index.d.ts rename to types/bufferstream/index.d.ts index 1d1ffcdb10..0642fd8740 100644 --- a/bufferstream/index.d.ts +++ b/types/bufferstream/index.d.ts @@ -59,9 +59,9 @@ declare class BufferStream extends stream.Duplex { */ length: number; } // https://github.com/dodo/node-bufferstream/blob/master/src/buffer-stream.coffee#L28 -declare namespace BufferStream { - export interface Opts { +declare namespace BufferStream { + interface Opts { /* default encoding for writing strings */ @@ -85,5 +85,5 @@ declare namespace BufferStream { // String or Buffer split?: any; } - export var fn: {warn: boolean}; + const fn: {warn: boolean}; } diff --git a/bufferstream/postbuffer.d.ts b/types/bufferstream/postbuffer.d.ts similarity index 100% rename from bufferstream/postbuffer.d.ts rename to types/bufferstream/postbuffer.d.ts diff --git a/bufferstream/tsconfig.json b/types/bufferstream/tsconfig.json similarity index 100% rename from bufferstream/tsconfig.json rename to types/bufferstream/tsconfig.json diff --git a/bufferstream/tslint.json b/types/bufferstream/tslint.json similarity index 100% rename from bufferstream/tslint.json rename to types/bufferstream/tslint.json diff --git a/bugsnag/bugsnag-tests.ts b/types/bugsnag/bugsnag-tests.ts similarity index 100% rename from bugsnag/bugsnag-tests.ts rename to types/bugsnag/bugsnag-tests.ts diff --git a/bugsnag/index.d.ts b/types/bugsnag/index.d.ts similarity index 100% rename from bugsnag/index.d.ts rename to types/bugsnag/index.d.ts diff --git a/bugsnag/tsconfig.json b/types/bugsnag/tsconfig.json similarity index 100% rename from bugsnag/tsconfig.json rename to types/bugsnag/tsconfig.json diff --git a/bull/bull-tests.tsx b/types/bull/bull-tests.tsx similarity index 100% rename from bull/bull-tests.tsx rename to types/bull/bull-tests.tsx diff --git a/bull/index.d.ts b/types/bull/index.d.ts similarity index 100% rename from bull/index.d.ts rename to types/bull/index.d.ts diff --git a/bull/tsconfig.json b/types/bull/tsconfig.json similarity index 100% rename from bull/tsconfig.json rename to types/bull/tsconfig.json diff --git a/bunnymq/bunnymq-tests.ts b/types/bunnymq/bunnymq-tests.ts similarity index 100% rename from bunnymq/bunnymq-tests.ts rename to types/bunnymq/bunnymq-tests.ts diff --git a/bunnymq/index.d.ts b/types/bunnymq/index.d.ts similarity index 100% rename from bunnymq/index.d.ts rename to types/bunnymq/index.d.ts diff --git a/bunnymq/tsconfig.json b/types/bunnymq/tsconfig.json similarity index 100% rename from bunnymq/tsconfig.json rename to types/bunnymq/tsconfig.json diff --git a/bunyan-blackhole/bunyan-blackhole-tests.ts b/types/bunyan-blackhole/bunyan-blackhole-tests.ts similarity index 100% rename from bunyan-blackhole/bunyan-blackhole-tests.ts rename to types/bunyan-blackhole/bunyan-blackhole-tests.ts diff --git a/bunyan-blackhole/index.d.ts b/types/bunyan-blackhole/index.d.ts similarity index 100% rename from bunyan-blackhole/index.d.ts rename to types/bunyan-blackhole/index.d.ts diff --git a/bunyan-blackhole/tsconfig.json b/types/bunyan-blackhole/tsconfig.json similarity index 100% rename from bunyan-blackhole/tsconfig.json rename to types/bunyan-blackhole/tsconfig.json diff --git a/bunyan-blackhole/tslint.json b/types/bunyan-blackhole/tslint.json similarity index 100% rename from bunyan-blackhole/tslint.json rename to types/bunyan-blackhole/tslint.json diff --git a/bunyan-config/bunyan-config-tests.ts b/types/bunyan-config/bunyan-config-tests.ts similarity index 100% rename from bunyan-config/bunyan-config-tests.ts rename to types/bunyan-config/bunyan-config-tests.ts diff --git a/bunyan-config/index.d.ts b/types/bunyan-config/index.d.ts similarity index 100% rename from bunyan-config/index.d.ts rename to types/bunyan-config/index.d.ts diff --git a/bunyan-config/tsconfig.json b/types/bunyan-config/tsconfig.json similarity index 100% rename from bunyan-config/tsconfig.json rename to types/bunyan-config/tsconfig.json diff --git a/bunyan-logentries/bunyan-logentries-tests.ts b/types/bunyan-logentries/bunyan-logentries-tests.ts similarity index 100% rename from bunyan-logentries/bunyan-logentries-tests.ts rename to types/bunyan-logentries/bunyan-logentries-tests.ts diff --git a/bunyan-logentries/index.d.ts b/types/bunyan-logentries/index.d.ts similarity index 100% rename from bunyan-logentries/index.d.ts rename to types/bunyan-logentries/index.d.ts diff --git a/bunyan-logentries/tsconfig.json b/types/bunyan-logentries/tsconfig.json similarity index 100% rename from bunyan-logentries/tsconfig.json rename to types/bunyan-logentries/tsconfig.json diff --git a/bunyan-prettystream/bunyan-prettystream-tests.ts b/types/bunyan-prettystream/bunyan-prettystream-tests.ts similarity index 100% rename from bunyan-prettystream/bunyan-prettystream-tests.ts rename to types/bunyan-prettystream/bunyan-prettystream-tests.ts diff --git a/bunyan-prettystream/index.d.ts b/types/bunyan-prettystream/index.d.ts similarity index 100% rename from bunyan-prettystream/index.d.ts rename to types/bunyan-prettystream/index.d.ts diff --git a/bunyan-prettystream/tsconfig.json b/types/bunyan-prettystream/tsconfig.json similarity index 100% rename from bunyan-prettystream/tsconfig.json rename to types/bunyan-prettystream/tsconfig.json diff --git a/bunyan/bunyan-tests.ts b/types/bunyan/bunyan-tests.ts similarity index 100% rename from bunyan/bunyan-tests.ts rename to types/bunyan/bunyan-tests.ts diff --git a/bunyan/index.d.ts b/types/bunyan/index.d.ts similarity index 100% rename from bunyan/index.d.ts rename to types/bunyan/index.d.ts diff --git a/bunyan/tsconfig.json b/types/bunyan/tsconfig.json similarity index 100% rename from bunyan/tsconfig.json rename to types/bunyan/tsconfig.json diff --git a/busboy/busboy-tests.ts b/types/busboy/busboy-tests.ts similarity index 100% rename from busboy/busboy-tests.ts rename to types/busboy/busboy-tests.ts diff --git a/busboy/index.d.ts b/types/busboy/index.d.ts similarity index 100% rename from busboy/index.d.ts rename to types/busboy/index.d.ts diff --git a/busboy/tsconfig.json b/types/busboy/tsconfig.json similarity index 100% rename from busboy/tsconfig.json rename to types/busboy/tsconfig.json diff --git a/business-rules-engine/Utils.d.ts b/types/business-rules-engine/Utils.d.ts similarity index 100% rename from business-rules-engine/Utils.d.ts rename to types/business-rules-engine/Utils.d.ts diff --git a/business-rules-engine/Validation.d.ts b/types/business-rules-engine/Validation.d.ts similarity index 100% rename from business-rules-engine/Validation.d.ts rename to types/business-rules-engine/Validation.d.ts diff --git a/business-rules-engine/business-rules-engine-tests.ts b/types/business-rules-engine/business-rules-engine-tests.ts similarity index 100% rename from business-rules-engine/business-rules-engine-tests.ts rename to types/business-rules-engine/business-rules-engine-tests.ts diff --git a/business-rules-engine/index.d.ts b/types/business-rules-engine/index.d.ts similarity index 100% rename from business-rules-engine/index.d.ts rename to types/business-rules-engine/index.d.ts diff --git a/business-rules-engine/node-validators.d.ts b/types/business-rules-engine/node-validators.d.ts similarity index 100% rename from business-rules-engine/node-validators.d.ts rename to types/business-rules-engine/node-validators.d.ts diff --git a/business-rules-engine/package.json b/types/business-rules-engine/package.json similarity index 100% rename from business-rules-engine/package.json rename to types/business-rules-engine/package.json diff --git a/business-rules-engine/tsconfig.json b/types/business-rules-engine/tsconfig.json similarity index 100% rename from business-rules-engine/tsconfig.json rename to types/business-rules-engine/tsconfig.json diff --git a/bwip-js/bwip-js-tests.ts b/types/bwip-js/bwip-js-tests.ts similarity index 100% rename from bwip-js/bwip-js-tests.ts rename to types/bwip-js/bwip-js-tests.ts diff --git a/bwip-js/index.d.ts b/types/bwip-js/index.d.ts similarity index 100% rename from bwip-js/index.d.ts rename to types/bwip-js/index.d.ts diff --git a/bwip-js/tsconfig.json b/types/bwip-js/tsconfig.json similarity index 100% rename from bwip-js/tsconfig.json rename to types/bwip-js/tsconfig.json diff --git a/byline/byline-tests.ts b/types/byline/byline-tests.ts similarity index 100% rename from byline/byline-tests.ts rename to types/byline/byline-tests.ts diff --git a/byline/index.d.ts b/types/byline/index.d.ts similarity index 100% rename from byline/index.d.ts rename to types/byline/index.d.ts diff --git a/byline/tsconfig.json b/types/byline/tsconfig.json similarity index 100% rename from byline/tsconfig.json rename to types/byline/tsconfig.json diff --git a/bytebuffer/bytebuffer-tests.ts b/types/bytebuffer/bytebuffer-tests.ts similarity index 100% rename from bytebuffer/bytebuffer-tests.ts rename to types/bytebuffer/bytebuffer-tests.ts diff --git a/bytebuffer/index.d.ts b/types/bytebuffer/index.d.ts similarity index 100% rename from bytebuffer/index.d.ts rename to types/bytebuffer/index.d.ts diff --git a/bytebuffer/tsconfig.json b/types/bytebuffer/tsconfig.json similarity index 100% rename from bytebuffer/tsconfig.json rename to types/bytebuffer/tsconfig.json diff --git a/bytes/bytes-tests.ts b/types/bytes/bytes-tests.ts similarity index 100% rename from bytes/bytes-tests.ts rename to types/bytes/bytes-tests.ts diff --git a/bytes/index.d.ts b/types/bytes/index.d.ts similarity index 100% rename from bytes/index.d.ts rename to types/bytes/index.d.ts diff --git a/bytes/tsconfig.json b/types/bytes/tsconfig.json similarity index 100% rename from bytes/tsconfig.json rename to types/bytes/tsconfig.json diff --git a/c3/c3-tests.ts b/types/c3/c3-tests.ts similarity index 100% rename from c3/c3-tests.ts rename to types/c3/c3-tests.ts diff --git a/c3/index.d.ts b/types/c3/index.d.ts similarity index 100% rename from c3/index.d.ts rename to types/c3/index.d.ts diff --git a/c3/tsconfig.json b/types/c3/tsconfig.json similarity index 100% rename from c3/tsconfig.json rename to types/c3/tsconfig.json diff --git a/cache-manager/cache-manager-tests.ts b/types/cache-manager/cache-manager-tests.ts similarity index 100% rename from cache-manager/cache-manager-tests.ts rename to types/cache-manager/cache-manager-tests.ts diff --git a/cache-manager/index.d.ts b/types/cache-manager/index.d.ts similarity index 100% rename from cache-manager/index.d.ts rename to types/cache-manager/index.d.ts diff --git a/cache-manager/tsconfig.json b/types/cache-manager/tsconfig.json similarity index 100% rename from cache-manager/tsconfig.json rename to types/cache-manager/tsconfig.json diff --git a/cachefactory/cachefactory-tests.ts b/types/cachefactory/cachefactory-tests.ts similarity index 100% rename from cachefactory/cachefactory-tests.ts rename to types/cachefactory/cachefactory-tests.ts diff --git a/cachefactory/index.d.ts b/types/cachefactory/index.d.ts similarity index 100% rename from cachefactory/index.d.ts rename to types/cachefactory/index.d.ts diff --git a/cachefactory/tsconfig.json b/types/cachefactory/tsconfig.json similarity index 100% rename from cachefactory/tsconfig.json rename to types/cachefactory/tsconfig.json diff --git a/cal-heatmap/cal-heatmap-tests.ts b/types/cal-heatmap/cal-heatmap-tests.ts similarity index 100% rename from cal-heatmap/cal-heatmap-tests.ts rename to types/cal-heatmap/cal-heatmap-tests.ts diff --git a/cal-heatmap/index.d.ts b/types/cal-heatmap/index.d.ts similarity index 100% rename from cal-heatmap/index.d.ts rename to types/cal-heatmap/index.d.ts diff --git a/cal-heatmap/tsconfig.json b/types/cal-heatmap/tsconfig.json similarity index 100% rename from cal-heatmap/tsconfig.json rename to types/cal-heatmap/tsconfig.json diff --git a/callsite/callsite-tests.ts b/types/callsite/callsite-tests.ts similarity index 100% rename from callsite/callsite-tests.ts rename to types/callsite/callsite-tests.ts diff --git a/callsite/index.d.ts b/types/callsite/index.d.ts similarity index 100% rename from callsite/index.d.ts rename to types/callsite/index.d.ts diff --git a/callsite/tsconfig.json b/types/callsite/tsconfig.json similarity index 100% rename from callsite/tsconfig.json rename to types/callsite/tsconfig.json diff --git a/calq/calq-tests.ts b/types/calq/calq-tests.ts similarity index 100% rename from calq/calq-tests.ts rename to types/calq/calq-tests.ts diff --git a/calq/index.d.ts b/types/calq/index.d.ts similarity index 100% rename from calq/index.d.ts rename to types/calq/index.d.ts diff --git a/calq/tsconfig.json b/types/calq/tsconfig.json similarity index 100% rename from calq/tsconfig.json rename to types/calq/tsconfig.json diff --git a/camelcase-keys/camelcase-keys-tests.ts b/types/camelcase-keys/camelcase-keys-tests.ts similarity index 100% rename from camelcase-keys/camelcase-keys-tests.ts rename to types/camelcase-keys/camelcase-keys-tests.ts diff --git a/camelcase-keys/index.d.ts b/types/camelcase-keys/index.d.ts similarity index 100% rename from camelcase-keys/index.d.ts rename to types/camelcase-keys/index.d.ts diff --git a/camelcase-keys/tsconfig.json b/types/camelcase-keys/tsconfig.json similarity index 100% rename from camelcase-keys/tsconfig.json rename to types/camelcase-keys/tsconfig.json diff --git a/camelcase-keys/tslint.json b/types/camelcase-keys/tslint.json similarity index 100% rename from camelcase-keys/tslint.json rename to types/camelcase-keys/tslint.json diff --git a/camelcase/camelcase-tests.ts b/types/camelcase/camelcase-tests.ts similarity index 100% rename from camelcase/camelcase-tests.ts rename to types/camelcase/camelcase-tests.ts diff --git a/camelcase/index.d.ts b/types/camelcase/index.d.ts similarity index 100% rename from camelcase/index.d.ts rename to types/camelcase/index.d.ts diff --git a/camelcase/tsconfig.json b/types/camelcase/tsconfig.json similarity index 100% rename from camelcase/tsconfig.json rename to types/camelcase/tsconfig.json diff --git a/camljs/camljs-tests.ts b/types/camljs/camljs-tests.ts similarity index 100% rename from camljs/camljs-tests.ts rename to types/camljs/camljs-tests.ts diff --git a/camljs/index.d.ts b/types/camljs/index.d.ts similarity index 100% rename from camljs/index.d.ts rename to types/camljs/index.d.ts diff --git a/camljs/tsconfig.json b/types/camljs/tsconfig.json similarity index 100% rename from camljs/tsconfig.json rename to types/camljs/tsconfig.json diff --git a/camo/camo-tests.ts b/types/camo/camo-tests.ts similarity index 100% rename from camo/camo-tests.ts rename to types/camo/camo-tests.ts diff --git a/camo/index.d.ts b/types/camo/index.d.ts similarity index 100% rename from camo/index.d.ts rename to types/camo/index.d.ts diff --git a/camo/tsconfig.json b/types/camo/tsconfig.json similarity index 100% rename from camo/tsconfig.json rename to types/camo/tsconfig.json diff --git a/cannon/cannon-tests.ts b/types/cannon/cannon-tests.ts similarity index 100% rename from cannon/cannon-tests.ts rename to types/cannon/cannon-tests.ts diff --git a/cannon/index.d.ts b/types/cannon/index.d.ts similarity index 100% rename from cannon/index.d.ts rename to types/cannon/index.d.ts diff --git a/cannon/tsconfig.json b/types/cannon/tsconfig.json similarity index 100% rename from cannon/tsconfig.json rename to types/cannon/tsconfig.json diff --git a/canvas-gauges/canvas-gauges-tests.ts b/types/canvas-gauges/canvas-gauges-tests.ts similarity index 100% rename from canvas-gauges/canvas-gauges-tests.ts rename to types/canvas-gauges/canvas-gauges-tests.ts diff --git a/canvas-gauges/index.d.ts b/types/canvas-gauges/index.d.ts similarity index 100% rename from canvas-gauges/index.d.ts rename to types/canvas-gauges/index.d.ts diff --git a/canvas-gauges/tsconfig.json b/types/canvas-gauges/tsconfig.json similarity index 100% rename from canvas-gauges/tsconfig.json rename to types/canvas-gauges/tsconfig.json diff --git a/canvasjs/canvasjs-tests.ts b/types/canvasjs/canvasjs-tests.ts similarity index 100% rename from canvasjs/canvasjs-tests.ts rename to types/canvasjs/canvasjs-tests.ts diff --git a/canvasjs/index.d.ts b/types/canvasjs/index.d.ts similarity index 100% rename from canvasjs/index.d.ts rename to types/canvasjs/index.d.ts diff --git a/canvasjs/tsconfig.json b/types/canvasjs/tsconfig.json similarity index 100% rename from canvasjs/tsconfig.json rename to types/canvasjs/tsconfig.json diff --git a/cash/index.d.ts b/types/cash/index.d.ts similarity index 100% rename from cash/index.d.ts rename to types/cash/index.d.ts diff --git a/cash/tsconfig.json b/types/cash/tsconfig.json similarity index 100% rename from cash/tsconfig.json rename to types/cash/tsconfig.json diff --git a/casperjs/index.d.ts b/types/casperjs/index.d.ts similarity index 99% rename from casperjs/index.d.ts rename to types/casperjs/index.d.ts index f252509af3..e8388d17c7 100644 --- a/casperjs/index.d.ts +++ b/types/casperjs/index.d.ts @@ -39,7 +39,7 @@ export class Casper { download(url: string, target?: string, method?: string, data?: any): Casper; each(array: T[], fn: (this: Casper, item: T, index: number) => void): Casper; echo(message: string, style?: string): Casper; - evaluate(fn: () => T, ...args: any[]): T + evaluate(fn: (...args: any[]) => T, ...args: any[]): T evaluateOrDie(fn: () => any, message?: string, status?: number): Casper; exit(status?: number): Casper; exists(selector: string): boolean; diff --git a/casperjs/tsconfig.json b/types/casperjs/tsconfig.json similarity index 100% rename from casperjs/tsconfig.json rename to types/casperjs/tsconfig.json diff --git a/cassandra-driver/cassandra-driver-tests.ts b/types/cassandra-driver/cassandra-driver-tests.ts similarity index 100% rename from cassandra-driver/cassandra-driver-tests.ts rename to types/cassandra-driver/cassandra-driver-tests.ts diff --git a/cassandra-driver/index.d.ts b/types/cassandra-driver/index.d.ts similarity index 100% rename from cassandra-driver/index.d.ts rename to types/cassandra-driver/index.d.ts diff --git a/cassandra-driver/tsconfig.json b/types/cassandra-driver/tsconfig.json similarity index 100% rename from cassandra-driver/tsconfig.json rename to types/cassandra-driver/tsconfig.json diff --git a/cbor/cbor-tests.ts b/types/cbor/cbor-tests.ts similarity index 100% rename from cbor/cbor-tests.ts rename to types/cbor/cbor-tests.ts diff --git a/cbor/index.d.ts b/types/cbor/index.d.ts similarity index 100% rename from cbor/index.d.ts rename to types/cbor/index.d.ts diff --git a/cbor/tsconfig.json b/types/cbor/tsconfig.json similarity index 100% rename from cbor/tsconfig.json rename to types/cbor/tsconfig.json diff --git a/chai-as-promised/chai-as-promised-tests.ts b/types/chai-as-promised/chai-as-promised-tests.ts similarity index 100% rename from chai-as-promised/chai-as-promised-tests.ts rename to types/chai-as-promised/chai-as-promised-tests.ts diff --git a/chai-as-promised/index.d.ts b/types/chai-as-promised/index.d.ts similarity index 100% rename from chai-as-promised/index.d.ts rename to types/chai-as-promised/index.d.ts diff --git a/chai-as-promised/tsconfig.json b/types/chai-as-promised/tsconfig.json similarity index 100% rename from chai-as-promised/tsconfig.json rename to types/chai-as-promised/tsconfig.json diff --git a/chai-datetime/chai-datetime-tests.ts b/types/chai-datetime/chai-datetime-tests.ts similarity index 100% rename from chai-datetime/chai-datetime-tests.ts rename to types/chai-datetime/chai-datetime-tests.ts diff --git a/chai-datetime/index.d.ts b/types/chai-datetime/index.d.ts similarity index 100% rename from chai-datetime/index.d.ts rename to types/chai-datetime/index.d.ts diff --git a/chai-datetime/tsconfig.json b/types/chai-datetime/tsconfig.json similarity index 100% rename from chai-datetime/tsconfig.json rename to types/chai-datetime/tsconfig.json diff --git a/chai-dom/chai-dom-tests.ts b/types/chai-dom/chai-dom-tests.ts similarity index 100% rename from chai-dom/chai-dom-tests.ts rename to types/chai-dom/chai-dom-tests.ts diff --git a/chai-dom/index.d.ts b/types/chai-dom/index.d.ts similarity index 100% rename from chai-dom/index.d.ts rename to types/chai-dom/index.d.ts diff --git a/chai-dom/tsconfig.json b/types/chai-dom/tsconfig.json similarity index 100% rename from chai-dom/tsconfig.json rename to types/chai-dom/tsconfig.json diff --git a/chai-enzyme/chai-enzyme-tests.tsx b/types/chai-enzyme/chai-enzyme-tests.tsx similarity index 100% rename from chai-enzyme/chai-enzyme-tests.tsx rename to types/chai-enzyme/chai-enzyme-tests.tsx diff --git a/chai-enzyme/index.d.ts b/types/chai-enzyme/index.d.ts similarity index 100% rename from chai-enzyme/index.d.ts rename to types/chai-enzyme/index.d.ts diff --git a/chai-enzyme/tsconfig.json b/types/chai-enzyme/tsconfig.json similarity index 100% rename from chai-enzyme/tsconfig.json rename to types/chai-enzyme/tsconfig.json diff --git a/chai-fuzzy/chai-fuzzy-tests.ts b/types/chai-fuzzy/chai-fuzzy-tests.ts similarity index 100% rename from chai-fuzzy/chai-fuzzy-tests.ts rename to types/chai-fuzzy/chai-fuzzy-tests.ts diff --git a/chai-fuzzy/index.d.ts b/types/chai-fuzzy/index.d.ts similarity index 100% rename from chai-fuzzy/index.d.ts rename to types/chai-fuzzy/index.d.ts diff --git a/chai-fuzzy/tsconfig.json b/types/chai-fuzzy/tsconfig.json similarity index 100% rename from chai-fuzzy/tsconfig.json rename to types/chai-fuzzy/tsconfig.json diff --git a/chai-http/chai-http-tests.ts b/types/chai-http/chai-http-tests.ts similarity index 100% rename from chai-http/chai-http-tests.ts rename to types/chai-http/chai-http-tests.ts diff --git a/chai-http/index.d.ts b/types/chai-http/index.d.ts similarity index 100% rename from chai-http/index.d.ts rename to types/chai-http/index.d.ts diff --git a/chai-http/tsconfig.json b/types/chai-http/tsconfig.json similarity index 100% rename from chai-http/tsconfig.json rename to types/chai-http/tsconfig.json diff --git a/chai-jquery/chai-jquery-tests.ts b/types/chai-jquery/chai-jquery-tests.ts similarity index 100% rename from chai-jquery/chai-jquery-tests.ts rename to types/chai-jquery/chai-jquery-tests.ts diff --git a/chai-jquery/index.d.ts b/types/chai-jquery/index.d.ts similarity index 100% rename from chai-jquery/index.d.ts rename to types/chai-jquery/index.d.ts diff --git a/chai-jquery/tsconfig.json b/types/chai-jquery/tsconfig.json similarity index 100% rename from chai-jquery/tsconfig.json rename to types/chai-jquery/tsconfig.json diff --git a/chai-json-schema/chai-json-schema-tests.ts b/types/chai-json-schema/chai-json-schema-tests.ts similarity index 99% rename from chai-json-schema/chai-json-schema-tests.ts rename to types/chai-json-schema/chai-json-schema-tests.ts index 5d4715a76e..7273ac60cc 100644 --- a/chai-json-schema/chai-json-schema-tests.ts +++ b/types/chai-json-schema/chai-json-schema-tests.ts @@ -65,4 +65,3 @@ const data2 = [true, 123]; expect(chai.tv4.validate(data1, schema)).to.be.true; expect(chai.tv4.validate(data2, schema)).to.be.false; - diff --git a/chai-json-schema/index.d.ts b/types/chai-json-schema/index.d.ts similarity index 87% rename from chai-json-schema/index.d.ts rename to types/chai-json-schema/index.d.ts index 1498510f9f..69aec8bec7 100644 --- a/chai-json-schema/index.d.ts +++ b/types/chai-json-schema/index.d.ts @@ -9,16 +9,16 @@ import tv4 = require('tv4'); declare global { namespace Chai { - export interface Assert { + interface Assert { jsonSchema(value: any, schema: any, msg?: string): void; notJsonSchema(value: any, schema: any, msg?: string): void; } - export interface LanguageChains { + interface LanguageChains { jsonSchema(schema: any, msg?: string): void; } - export interface ChaiStatic { + interface ChaiStatic { tv4: tv4.TV4; } } diff --git a/chai-json-schema/tsconfig.json b/types/chai-json-schema/tsconfig.json similarity index 100% rename from chai-json-schema/tsconfig.json rename to types/chai-json-schema/tsconfig.json diff --git a/chai-json-schema/tslint.json b/types/chai-json-schema/tslint.json similarity index 100% rename from chai-json-schema/tslint.json rename to types/chai-json-schema/tslint.json diff --git a/chai-oequal/chai-oequal-tests.ts b/types/chai-oequal/chai-oequal-tests.ts similarity index 100% rename from chai-oequal/chai-oequal-tests.ts rename to types/chai-oequal/chai-oequal-tests.ts diff --git a/chai-oequal/index.d.ts b/types/chai-oequal/index.d.ts similarity index 100% rename from chai-oequal/index.d.ts rename to types/chai-oequal/index.d.ts diff --git a/chai-oequal/tsconfig.json b/types/chai-oequal/tsconfig.json similarity index 100% rename from chai-oequal/tsconfig.json rename to types/chai-oequal/tsconfig.json diff --git a/chai-oequal/tslint.json b/types/chai-oequal/tslint.json similarity index 100% rename from chai-oequal/tslint.json rename to types/chai-oequal/tslint.json diff --git a/chai-spies/chai-spies-tests.ts b/types/chai-spies/chai-spies-tests.ts similarity index 100% rename from chai-spies/chai-spies-tests.ts rename to types/chai-spies/chai-spies-tests.ts diff --git a/chai-spies/index.d.ts b/types/chai-spies/index.d.ts similarity index 100% rename from chai-spies/index.d.ts rename to types/chai-spies/index.d.ts diff --git a/chai-spies/tsconfig.json b/types/chai-spies/tsconfig.json similarity index 100% rename from chai-spies/tsconfig.json rename to types/chai-spies/tsconfig.json diff --git a/chai-string/chai-string-tests.ts b/types/chai-string/chai-string-tests.ts similarity index 100% rename from chai-string/chai-string-tests.ts rename to types/chai-string/chai-string-tests.ts diff --git a/chai-string/index.d.ts b/types/chai-string/index.d.ts similarity index 100% rename from chai-string/index.d.ts rename to types/chai-string/index.d.ts diff --git a/chai-string/tsconfig.json b/types/chai-string/tsconfig.json similarity index 100% rename from chai-string/tsconfig.json rename to types/chai-string/tsconfig.json diff --git a/chai-subset/chai-subset-tests.ts b/types/chai-subset/chai-subset-tests.ts similarity index 100% rename from chai-subset/chai-subset-tests.ts rename to types/chai-subset/chai-subset-tests.ts diff --git a/chai-subset/index.d.ts b/types/chai-subset/index.d.ts similarity index 100% rename from chai-subset/index.d.ts rename to types/chai-subset/index.d.ts diff --git a/chai-subset/tsconfig.json b/types/chai-subset/tsconfig.json similarity index 100% rename from chai-subset/tsconfig.json rename to types/chai-subset/tsconfig.json diff --git a/chai-subset/tslint.json b/types/chai-subset/tslint.json similarity index 100% rename from chai-subset/tslint.json rename to types/chai-subset/tslint.json diff --git a/chai-things/chai-things-tests.ts b/types/chai-things/chai-things-tests.ts similarity index 100% rename from chai-things/chai-things-tests.ts rename to types/chai-things/chai-things-tests.ts diff --git a/chai-things/index.d.ts b/types/chai-things/index.d.ts similarity index 100% rename from chai-things/index.d.ts rename to types/chai-things/index.d.ts diff --git a/chai-things/tsconfig.json b/types/chai-things/tsconfig.json similarity index 100% rename from chai-things/tsconfig.json rename to types/chai-things/tsconfig.json diff --git a/chai-xml/chai-xml-tests.ts b/types/chai-xml/chai-xml-tests.ts similarity index 100% rename from chai-xml/chai-xml-tests.ts rename to types/chai-xml/chai-xml-tests.ts diff --git a/chai-xml/index.d.ts b/types/chai-xml/index.d.ts similarity index 100% rename from chai-xml/index.d.ts rename to types/chai-xml/index.d.ts diff --git a/chai-xml/tsconfig.json b/types/chai-xml/tsconfig.json similarity index 100% rename from chai-xml/tsconfig.json rename to types/chai-xml/tsconfig.json diff --git a/chai-xml/tslint.json b/types/chai-xml/tslint.json similarity index 100% rename from chai-xml/tslint.json rename to types/chai-xml/tslint.json diff --git a/chai/chai-tests.ts b/types/chai/chai-tests.ts similarity index 100% rename from chai/chai-tests.ts rename to types/chai/chai-tests.ts diff --git a/chai/index.d.ts b/types/chai/index.d.ts similarity index 100% rename from chai/index.d.ts rename to types/chai/index.d.ts diff --git a/chai/tsconfig.json b/types/chai/tsconfig.json similarity index 100% rename from chai/tsconfig.json rename to types/chai/tsconfig.json diff --git a/chai/v2/index.d.ts b/types/chai/v2/index.d.ts similarity index 100% rename from chai/v2/index.d.ts rename to types/chai/v2/index.d.ts diff --git a/chai/v2/tsconfig.json b/types/chai/v2/tsconfig.json similarity index 100% rename from chai/v2/tsconfig.json rename to types/chai/v2/tsconfig.json diff --git a/chalk/chalk-tests.ts b/types/chalk/chalk-tests.ts similarity index 100% rename from chalk/chalk-tests.ts rename to types/chalk/chalk-tests.ts diff --git a/chalk/index.d.ts b/types/chalk/index.d.ts similarity index 100% rename from chalk/index.d.ts rename to types/chalk/index.d.ts diff --git a/chalk/tsconfig.json b/types/chalk/tsconfig.json similarity index 100% rename from chalk/tsconfig.json rename to types/chalk/tsconfig.json diff --git a/chance/chance-tests.ts b/types/chance/chance-tests.ts similarity index 100% rename from chance/chance-tests.ts rename to types/chance/chance-tests.ts diff --git a/chance/index.d.ts b/types/chance/index.d.ts similarity index 100% rename from chance/index.d.ts rename to types/chance/index.d.ts diff --git a/chance/tsconfig.json b/types/chance/tsconfig.json similarity index 100% rename from chance/tsconfig.json rename to types/chance/tsconfig.json diff --git a/change-emitter/change-emitter-tests.ts b/types/change-emitter/change-emitter-tests.ts similarity index 100% rename from change-emitter/change-emitter-tests.ts rename to types/change-emitter/change-emitter-tests.ts diff --git a/change-emitter/index.d.ts b/types/change-emitter/index.d.ts similarity index 100% rename from change-emitter/index.d.ts rename to types/change-emitter/index.d.ts diff --git a/change-emitter/tsconfig.json b/types/change-emitter/tsconfig.json similarity index 100% rename from change-emitter/tsconfig.json rename to types/change-emitter/tsconfig.json diff --git a/charm/charm-tests.ts b/types/charm/charm-tests.ts similarity index 100% rename from charm/charm-tests.ts rename to types/charm/charm-tests.ts diff --git a/charm/index.d.ts b/types/charm/index.d.ts similarity index 100% rename from charm/index.d.ts rename to types/charm/index.d.ts diff --git a/charm/tsconfig.json b/types/charm/tsconfig.json similarity index 100% rename from charm/tsconfig.json rename to types/charm/tsconfig.json diff --git a/charm/tslint.json b/types/charm/tslint.json similarity index 100% rename from charm/tslint.json rename to types/charm/tslint.json diff --git a/chart.js/chart.js-tests.ts b/types/chart.js/chart.js-tests.ts similarity index 100% rename from chart.js/chart.js-tests.ts rename to types/chart.js/chart.js-tests.ts diff --git a/chart.js/index.d.ts b/types/chart.js/index.d.ts similarity index 100% rename from chart.js/index.d.ts rename to types/chart.js/index.d.ts diff --git a/chart.js/tsconfig.json b/types/chart.js/tsconfig.json similarity index 100% rename from chart.js/tsconfig.json rename to types/chart.js/tsconfig.json diff --git a/chartist/chartist-tests.ts b/types/chartist/chartist-tests.ts similarity index 100% rename from chartist/chartist-tests.ts rename to types/chartist/chartist-tests.ts diff --git a/chartist/index.d.ts b/types/chartist/index.d.ts similarity index 100% rename from chartist/index.d.ts rename to types/chartist/index.d.ts diff --git a/chartist/tsconfig.json b/types/chartist/tsconfig.json similarity index 100% rename from chartist/tsconfig.json rename to types/chartist/tsconfig.json diff --git a/chartjs/chartjs-tests.ts b/types/chartjs/chartjs-tests.ts similarity index 100% rename from chartjs/chartjs-tests.ts rename to types/chartjs/chartjs-tests.ts diff --git a/chartjs/index.d.ts b/types/chartjs/index.d.ts similarity index 100% rename from chartjs/index.d.ts rename to types/chartjs/index.d.ts diff --git a/chartjs/tsconfig.json b/types/chartjs/tsconfig.json similarity index 100% rename from chartjs/tsconfig.json rename to types/chartjs/tsconfig.json diff --git a/cheap-ruler/cheap-ruler-tests.ts b/types/cheap-ruler/cheap-ruler-tests.ts similarity index 100% rename from cheap-ruler/cheap-ruler-tests.ts rename to types/cheap-ruler/cheap-ruler-tests.ts diff --git a/cheap-ruler/index.d.ts b/types/cheap-ruler/index.d.ts similarity index 100% rename from cheap-ruler/index.d.ts rename to types/cheap-ruler/index.d.ts diff --git a/cheap-ruler/tsconfig.json b/types/cheap-ruler/tsconfig.json similarity index 100% rename from cheap-ruler/tsconfig.json rename to types/cheap-ruler/tsconfig.json diff --git a/checkstyle-formatter/index.d.ts b/types/checkstyle-formatter/index.d.ts similarity index 100% rename from checkstyle-formatter/index.d.ts rename to types/checkstyle-formatter/index.d.ts diff --git a/checkstyle-formatter/tsconfig.json b/types/checkstyle-formatter/tsconfig.json similarity index 100% rename from checkstyle-formatter/tsconfig.json rename to types/checkstyle-formatter/tsconfig.json diff --git a/checkstyle-formatter/tslint.json b/types/checkstyle-formatter/tslint.json similarity index 100% rename from checkstyle-formatter/tslint.json rename to types/checkstyle-formatter/tslint.json diff --git a/checksum/checksum-tests.ts b/types/checksum/checksum-tests.ts similarity index 100% rename from checksum/checksum-tests.ts rename to types/checksum/checksum-tests.ts diff --git a/checksum/index.d.ts b/types/checksum/index.d.ts similarity index 100% rename from checksum/index.d.ts rename to types/checksum/index.d.ts diff --git a/checksum/tsconfig.json b/types/checksum/tsconfig.json similarity index 100% rename from checksum/tsconfig.json rename to types/checksum/tsconfig.json diff --git a/cheerio/cheerio-tests.ts b/types/cheerio/cheerio-tests.ts similarity index 100% rename from cheerio/cheerio-tests.ts rename to types/cheerio/cheerio-tests.ts diff --git a/cheerio/index.d.ts b/types/cheerio/index.d.ts similarity index 100% rename from cheerio/index.d.ts rename to types/cheerio/index.d.ts diff --git a/cheerio/tsconfig.json b/types/cheerio/tsconfig.json similarity index 100% rename from cheerio/tsconfig.json rename to types/cheerio/tsconfig.json diff --git a/chocolatechipjs/chocolatechipjs-tests.ts b/types/chocolatechipjs/chocolatechipjs-tests.ts similarity index 100% rename from chocolatechipjs/chocolatechipjs-tests.ts rename to types/chocolatechipjs/chocolatechipjs-tests.ts diff --git a/chocolatechipjs/index.d.ts b/types/chocolatechipjs/index.d.ts similarity index 100% rename from chocolatechipjs/index.d.ts rename to types/chocolatechipjs/index.d.ts diff --git a/chocolatechipjs/tsconfig.json b/types/chocolatechipjs/tsconfig.json similarity index 100% rename from chocolatechipjs/tsconfig.json rename to types/chocolatechipjs/tsconfig.json diff --git a/types/chokidar/chokidar-tests.ts b/types/chokidar/chokidar-tests.ts new file mode 100644 index 0000000000..13e5fe6a90 --- /dev/null +++ b/types/chokidar/chokidar-tests.ts @@ -0,0 +1,57 @@ +import * as fs from 'fs'; +import chokidar = require('chokidar'); + +const watcher = chokidar.watch('file, dir, or glob', { + ignored: /[\/\\]\./, persistent: true +}); + +const log = console.log.bind(console); + +watcher + .on('add', (path: string) => { + log('File', path, 'has been added'); + }) + .on('addDir', (path: string) => { + log('Directory', path, 'has been added'); + }) + .on('change', (path: string) => { + log('File', path, 'has been changed'); + }) + .on('unlink', (path: string) => { + log('File', path, 'has been removed'); + }) + .on('unlinkDir', (path: string) => { + log('Directory', path, 'has been removed'); + }) + .on('error', (error: any) => { + log('Error happened', error); + }) + .on('ready', () => { + log('Initial scan complete. Ready for changes.'); + }) + .on('raw', (event: string, path: string, details: any) => { + log('Raw event info:', event, path, details); + }); + +// 'add', 'addDir' and 'change' events also receive stat() results as second +// argument when available: http://nodejs.org/api/fs.html#fs_class_fs_stats +watcher.on('change', (path: string, stats: fs.Stats) => { + if (stats) { + console.log('File', path, 'changed size to', stats.size); + } +}); + +// Watch new files. +watcher.add('new-file'); +watcher.add(['new-file-2', 'new-file-3', '**/other-file*']); + +// Un-watch some files. +watcher.unwatch('new-file*'); + +// Only needed if watching is `persistent: true`. +watcher.close(); + +// One-liner +chokidar.watch('.', { ignored: /[\/\\]\./ }).on('all', (event: string, path: string) => { + console.log(event, path); +}); diff --git a/types/chokidar/index.d.ts b/types/chokidar/index.d.ts new file mode 100644 index 0000000000..dd0569656c --- /dev/null +++ b/types/chokidar/index.d.ts @@ -0,0 +1,160 @@ +// Type definitions for chokidar 1.6.1 +// Project: https://github.com/paulmillr/chokidar +// Definitions by: Stefan Steinhart , Felix Becker +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import * as fs from 'fs'; +import {EventEmitter} from 'events'; + +/** + * The object's keys are all the directories (using absolute paths unless the `cwd` option was + * used), and the values are arrays of the names of the items contained in each directory. + */ +export interface WatchedPaths { + [directory: string]: string[]; +} + +export class FSWatcher extends EventEmitter implements fs.FSWatcher { + + /** + * Add files, directories, or glob patterns for tracking. Takes an array of strings or just one + * string. + */ + add(paths: string | string[]): void; + + /** + * Stop watching files, directories, or glob patterns. Takes an array of strings or just one + * string. + */ + unwatch(paths: string | string[]): void; + + /** + * Returns an object representing all the paths on the file system being watched by this + * `FSWatcher` instance. The object's keys are all the directories (using absolute paths unless + * the `cwd` option was used), and the values are arrays of the names of the items contained in + * each directory. + */ + getWatched(): WatchedPaths; + + /** + * Removes all listeners from watched files. + */ + close(): void; +} + +export interface WatchOptions { + + /** + * Indicates whether the process should continue to run as long as files are being watched. If + * set to `false` when using `fsevents` to watch, no more events will be emitted after `ready`, + * even if the process continues to run. + */ + persistent?: boolean; + + /** + * ([anymatch](https://github.com/es128/anymatch)-compatible definition) Defines files/paths to + * be ignored. The whole relative or absolute path is tested, not just filename. If a function + * with two arguments is provided, it gets called twice per path - once with a single argument + * (the path), second time with two arguments (the path and the + * [`fs.Stats`](http://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path). + */ + ignored?: any; + + /** + * If set to `false` then `add`/`addDir` events are also emitted for matching paths while + * instantiating the watching as chokidar discovers these file paths (before the `ready` event). + */ + ignoreInitial?: boolean; + + /** + * When `false`, only the symlinks themselves will be watched for changes instead of following + * the link references and bubbling events through the link's path. + */ + followSymlinks?: boolean; + + /** + * The base directory from which watch `paths` are to be derived. Paths emitted with events will + * be relative to this. + */ + cwd?: string; + + /** + * Whether to use fs.watchFile (backed by polling), or fs.watch. If polling leads to high CPU + * utilization, consider setting this to `false`. It is typically necessary to **set this to + * `true` to successfully watch files over a network**, and it may be necessary to successfully + * watch files in other non-standard situations. Setting to `true` explicitly on OS X overrides + * the `useFsEvents` default. + */ + usePolling?: boolean; + + /** + * Whether to use the `fsevents` watching interface if available. When set to `true` explicitly + * and `fsevents` is available this supercedes the `usePolling` setting. When set to `false` on + * OS X, `usePolling: true` becomes the default. + */ + useFsEvents?: boolean; + + /** + * If relying upon the [`fs.Stats`](http://nodejs.org/api/fs.html#fs_class_fs_stats) object that + * may get passed with `add`, `addDir`, and `change` events, set this to `true` to ensure it is + * provided even in cases where it wasn't already available from the underlying watch events. + */ + alwaysStat?: boolean; + + /** + * If set, limits how many levels of subdirectories will be traversed. + */ + depth?: number; + + /** + * Interval of file system polling. + */ + interval?: number; + + /** + * Interval of file system polling for binary files. ([see list of binary extensions](https://gi + * thub.com/sindresorhus/binary-extensions/blob/master/binary-extensions.json)) + */ + binaryInterval?: number; + + /** + * Indicates whether to watch files that don't have read permissions if possible. If watching + * fails due to `EPERM` or `EACCES` with this set to `true`, the errors will be suppressed + * silently. + */ + ignorePermissionErrors?: boolean; + + /** + * `true` if `useFsEvents` and `usePolling` are `false`). Automatically filters out artifacts + * that occur when using editors that use "atomic writes" instead of writing directly to the + * source file. If a file is re-added within 100 ms of being deleted, Chokidar emits a `change` + * event rather than `unlink` then `add`. If the default of 100 ms does not work well for you, + * you can override it by setting `atomic` to a custom value, in milliseconds. + */ + atomic?: boolean | number; + + /** + * can be set to an object in order to adjust timing params: + */ + awaitWriteFinish?: AwaitWriteFinishOptions; +} + +export interface AwaitWriteFinishOptions { + + /** + * Amount of time in milliseconds for a file size to remain constant before emitting its event. + */ + stabilityThreshold?: number; + + /** + * File size polling interval. + */ + pollInterval?: number; +} + +/** + * produces an instance of `FSWatcher`. + */ +export function watch(paths: string | string[], options?: WatchOptions): FSWatcher; diff --git a/chokidar/tsconfig.json b/types/chokidar/tsconfig.json similarity index 100% rename from chokidar/tsconfig.json rename to types/chokidar/tsconfig.json diff --git a/chosen-js/chosen-js-tests.ts b/types/chosen-js/chosen-js-tests.ts similarity index 100% rename from chosen-js/chosen-js-tests.ts rename to types/chosen-js/chosen-js-tests.ts diff --git a/chosen-js/index.d.ts b/types/chosen-js/index.d.ts similarity index 100% rename from chosen-js/index.d.ts rename to types/chosen-js/index.d.ts diff --git a/chosen-js/tsconfig.json b/types/chosen-js/tsconfig.json similarity index 100% rename from chosen-js/tsconfig.json rename to types/chosen-js/tsconfig.json diff --git a/chroma-js/chroma-js-tests.ts b/types/chroma-js/chroma-js-tests.ts similarity index 100% rename from chroma-js/chroma-js-tests.ts rename to types/chroma-js/chroma-js-tests.ts diff --git a/chroma-js/index.d.ts b/types/chroma-js/index.d.ts similarity index 100% rename from chroma-js/index.d.ts rename to types/chroma-js/index.d.ts diff --git a/chroma-js/tsconfig.json b/types/chroma-js/tsconfig.json similarity index 100% rename from chroma-js/tsconfig.json rename to types/chroma-js/tsconfig.json diff --git a/chroma-js/v0/chroma-js-tests.ts b/types/chroma-js/v0/chroma-js-tests.ts similarity index 100% rename from chroma-js/v0/chroma-js-tests.ts rename to types/chroma-js/v0/chroma-js-tests.ts diff --git a/chroma-js/v0/index.d.ts b/types/chroma-js/v0/index.d.ts similarity index 100% rename from chroma-js/v0/index.d.ts rename to types/chroma-js/v0/index.d.ts diff --git a/chroma-js/v0/tsconfig.json b/types/chroma-js/v0/tsconfig.json similarity index 100% rename from chroma-js/v0/tsconfig.json rename to types/chroma-js/v0/tsconfig.json diff --git a/chrome/chrome-app.d.ts b/types/chrome/chrome-app.d.ts similarity index 100% rename from chrome/chrome-app.d.ts rename to types/chrome/chrome-app.d.ts diff --git a/chrome/chrome-cast.d.ts b/types/chrome/chrome-cast.d.ts similarity index 100% rename from chrome/chrome-cast.d.ts rename to types/chrome/chrome-cast.d.ts diff --git a/chrome/index.d.ts b/types/chrome/index.d.ts similarity index 100% rename from chrome/index.d.ts rename to types/chrome/index.d.ts diff --git a/chrome/test/chrome-app.ts b/types/chrome/test/chrome-app.ts similarity index 100% rename from chrome/test/chrome-app.ts rename to types/chrome/test/chrome-app.ts diff --git a/chrome/test/index.ts b/types/chrome/test/index.ts similarity index 100% rename from chrome/test/index.ts rename to types/chrome/test/index.ts diff --git a/chrome/tsconfig.json b/types/chrome/tsconfig.json similarity index 100% rename from chrome/tsconfig.json rename to types/chrome/tsconfig.json diff --git a/chui/chui-tests.ts b/types/chui/chui-tests.ts similarity index 100% rename from chui/chui-tests.ts rename to types/chui/chui-tests.ts diff --git a/chui/index.d.ts b/types/chui/index.d.ts similarity index 100% rename from chui/index.d.ts rename to types/chui/index.d.ts diff --git a/chui/tsconfig.json b/types/chui/tsconfig.json similarity index 100% rename from chui/tsconfig.json rename to types/chui/tsconfig.json diff --git a/chunked-dc/chunked-dc-tests.ts b/types/chunked-dc/chunked-dc-tests.ts similarity index 100% rename from chunked-dc/chunked-dc-tests.ts rename to types/chunked-dc/chunked-dc-tests.ts diff --git a/chunked-dc/index.d.ts b/types/chunked-dc/index.d.ts similarity index 100% rename from chunked-dc/index.d.ts rename to types/chunked-dc/index.d.ts diff --git a/chunked-dc/tsconfig.json b/types/chunked-dc/tsconfig.json similarity index 100% rename from chunked-dc/tsconfig.json rename to types/chunked-dc/tsconfig.json diff --git a/chunked-dc/tslint.json b/types/chunked-dc/tslint.json similarity index 100% rename from chunked-dc/tslint.json rename to types/chunked-dc/tslint.json diff --git a/circular-json/circular-json-tests.ts b/types/circular-json/circular-json-tests.ts similarity index 100% rename from circular-json/circular-json-tests.ts rename to types/circular-json/circular-json-tests.ts diff --git a/circular-json/index.d.ts b/types/circular-json/index.d.ts similarity index 100% rename from circular-json/index.d.ts rename to types/circular-json/index.d.ts diff --git a/circular-json/tsconfig.json b/types/circular-json/tsconfig.json similarity index 100% rename from circular-json/tsconfig.json rename to types/circular-json/tsconfig.json diff --git a/ckeditor/ckeditor-tests.ts b/types/ckeditor/ckeditor-tests.ts similarity index 100% rename from ckeditor/ckeditor-tests.ts rename to types/ckeditor/ckeditor-tests.ts diff --git a/ckeditor/index.d.ts b/types/ckeditor/index.d.ts similarity index 100% rename from ckeditor/index.d.ts rename to types/ckeditor/index.d.ts diff --git a/ckeditor/tsconfig.json b/types/ckeditor/tsconfig.json similarity index 100% rename from ckeditor/tsconfig.json rename to types/ckeditor/tsconfig.json diff --git a/clamp-js/clamp-js-tests.ts b/types/clamp-js/clamp-js-tests.ts old mode 100755 new mode 100644 similarity index 100% rename from clamp-js/clamp-js-tests.ts rename to types/clamp-js/clamp-js-tests.ts diff --git a/clamp-js/index.d.ts b/types/clamp-js/index.d.ts old mode 100755 new mode 100644 similarity index 82% rename from clamp-js/index.d.ts rename to types/clamp-js/index.d.ts index 2e86e544f7..2fa557bac6 --- a/clamp-js/index.d.ts +++ b/types/clamp-js/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace clamp { - export interface ClampOptions { + interface ClampOptions { clamp?: number|string; useNativeClamp?: boolean; splitOnChars?: string[]; @@ -13,9 +13,9 @@ declare namespace clamp { truncationHTML?: string | null; } - export interface ClampResponse { - 'original': string; - 'clamped': string; + interface ClampResponse { + original: string; + clamped: string; } } diff --git a/clamp-js/tsconfig.json b/types/clamp-js/tsconfig.json old mode 100755 new mode 100644 similarity index 100% rename from clamp-js/tsconfig.json rename to types/clamp-js/tsconfig.json diff --git a/clamp-js/tslint.json b/types/clamp-js/tslint.json similarity index 100% rename from clamp-js/tslint.json rename to types/clamp-js/tslint.json diff --git a/classnames/classnames-tests.ts b/types/classnames/classnames-tests.ts similarity index 100% rename from classnames/classnames-tests.ts rename to types/classnames/classnames-tests.ts diff --git a/classnames/index.d.ts b/types/classnames/index.d.ts similarity index 100% rename from classnames/index.d.ts rename to types/classnames/index.d.ts diff --git a/classnames/tsconfig.json b/types/classnames/tsconfig.json similarity index 100% rename from classnames/tsconfig.json rename to types/classnames/tsconfig.json diff --git a/cldrjs/UNUSED_FILES.txt b/types/cldrjs/UNUSED_FILES.txt similarity index 100% rename from cldrjs/UNUSED_FILES.txt rename to types/cldrjs/UNUSED_FILES.txt diff --git a/cldrjs/cldr.js-event.d.ts b/types/cldrjs/cldr.js-event.d.ts similarity index 100% rename from cldrjs/cldr.js-event.d.ts rename to types/cldrjs/cldr.js-event.d.ts diff --git a/cldrjs/cldr.js-supplemental.d.ts b/types/cldrjs/cldr.js-supplemental.d.ts similarity index 100% rename from cldrjs/cldr.js-supplemental.d.ts rename to types/cldrjs/cldr.js-supplemental.d.ts diff --git a/cldrjs/index.d.ts b/types/cldrjs/index.d.ts similarity index 100% rename from cldrjs/index.d.ts rename to types/cldrjs/index.d.ts diff --git a/cldrjs/test/event.ts b/types/cldrjs/test/event.ts similarity index 100% rename from cldrjs/test/event.ts rename to types/cldrjs/test/event.ts diff --git a/cldrjs/test/index.ts b/types/cldrjs/test/index.ts similarity index 100% rename from cldrjs/test/index.ts rename to types/cldrjs/test/index.ts diff --git a/cldrjs/test/supplemental.ts b/types/cldrjs/test/supplemental.ts similarity index 100% rename from cldrjs/test/supplemental.ts rename to types/cldrjs/test/supplemental.ts diff --git a/cldrjs/tsconfig.json b/types/cldrjs/tsconfig.json similarity index 100% rename from cldrjs/tsconfig.json rename to types/cldrjs/tsconfig.json diff --git a/clean-css/clean-css-tests.ts b/types/clean-css/clean-css-tests.ts similarity index 100% rename from clean-css/clean-css-tests.ts rename to types/clean-css/clean-css-tests.ts diff --git a/clean-css/index.d.ts b/types/clean-css/index.d.ts similarity index 100% rename from clean-css/index.d.ts rename to types/clean-css/index.d.ts diff --git a/clean-css/tsconfig.json b/types/clean-css/tsconfig.json similarity index 100% rename from clean-css/tsconfig.json rename to types/clean-css/tsconfig.json diff --git a/cli-color/cli-color-tests.ts b/types/cli-color/cli-color-tests.ts similarity index 100% rename from cli-color/cli-color-tests.ts rename to types/cli-color/cli-color-tests.ts diff --git a/cli-color/index.d.ts b/types/cli-color/index.d.ts similarity index 100% rename from cli-color/index.d.ts rename to types/cli-color/index.d.ts diff --git a/cli-color/tsconfig.json b/types/cli-color/tsconfig.json similarity index 100% rename from cli-color/tsconfig.json rename to types/cli-color/tsconfig.json diff --git a/cli/cli-tests.ts b/types/cli/cli-tests.ts similarity index 100% rename from cli/cli-tests.ts rename to types/cli/cli-tests.ts diff --git a/cli/index.d.ts b/types/cli/index.d.ts similarity index 100% rename from cli/index.d.ts rename to types/cli/index.d.ts diff --git a/cli/tsconfig.json b/types/cli/tsconfig.json similarity index 100% rename from cli/tsconfig.json rename to types/cli/tsconfig.json diff --git a/cliff/cliff-tests.ts b/types/cliff/cliff-tests.ts similarity index 100% rename from cliff/cliff-tests.ts rename to types/cliff/cliff-tests.ts diff --git a/cliff/index.d.ts b/types/cliff/index.d.ts similarity index 100% rename from cliff/index.d.ts rename to types/cliff/index.d.ts diff --git a/cliff/tsconfig.json b/types/cliff/tsconfig.json similarity index 100% rename from cliff/tsconfig.json rename to types/cliff/tsconfig.json diff --git a/clipboard-js/clipboard-js-tests.ts b/types/clipboard-js/clipboard-js-tests.ts similarity index 100% rename from clipboard-js/clipboard-js-tests.ts rename to types/clipboard-js/clipboard-js-tests.ts diff --git a/clipboard-js/index.d.ts b/types/clipboard-js/index.d.ts similarity index 100% rename from clipboard-js/index.d.ts rename to types/clipboard-js/index.d.ts diff --git a/clipboard-js/tsconfig.json b/types/clipboard-js/tsconfig.json similarity index 100% rename from clipboard-js/tsconfig.json rename to types/clipboard-js/tsconfig.json diff --git a/clipboard/clipboard-tests.ts b/types/clipboard/clipboard-tests.ts similarity index 100% rename from clipboard/clipboard-tests.ts rename to types/clipboard/clipboard-tests.ts diff --git a/clipboard/index.d.ts b/types/clipboard/index.d.ts similarity index 100% rename from clipboard/index.d.ts rename to types/clipboard/index.d.ts diff --git a/clipboard/tsconfig.json b/types/clipboard/tsconfig.json similarity index 100% rename from clipboard/tsconfig.json rename to types/clipboard/tsconfig.json diff --git a/clipboard/tslint.json b/types/clipboard/tslint.json similarity index 100% rename from clipboard/tslint.json rename to types/clipboard/tslint.json diff --git a/clndr/clndr-tests.ts b/types/clndr/clndr-tests.ts similarity index 100% rename from clndr/clndr-tests.ts rename to types/clndr/clndr-tests.ts diff --git a/clndr/index.d.ts b/types/clndr/index.d.ts similarity index 100% rename from clndr/index.d.ts rename to types/clndr/index.d.ts diff --git a/clndr/package.json b/types/clndr/package.json similarity index 100% rename from clndr/package.json rename to types/clndr/package.json diff --git a/clndr/tsconfig.json b/types/clndr/tsconfig.json similarity index 100% rename from clndr/tsconfig.json rename to types/clndr/tsconfig.json diff --git a/clndr/tslint.json b/types/clndr/tslint.json similarity index 100% rename from clndr/tslint.json rename to types/clndr/tslint.json diff --git a/clone/clone-tests.ts b/types/clone/clone-tests.ts similarity index 100% rename from clone/clone-tests.ts rename to types/clone/clone-tests.ts diff --git a/clone/index.d.ts b/types/clone/index.d.ts similarity index 100% rename from clone/index.d.ts rename to types/clone/index.d.ts diff --git a/clone/tsconfig.json b/types/clone/tsconfig.json similarity index 100% rename from clone/tsconfig.json rename to types/clone/tsconfig.json diff --git a/closure-compiler/closure-compiler-tests.ts b/types/closure-compiler/closure-compiler-tests.ts similarity index 100% rename from closure-compiler/closure-compiler-tests.ts rename to types/closure-compiler/closure-compiler-tests.ts diff --git a/closure-compiler/index.d.ts b/types/closure-compiler/index.d.ts similarity index 100% rename from closure-compiler/index.d.ts rename to types/closure-compiler/index.d.ts diff --git a/closure-compiler/tsconfig.json b/types/closure-compiler/tsconfig.json similarity index 100% rename from closure-compiler/tsconfig.json rename to types/closure-compiler/tsconfig.json diff --git a/co-body/co-body-tests.ts b/types/co-body/co-body-tests.ts similarity index 100% rename from co-body/co-body-tests.ts rename to types/co-body/co-body-tests.ts diff --git a/co-body/index.d.ts b/types/co-body/index.d.ts similarity index 100% rename from co-body/index.d.ts rename to types/co-body/index.d.ts diff --git a/co-body/tsconfig.json b/types/co-body/tsconfig.json similarity index 100% rename from co-body/tsconfig.json rename to types/co-body/tsconfig.json diff --git a/co-views/co-views-tests.ts b/types/co-views/co-views-tests.ts similarity index 100% rename from co-views/co-views-tests.ts rename to types/co-views/co-views-tests.ts diff --git a/co-views/index.d.ts b/types/co-views/index.d.ts similarity index 96% rename from co-views/index.d.ts rename to types/co-views/index.d.ts index 5df2238c12..3eda7191b1 100644 --- a/co-views/index.d.ts +++ b/types/co-views/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace CoViews { - export interface Options { + interface Options { /** * default extname */ diff --git a/co-views/tsconfig.json b/types/co-views/tsconfig.json similarity index 100% rename from co-views/tsconfig.json rename to types/co-views/tsconfig.json diff --git a/co-views/tslint.json b/types/co-views/tslint.json similarity index 100% rename from co-views/tslint.json rename to types/co-views/tslint.json diff --git a/code/code-tests.ts b/types/code/code-tests.ts similarity index 100% rename from code/code-tests.ts rename to types/code/code-tests.ts diff --git a/code/index.d.ts b/types/code/index.d.ts similarity index 100% rename from code/index.d.ts rename to types/code/index.d.ts diff --git a/code/tsconfig.json b/types/code/tsconfig.json similarity index 100% rename from code/tsconfig.json rename to types/code/tsconfig.json diff --git a/code/tslint.json b/types/code/tslint.json similarity index 100% rename from code/tslint.json rename to types/code/tslint.json diff --git a/codemirror/codemirror-matchbrackets.d.ts b/types/codemirror/codemirror-matchbrackets.d.ts similarity index 100% rename from codemirror/codemirror-matchbrackets.d.ts rename to types/codemirror/codemirror-matchbrackets.d.ts diff --git a/codemirror/codemirror-runmode.d.ts b/types/codemirror/codemirror-runmode.d.ts similarity index 100% rename from codemirror/codemirror-runmode.d.ts rename to types/codemirror/codemirror-runmode.d.ts diff --git a/codemirror/codemirror-showhint.d.ts b/types/codemirror/codemirror-showhint.d.ts similarity index 100% rename from codemirror/codemirror-showhint.d.ts rename to types/codemirror/codemirror-showhint.d.ts diff --git a/codemirror/index.d.ts b/types/codemirror/index.d.ts similarity index 100% rename from codemirror/index.d.ts rename to types/codemirror/index.d.ts diff --git a/codemirror/searchcursor.d.ts b/types/codemirror/searchcursor.d.ts similarity index 100% rename from codemirror/searchcursor.d.ts rename to types/codemirror/searchcursor.d.ts diff --git a/codemirror/test/index.ts b/types/codemirror/test/index.ts similarity index 100% rename from codemirror/test/index.ts rename to types/codemirror/test/index.ts diff --git a/codemirror/test/matchbrackets.ts b/types/codemirror/test/matchbrackets.ts similarity index 100% rename from codemirror/test/matchbrackets.ts rename to types/codemirror/test/matchbrackets.ts diff --git a/codemirror/test/runmode.ts b/types/codemirror/test/runmode.ts similarity index 100% rename from codemirror/test/runmode.ts rename to types/codemirror/test/runmode.ts diff --git a/codemirror/test/searchcursor.ts b/types/codemirror/test/searchcursor.ts similarity index 100% rename from codemirror/test/searchcursor.ts rename to types/codemirror/test/searchcursor.ts diff --git a/codemirror/test/showhint.ts b/types/codemirror/test/showhint.ts similarity index 100% rename from codemirror/test/showhint.ts rename to types/codemirror/test/showhint.ts diff --git a/codemirror/tsconfig.json b/types/codemirror/tsconfig.json similarity index 100% rename from codemirror/tsconfig.json rename to types/codemirror/tsconfig.json diff --git a/codependency/codependency-tests.ts b/types/codependency/codependency-tests.ts similarity index 100% rename from codependency/codependency-tests.ts rename to types/codependency/codependency-tests.ts diff --git a/codependency/index.d.ts b/types/codependency/index.d.ts similarity index 100% rename from codependency/index.d.ts rename to types/codependency/index.d.ts diff --git a/codependency/tsconfig.json b/types/codependency/tsconfig.json similarity index 100% rename from codependency/tsconfig.json rename to types/codependency/tsconfig.json diff --git a/codependency/tslint.json b/types/codependency/tslint.json similarity index 100% rename from codependency/tslint.json rename to types/codependency/tslint.json diff --git a/coffeeify/coffeeify-tests.ts b/types/coffeeify/coffeeify-tests.ts similarity index 100% rename from coffeeify/coffeeify-tests.ts rename to types/coffeeify/coffeeify-tests.ts diff --git a/coffeeify/index.d.ts b/types/coffeeify/index.d.ts similarity index 100% rename from coffeeify/index.d.ts rename to types/coffeeify/index.d.ts diff --git a/coffeeify/tsconfig.json b/types/coffeeify/tsconfig.json similarity index 100% rename from coffeeify/tsconfig.json rename to types/coffeeify/tsconfig.json diff --git a/coinstring/coinstring-tests.ts b/types/coinstring/coinstring-tests.ts similarity index 100% rename from coinstring/coinstring-tests.ts rename to types/coinstring/coinstring-tests.ts diff --git a/coinstring/index.d.ts b/types/coinstring/index.d.ts similarity index 100% rename from coinstring/index.d.ts rename to types/coinstring/index.d.ts diff --git a/coinstring/tsconfig.json b/types/coinstring/tsconfig.json similarity index 100% rename from coinstring/tsconfig.json rename to types/coinstring/tsconfig.json diff --git a/coinstring/tslint.json b/types/coinstring/tslint.json similarity index 100% rename from coinstring/tslint.json rename to types/coinstring/tslint.json diff --git a/color/color-tests.ts b/types/color/color-tests.ts similarity index 100% rename from color/color-tests.ts rename to types/color/color-tests.ts diff --git a/color/index.d.ts b/types/color/index.d.ts similarity index 100% rename from color/index.d.ts rename to types/color/index.d.ts diff --git a/color/tsconfig.json b/types/color/tsconfig.json similarity index 100% rename from color/tsconfig.json rename to types/color/tsconfig.json diff --git a/color/v0/color-tests.ts b/types/color/v0/color-tests.ts similarity index 100% rename from color/v0/color-tests.ts rename to types/color/v0/color-tests.ts diff --git a/color/v0/index.d.ts b/types/color/v0/index.d.ts similarity index 100% rename from color/v0/index.d.ts rename to types/color/v0/index.d.ts diff --git a/color/v0/tsconfig.json b/types/color/v0/tsconfig.json similarity index 100% rename from color/v0/tsconfig.json rename to types/color/v0/tsconfig.json diff --git a/colorbrewer/colorbrewer-tests.ts b/types/colorbrewer/colorbrewer-tests.ts similarity index 100% rename from colorbrewer/colorbrewer-tests.ts rename to types/colorbrewer/colorbrewer-tests.ts diff --git a/colorbrewer/index.d.ts b/types/colorbrewer/index.d.ts similarity index 100% rename from colorbrewer/index.d.ts rename to types/colorbrewer/index.d.ts diff --git a/colorbrewer/tsconfig.json b/types/colorbrewer/tsconfig.json similarity index 100% rename from colorbrewer/tsconfig.json rename to types/colorbrewer/tsconfig.json diff --git a/colors/colors-tests.ts b/types/colors/colors-tests.ts similarity index 100% rename from colors/colors-tests.ts rename to types/colors/colors-tests.ts diff --git a/colors/index.d.ts b/types/colors/index.d.ts similarity index 100% rename from colors/index.d.ts rename to types/colors/index.d.ts diff --git a/colors/safe.d.ts b/types/colors/safe.d.ts similarity index 100% rename from colors/safe.d.ts rename to types/colors/safe.d.ts diff --git a/colors/tsconfig.json b/types/colors/tsconfig.json similarity index 100% rename from colors/tsconfig.json rename to types/colors/tsconfig.json diff --git a/colors/tslint.json b/types/colors/tslint.json similarity index 100% rename from colors/tslint.json rename to types/colors/tslint.json diff --git a/com.darktalker.cordova.screenshot/com.darktalker.cordova.screenshot-tests.ts b/types/com.darktalker.cordova.screenshot/com.darktalker.cordova.screenshot-tests.ts similarity index 100% rename from com.darktalker.cordova.screenshot/com.darktalker.cordova.screenshot-tests.ts rename to types/com.darktalker.cordova.screenshot/com.darktalker.cordova.screenshot-tests.ts diff --git a/com.darktalker.cordova.screenshot/index.d.ts b/types/com.darktalker.cordova.screenshot/index.d.ts similarity index 100% rename from com.darktalker.cordova.screenshot/index.d.ts rename to types/com.darktalker.cordova.screenshot/index.d.ts diff --git a/com.darktalker.cordova.screenshot/tsconfig.json b/types/com.darktalker.cordova.screenshot/tsconfig.json similarity index 100% rename from com.darktalker.cordova.screenshot/tsconfig.json rename to types/com.darktalker.cordova.screenshot/tsconfig.json diff --git a/combined-stream/combined-stream-tests.ts b/types/combined-stream/combined-stream-tests.ts similarity index 100% rename from combined-stream/combined-stream-tests.ts rename to types/combined-stream/combined-stream-tests.ts diff --git a/combined-stream/index.d.ts b/types/combined-stream/index.d.ts similarity index 91% rename from combined-stream/index.d.ts rename to types/combined-stream/index.d.ts index cada758701..271814a4af 100644 --- a/combined-stream/index.d.ts +++ b/types/combined-stream/index.d.ts @@ -43,14 +43,14 @@ declare class CombinedStream extends Stream implements CombinedStream.Options { } declare namespace CombinedStream { - export interface Options { + interface Options { maxDataSize?: number; pauseStreams?: boolean; } - export function create(options?: Options): CombinedStream; + function create(options?: Options): CombinedStream; - export function isStreamLike(stream: any): stream is Stream; + function isStreamLike(stream: any): stream is Stream; } export = CombinedStream; diff --git a/combined-stream/tsconfig.json b/types/combined-stream/tsconfig.json similarity index 100% rename from combined-stream/tsconfig.json rename to types/combined-stream/tsconfig.json diff --git a/combined-stream/tslint.json b/types/combined-stream/tslint.json similarity index 100% rename from combined-stream/tslint.json rename to types/combined-stream/tslint.json diff --git a/combokeys/combokeys-tests.ts b/types/combokeys/combokeys-tests.ts similarity index 100% rename from combokeys/combokeys-tests.ts rename to types/combokeys/combokeys-tests.ts diff --git a/combokeys/index.d.ts b/types/combokeys/index.d.ts similarity index 100% rename from combokeys/index.d.ts rename to types/combokeys/index.d.ts diff --git a/combokeys/tsconfig.json b/types/combokeys/tsconfig.json similarity index 100% rename from combokeys/tsconfig.json rename to types/combokeys/tsconfig.json diff --git a/cometd/index.d.ts b/types/cometd/index.d.ts similarity index 100% rename from cometd/index.d.ts rename to types/cometd/index.d.ts diff --git a/cometd/tsconfig.json b/types/cometd/tsconfig.json similarity index 100% rename from cometd/tsconfig.json rename to types/cometd/tsconfig.json diff --git a/commander/commander-tests.ts b/types/commander/commander-tests.ts similarity index 100% rename from commander/commander-tests.ts rename to types/commander/commander-tests.ts diff --git a/commander/index.d.ts b/types/commander/index.d.ts similarity index 100% rename from commander/index.d.ts rename to types/commander/index.d.ts diff --git a/commander/tsconfig.json b/types/commander/tsconfig.json similarity index 100% rename from commander/tsconfig.json rename to types/commander/tsconfig.json diff --git a/commangular/commangular-mock.d.ts b/types/commangular/commangular-mock.d.ts similarity index 100% rename from commangular/commangular-mock.d.ts rename to types/commangular/commangular-mock.d.ts diff --git a/commangular/index.d.ts b/types/commangular/index.d.ts similarity index 100% rename from commangular/index.d.ts rename to types/commangular/index.d.ts diff --git a/commangular/tsconfig.json b/types/commangular/tsconfig.json similarity index 100% rename from commangular/tsconfig.json rename to types/commangular/tsconfig.json diff --git a/comment-json/comment-json-tests.ts b/types/comment-json/comment-json-tests.ts similarity index 100% rename from comment-json/comment-json-tests.ts rename to types/comment-json/comment-json-tests.ts diff --git a/comment-json/index.d.ts b/types/comment-json/index.d.ts similarity index 100% rename from comment-json/index.d.ts rename to types/comment-json/index.d.ts diff --git a/comment-json/tsconfig.json b/types/comment-json/tsconfig.json similarity index 100% rename from comment-json/tsconfig.json rename to types/comment-json/tsconfig.json diff --git a/comment-json/tslint.json b/types/comment-json/tslint.json similarity index 100% rename from comment-json/tslint.json rename to types/comment-json/tslint.json diff --git a/common-tags/common-tags-tests.ts b/types/common-tags/common-tags-tests.ts similarity index 100% rename from common-tags/common-tags-tests.ts rename to types/common-tags/common-tags-tests.ts diff --git a/common-tags/index.d.ts b/types/common-tags/index.d.ts similarity index 100% rename from common-tags/index.d.ts rename to types/common-tags/index.d.ts diff --git a/common-tags/tsconfig.json b/types/common-tags/tsconfig.json similarity index 100% rename from common-tags/tsconfig.json rename to types/common-tags/tsconfig.json diff --git a/commonmark/commonmark-tests.ts b/types/commonmark/commonmark-tests.ts similarity index 100% rename from commonmark/commonmark-tests.ts rename to types/commonmark/commonmark-tests.ts diff --git a/commonmark/index.d.ts b/types/commonmark/index.d.ts similarity index 100% rename from commonmark/index.d.ts rename to types/commonmark/index.d.ts diff --git a/commonmark/tsconfig.json b/types/commonmark/tsconfig.json similarity index 100% rename from commonmark/tsconfig.json rename to types/commonmark/tsconfig.json diff --git a/compare-version/compare-version-tests.ts b/types/compare-version/compare-version-tests.ts similarity index 100% rename from compare-version/compare-version-tests.ts rename to types/compare-version/compare-version-tests.ts diff --git a/compare-version/index.d.ts b/types/compare-version/index.d.ts similarity index 100% rename from compare-version/index.d.ts rename to types/compare-version/index.d.ts diff --git a/compare-version/tsconfig.json b/types/compare-version/tsconfig.json similarity index 100% rename from compare-version/tsconfig.json rename to types/compare-version/tsconfig.json diff --git a/complex/complex-tests.ts b/types/complex/complex-tests.ts similarity index 100% rename from complex/complex-tests.ts rename to types/complex/complex-tests.ts diff --git a/complex/index.d.ts b/types/complex/index.d.ts similarity index 100% rename from complex/index.d.ts rename to types/complex/index.d.ts diff --git a/complex/tsconfig.json b/types/complex/tsconfig.json similarity index 100% rename from complex/tsconfig.json rename to types/complex/tsconfig.json diff --git a/component-emitter/component-emitter-tests.ts b/types/component-emitter/component-emitter-tests.ts similarity index 100% rename from component-emitter/component-emitter-tests.ts rename to types/component-emitter/component-emitter-tests.ts diff --git a/component-emitter/index.d.ts b/types/component-emitter/index.d.ts similarity index 100% rename from component-emitter/index.d.ts rename to types/component-emitter/index.d.ts diff --git a/component-emitter/tsconfig.json b/types/component-emitter/tsconfig.json similarity index 100% rename from component-emitter/tsconfig.json rename to types/component-emitter/tsconfig.json diff --git a/compose-function/compose-function-tests.ts b/types/compose-function/compose-function-tests.ts similarity index 100% rename from compose-function/compose-function-tests.ts rename to types/compose-function/compose-function-tests.ts diff --git a/compose-function/index.d.ts b/types/compose-function/index.d.ts similarity index 100% rename from compose-function/index.d.ts rename to types/compose-function/index.d.ts diff --git a/compose-function/tsconfig.json b/types/compose-function/tsconfig.json similarity index 100% rename from compose-function/tsconfig.json rename to types/compose-function/tsconfig.json diff --git a/compression-webpack-plugin/compression-webpack-plugin-tests.ts b/types/compression-webpack-plugin/compression-webpack-plugin-tests.ts similarity index 100% rename from compression-webpack-plugin/compression-webpack-plugin-tests.ts rename to types/compression-webpack-plugin/compression-webpack-plugin-tests.ts diff --git a/compression-webpack-plugin/index.d.ts b/types/compression-webpack-plugin/index.d.ts similarity index 97% rename from compression-webpack-plugin/index.d.ts rename to types/compression-webpack-plugin/index.d.ts index 536a77b8e9..4f2453e3b1 100644 --- a/compression-webpack-plugin/index.d.ts +++ b/types/compression-webpack-plugin/index.d.ts @@ -12,7 +12,7 @@ declare class CompressionPlugin extends Plugin { } declare namespace CompressionPlugin { - export interface Options { + interface Options { asset?: string; algorithm?: string; test?: RegExp | RegExp[]; diff --git a/compression-webpack-plugin/tsconfig.json b/types/compression-webpack-plugin/tsconfig.json similarity index 100% rename from compression-webpack-plugin/tsconfig.json rename to types/compression-webpack-plugin/tsconfig.json diff --git a/compression-webpack-plugin/tslint.json b/types/compression-webpack-plugin/tslint.json similarity index 100% rename from compression-webpack-plugin/tslint.json rename to types/compression-webpack-plugin/tslint.json diff --git a/compression/compression-tests.ts b/types/compression/compression-tests.ts similarity index 100% rename from compression/compression-tests.ts rename to types/compression/compression-tests.ts diff --git a/compression/index.d.ts b/types/compression/index.d.ts similarity index 100% rename from compression/index.d.ts rename to types/compression/index.d.ts diff --git a/compression/tsconfig.json b/types/compression/tsconfig.json similarity index 100% rename from compression/tsconfig.json rename to types/compression/tsconfig.json diff --git a/concat-stream/concat-stream-tests.ts b/types/concat-stream/concat-stream-tests.ts similarity index 100% rename from concat-stream/concat-stream-tests.ts rename to types/concat-stream/concat-stream-tests.ts diff --git a/concat-stream/index.d.ts b/types/concat-stream/index.d.ts similarity index 100% rename from concat-stream/index.d.ts rename to types/concat-stream/index.d.ts diff --git a/concat-stream/tsconfig.json b/types/concat-stream/tsconfig.json similarity index 100% rename from concat-stream/tsconfig.json rename to types/concat-stream/tsconfig.json diff --git a/concat-stream/tslint.json b/types/concat-stream/tslint.json similarity index 100% rename from concat-stream/tslint.json rename to types/concat-stream/tslint.json diff --git a/concaveman/concaveman-tests.ts b/types/concaveman/concaveman-tests.ts similarity index 100% rename from concaveman/concaveman-tests.ts rename to types/concaveman/concaveman-tests.ts diff --git a/concaveman/index.d.ts b/types/concaveman/index.d.ts similarity index 100% rename from concaveman/index.d.ts rename to types/concaveman/index.d.ts diff --git a/concaveman/tsconfig.json b/types/concaveman/tsconfig.json similarity index 100% rename from concaveman/tsconfig.json rename to types/concaveman/tsconfig.json diff --git a/conf/conf-tests.ts b/types/conf/conf-tests.ts similarity index 100% rename from conf/conf-tests.ts rename to types/conf/conf-tests.ts diff --git a/conf/index.d.ts b/types/conf/index.d.ts similarity index 100% rename from conf/index.d.ts rename to types/conf/index.d.ts diff --git a/conf/tsconfig.json b/types/conf/tsconfig.json similarity index 100% rename from conf/tsconfig.json rename to types/conf/tsconfig.json diff --git a/conf/tslint.json b/types/conf/tslint.json similarity index 100% rename from conf/tslint.json rename to types/conf/tslint.json diff --git a/confidence/confidence-tests.ts b/types/confidence/confidence-tests.ts similarity index 100% rename from confidence/confidence-tests.ts rename to types/confidence/confidence-tests.ts diff --git a/confidence/index.d.ts b/types/confidence/index.d.ts similarity index 100% rename from confidence/index.d.ts rename to types/confidence/index.d.ts diff --git a/confidence/tsconfig.json b/types/confidence/tsconfig.json similarity index 100% rename from confidence/tsconfig.json rename to types/confidence/tsconfig.json diff --git a/config/config-tests.ts b/types/config/config-tests.ts similarity index 100% rename from config/config-tests.ts rename to types/config/config-tests.ts diff --git a/config/index.d.ts b/types/config/index.d.ts similarity index 100% rename from config/index.d.ts rename to types/config/index.d.ts diff --git a/config/tsconfig.json b/types/config/tsconfig.json similarity index 100% rename from config/tsconfig.json rename to types/config/tsconfig.json diff --git a/configstore/configstore-tests.ts b/types/configstore/configstore-tests.ts similarity index 59% rename from configstore/configstore-tests.ts rename to types/configstore/configstore-tests.ts index 724dbe9a38..ffd04e31a7 100644 --- a/configstore/configstore-tests.ts +++ b/types/configstore/configstore-tests.ts @@ -1,12 +1,10 @@ - import Configstore = require('configstore'); -var cs = new Configstore('foo'); +const cs = new Configstore('foo'); -var value: any; -var key: string; -var num: number; -var bool: any; -var object: any; +let value: any; +let key: string; +let num: number; +let object: any; cs.set(key, value); value = cs.get(key); diff --git a/configstore/index.d.ts b/types/configstore/index.d.ts similarity index 97% rename from configstore/index.d.ts rename to types/configstore/index.d.ts index 628a4a1d6c..2617f2bce0 100644 --- a/configstore/index.d.ts +++ b/types/configstore/index.d.ts @@ -65,7 +65,7 @@ declare class Configstore { } declare namespace Configstore { - export interface ConfigstoreOptions { + interface ConfigstoreOptions { globalConfigPath?: boolean; } } diff --git a/configstore/tsconfig.json b/types/configstore/tsconfig.json similarity index 100% rename from configstore/tsconfig.json rename to types/configstore/tsconfig.json diff --git a/configstore/tslint.json b/types/configstore/tslint.json similarity index 100% rename from configstore/tslint.json rename to types/configstore/tslint.json diff --git a/confit/confit-tests.ts b/types/confit/confit-tests.ts similarity index 100% rename from confit/confit-tests.ts rename to types/confit/confit-tests.ts diff --git a/confit/index.d.ts b/types/confit/index.d.ts similarity index 100% rename from confit/index.d.ts rename to types/confit/index.d.ts diff --git a/confit/tsconfig.json b/types/confit/tsconfig.json similarity index 100% rename from confit/tsconfig.json rename to types/confit/tsconfig.json diff --git a/connect-ensure-login/connect-ensure-login-tests.ts b/types/connect-ensure-login/connect-ensure-login-tests.ts similarity index 98% rename from connect-ensure-login/connect-ensure-login-tests.ts rename to types/connect-ensure-login/connect-ensure-login-tests.ts index 68ce1a76a2..708f76a9ba 100644 --- a/connect-ensure-login/connect-ensure-login-tests.ts +++ b/types/connect-ensure-login/connect-ensure-login-tests.ts @@ -10,4 +10,4 @@ login.ensureLoggedOut(); login.ensureLoggedOut("/"); login.ensureLoggedOut({ redirectTo: "/", -}); \ No newline at end of file +}); diff --git a/connect-ensure-login/index.d.ts b/types/connect-ensure-login/index.d.ts similarity index 91% rename from connect-ensure-login/index.d.ts rename to types/connect-ensure-login/index.d.ts index d542f63a90..fb1716abf9 100644 --- a/connect-ensure-login/index.d.ts +++ b/types/connect-ensure-login/index.d.ts @@ -47,7 +47,7 @@ interface LoggedOutOptions { * ensureLoggedIn({ redirectTo: '/session/new', setReturnTo: false }), * function(req, res) { ... }); */ -export declare function ensureLoggedIn(options?: LoggedInOptions | string): RequestHandler; +export function ensureLoggedIn(options?: LoggedInOptions | string): RequestHandler; /** * Ensure that no user is logged in before proceeding to next route middleware. @@ -70,4 +70,4 @@ export declare function ensureLoggedIn(options?: LoggedInOptions | string): Requ * ensureLoggedOut({ redirectTo: '/home' }), * function(req, res) { ... }); */ -export declare function ensureLoggedOut(options?: LoggedOutOptions | string): RequestHandler; \ No newline at end of file +export function ensureLoggedOut(options?: LoggedOutOptions | string): RequestHandler; diff --git a/connect-ensure-login/tsconfig.json b/types/connect-ensure-login/tsconfig.json similarity index 100% rename from connect-ensure-login/tsconfig.json rename to types/connect-ensure-login/tsconfig.json diff --git a/connect-ensure-login/tslint.json b/types/connect-ensure-login/tslint.json similarity index 100% rename from connect-ensure-login/tslint.json rename to types/connect-ensure-login/tslint.json diff --git a/connect-flash/connect-flash-tests.ts b/types/connect-flash/connect-flash-tests.ts similarity index 100% rename from connect-flash/connect-flash-tests.ts rename to types/connect-flash/connect-flash-tests.ts diff --git a/connect-flash/index.d.ts b/types/connect-flash/index.d.ts similarity index 100% rename from connect-flash/index.d.ts rename to types/connect-flash/index.d.ts diff --git a/connect-flash/tsconfig.json b/types/connect-flash/tsconfig.json similarity index 100% rename from connect-flash/tsconfig.json rename to types/connect-flash/tsconfig.json diff --git a/connect-livereload/connect-livereload-tests.ts b/types/connect-livereload/connect-livereload-tests.ts similarity index 100% rename from connect-livereload/connect-livereload-tests.ts rename to types/connect-livereload/connect-livereload-tests.ts diff --git a/connect-livereload/index.d.ts b/types/connect-livereload/index.d.ts similarity index 100% rename from connect-livereload/index.d.ts rename to types/connect-livereload/index.d.ts diff --git a/connect-livereload/tsconfig.json b/types/connect-livereload/tsconfig.json similarity index 100% rename from connect-livereload/tsconfig.json rename to types/connect-livereload/tsconfig.json diff --git a/connect-modrewrite/connect-modrewrite-tests.ts b/types/connect-modrewrite/connect-modrewrite-tests.ts similarity index 100% rename from connect-modrewrite/connect-modrewrite-tests.ts rename to types/connect-modrewrite/connect-modrewrite-tests.ts diff --git a/connect-modrewrite/index.d.ts b/types/connect-modrewrite/index.d.ts similarity index 100% rename from connect-modrewrite/index.d.ts rename to types/connect-modrewrite/index.d.ts diff --git a/connect-modrewrite/tsconfig.json b/types/connect-modrewrite/tsconfig.json similarity index 100% rename from connect-modrewrite/tsconfig.json rename to types/connect-modrewrite/tsconfig.json diff --git a/connect-mongo/connect-mongo-tests.ts b/types/connect-mongo/connect-mongo-tests.ts similarity index 100% rename from connect-mongo/connect-mongo-tests.ts rename to types/connect-mongo/connect-mongo-tests.ts diff --git a/connect-mongo/index.d.ts b/types/connect-mongo/index.d.ts similarity index 100% rename from connect-mongo/index.d.ts rename to types/connect-mongo/index.d.ts diff --git a/connect-mongo/tsconfig.json b/types/connect-mongo/tsconfig.json similarity index 100% rename from connect-mongo/tsconfig.json rename to types/connect-mongo/tsconfig.json diff --git a/connect-redis/connect-redis-tests.ts b/types/connect-redis/connect-redis-tests.ts similarity index 100% rename from connect-redis/connect-redis-tests.ts rename to types/connect-redis/connect-redis-tests.ts diff --git a/connect-redis/index.d.ts b/types/connect-redis/index.d.ts similarity index 100% rename from connect-redis/index.d.ts rename to types/connect-redis/index.d.ts diff --git a/connect-redis/tsconfig.json b/types/connect-redis/tsconfig.json similarity index 100% rename from connect-redis/tsconfig.json rename to types/connect-redis/tsconfig.json diff --git a/connect-slashes/connect-slashes-tests.ts b/types/connect-slashes/connect-slashes-tests.ts similarity index 100% rename from connect-slashes/connect-slashes-tests.ts rename to types/connect-slashes/connect-slashes-tests.ts diff --git a/connect-slashes/index.d.ts b/types/connect-slashes/index.d.ts similarity index 100% rename from connect-slashes/index.d.ts rename to types/connect-slashes/index.d.ts diff --git a/connect-slashes/tsconfig.json b/types/connect-slashes/tsconfig.json similarity index 100% rename from connect-slashes/tsconfig.json rename to types/connect-slashes/tsconfig.json diff --git a/connect-timeout/connect-timeout-tests.ts b/types/connect-timeout/connect-timeout-tests.ts similarity index 100% rename from connect-timeout/connect-timeout-tests.ts rename to types/connect-timeout/connect-timeout-tests.ts diff --git a/connect-timeout/index.d.ts b/types/connect-timeout/index.d.ts similarity index 100% rename from connect-timeout/index.d.ts rename to types/connect-timeout/index.d.ts diff --git a/connect-timeout/tsconfig.json b/types/connect-timeout/tsconfig.json similarity index 100% rename from connect-timeout/tsconfig.json rename to types/connect-timeout/tsconfig.json diff --git a/connect/connect-tests.ts b/types/connect/connect-tests.ts similarity index 100% rename from connect/connect-tests.ts rename to types/connect/connect-tests.ts diff --git a/connect/index.d.ts b/types/connect/index.d.ts similarity index 100% rename from connect/index.d.ts rename to types/connect/index.d.ts diff --git a/connect/tsconfig.json b/types/connect/tsconfig.json similarity index 100% rename from connect/tsconfig.json rename to types/connect/tsconfig.json diff --git a/console-stamp/console-stamp-tests.ts b/types/console-stamp/console-stamp-tests.ts similarity index 100% rename from console-stamp/console-stamp-tests.ts rename to types/console-stamp/console-stamp-tests.ts diff --git a/console-stamp/index.d.ts b/types/console-stamp/index.d.ts similarity index 100% rename from console-stamp/index.d.ts rename to types/console-stamp/index.d.ts diff --git a/console-stamp/tsconfig.json b/types/console-stamp/tsconfig.json similarity index 100% rename from console-stamp/tsconfig.json rename to types/console-stamp/tsconfig.json diff --git a/consolidate/consolidate-tests.ts b/types/consolidate/consolidate-tests.ts similarity index 100% rename from consolidate/consolidate-tests.ts rename to types/consolidate/consolidate-tests.ts diff --git a/consolidate/index.d.ts b/types/consolidate/index.d.ts similarity index 100% rename from consolidate/index.d.ts rename to types/consolidate/index.d.ts diff --git a/consolidate/tsconfig.json b/types/consolidate/tsconfig.json similarity index 100% rename from consolidate/tsconfig.json rename to types/consolidate/tsconfig.json diff --git a/consul/consul-tests.ts b/types/consul/consul-tests.ts similarity index 100% rename from consul/consul-tests.ts rename to types/consul/consul-tests.ts diff --git a/consul/index.d.ts b/types/consul/index.d.ts similarity index 100% rename from consul/index.d.ts rename to types/consul/index.d.ts diff --git a/consul/tsconfig.json b/types/consul/tsconfig.json similarity index 100% rename from consul/tsconfig.json rename to types/consul/tsconfig.json diff --git a/content-disposition/content-disposition-tests.ts b/types/content-disposition/content-disposition-tests.ts similarity index 100% rename from content-disposition/content-disposition-tests.ts rename to types/content-disposition/content-disposition-tests.ts diff --git a/content-disposition/index.d.ts b/types/content-disposition/index.d.ts similarity index 77% rename from content-disposition/index.d.ts rename to types/content-disposition/index.d.ts index 4d0bbd8d94..31e60c1041 100644 --- a/content-disposition/index.d.ts +++ b/types/content-disposition/index.d.ts @@ -4,17 +4,17 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace contentDisposition { - export interface ContentDisposition { + interface ContentDisposition { type: string; parameters: any; } - export interface Options { + interface Options { type?: string; fallback?: string | boolean; } - export function parse(contentDispositionHeader: string): ContentDisposition; + function parse(contentDispositionHeader: string): ContentDisposition; } declare function contentDisposition(filename?: string, options?: contentDisposition.Options): string; diff --git a/content-disposition/tsconfig.json b/types/content-disposition/tsconfig.json similarity index 100% rename from content-disposition/tsconfig.json rename to types/content-disposition/tsconfig.json diff --git a/content-disposition/tslint.json b/types/content-disposition/tslint.json similarity index 100% rename from content-disposition/tslint.json rename to types/content-disposition/tslint.json diff --git a/content-type/content-type-tests.ts b/types/content-type/content-type-tests.ts similarity index 100% rename from content-type/content-type-tests.ts rename to types/content-type/content-type-tests.ts diff --git a/content-type/index.d.ts b/types/content-type/index.d.ts similarity index 100% rename from content-type/index.d.ts rename to types/content-type/index.d.ts diff --git a/content-type/tsconfig.json b/types/content-type/tsconfig.json similarity index 100% rename from content-type/tsconfig.json rename to types/content-type/tsconfig.json diff --git a/contentful-resolve-response/contentful-resolve-response-tests.ts b/types/contentful-resolve-response/contentful-resolve-response-tests.ts similarity index 100% rename from contentful-resolve-response/contentful-resolve-response-tests.ts rename to types/contentful-resolve-response/contentful-resolve-response-tests.ts diff --git a/contentful-resolve-response/index.d.ts b/types/contentful-resolve-response/index.d.ts similarity index 100% rename from contentful-resolve-response/index.d.ts rename to types/contentful-resolve-response/index.d.ts diff --git a/contentful-resolve-response/tsconfig.json b/types/contentful-resolve-response/tsconfig.json similarity index 100% rename from contentful-resolve-response/tsconfig.json rename to types/contentful-resolve-response/tsconfig.json diff --git a/contextjs/contextjs-tests.ts b/types/contextjs/contextjs-tests.ts similarity index 100% rename from contextjs/contextjs-tests.ts rename to types/contextjs/contextjs-tests.ts diff --git a/contextjs/index.d.ts b/types/contextjs/index.d.ts similarity index 100% rename from contextjs/index.d.ts rename to types/contextjs/index.d.ts diff --git a/contextjs/tsconfig.json b/types/contextjs/tsconfig.json similarity index 100% rename from contextjs/tsconfig.json rename to types/contextjs/tsconfig.json diff --git a/continuation-local-storage/continuation-local-storage-tests.ts b/types/continuation-local-storage/continuation-local-storage-tests.ts similarity index 100% rename from continuation-local-storage/continuation-local-storage-tests.ts rename to types/continuation-local-storage/continuation-local-storage-tests.ts diff --git a/continuation-local-storage/index.d.ts b/types/continuation-local-storage/index.d.ts similarity index 100% rename from continuation-local-storage/index.d.ts rename to types/continuation-local-storage/index.d.ts diff --git a/continuation-local-storage/tsconfig.json b/types/continuation-local-storage/tsconfig.json similarity index 100% rename from continuation-local-storage/tsconfig.json rename to types/continuation-local-storage/tsconfig.json diff --git a/convert-source-map/convert-source-map-tests.ts b/types/convert-source-map/convert-source-map-tests.ts similarity index 100% rename from convert-source-map/convert-source-map-tests.ts rename to types/convert-source-map/convert-source-map-tests.ts diff --git a/convert-source-map/index.d.ts b/types/convert-source-map/index.d.ts similarity index 100% rename from convert-source-map/index.d.ts rename to types/convert-source-map/index.d.ts diff --git a/convert-source-map/tsconfig.json b/types/convert-source-map/tsconfig.json similarity index 100% rename from convert-source-map/tsconfig.json rename to types/convert-source-map/tsconfig.json diff --git a/convert-source-map/tslint.json b/types/convert-source-map/tslint.json similarity index 100% rename from convert-source-map/tslint.json rename to types/convert-source-map/tslint.json diff --git a/convict/convict-tests.ts b/types/convict/convict-tests.ts similarity index 100% rename from convict/convict-tests.ts rename to types/convict/convict-tests.ts diff --git a/convict/index.d.ts b/types/convict/index.d.ts similarity index 100% rename from convict/index.d.ts rename to types/convict/index.d.ts diff --git a/convict/tsconfig.json b/types/convict/tsconfig.json similarity index 100% rename from convict/tsconfig.json rename to types/convict/tsconfig.json diff --git a/cookie-parser/cookie-parser-tests.ts b/types/cookie-parser/cookie-parser-tests.ts similarity index 100% rename from cookie-parser/cookie-parser-tests.ts rename to types/cookie-parser/cookie-parser-tests.ts diff --git a/cookie-parser/index.d.ts b/types/cookie-parser/index.d.ts similarity index 100% rename from cookie-parser/index.d.ts rename to types/cookie-parser/index.d.ts diff --git a/cookie-parser/tsconfig.json b/types/cookie-parser/tsconfig.json similarity index 100% rename from cookie-parser/tsconfig.json rename to types/cookie-parser/tsconfig.json diff --git a/cookie-session/cookie-session-tests.ts b/types/cookie-session/cookie-session-tests.ts similarity index 100% rename from cookie-session/cookie-session-tests.ts rename to types/cookie-session/cookie-session-tests.ts diff --git a/cookie-session/index.d.ts b/types/cookie-session/index.d.ts similarity index 100% rename from cookie-session/index.d.ts rename to types/cookie-session/index.d.ts diff --git a/cookie-session/tsconfig.json b/types/cookie-session/tsconfig.json similarity index 100% rename from cookie-session/tsconfig.json rename to types/cookie-session/tsconfig.json diff --git a/cookie-signature/cookie-signature-tests.ts b/types/cookie-signature/cookie-signature-tests.ts similarity index 100% rename from cookie-signature/cookie-signature-tests.ts rename to types/cookie-signature/cookie-signature-tests.ts diff --git a/cookie-signature/index.d.ts b/types/cookie-signature/index.d.ts similarity index 100% rename from cookie-signature/index.d.ts rename to types/cookie-signature/index.d.ts diff --git a/cookie-signature/tsconfig.json b/types/cookie-signature/tsconfig.json similarity index 100% rename from cookie-signature/tsconfig.json rename to types/cookie-signature/tsconfig.json diff --git a/cookie-signature/tslint.json b/types/cookie-signature/tslint.json similarity index 100% rename from cookie-signature/tslint.json rename to types/cookie-signature/tslint.json diff --git a/cookie/cookie-tests.ts b/types/cookie/cookie-tests.ts similarity index 100% rename from cookie/cookie-tests.ts rename to types/cookie/cookie-tests.ts diff --git a/cookie/index.d.ts b/types/cookie/index.d.ts similarity index 100% rename from cookie/index.d.ts rename to types/cookie/index.d.ts diff --git a/cookie/tsconfig.json b/types/cookie/tsconfig.json similarity index 100% rename from cookie/tsconfig.json rename to types/cookie/tsconfig.json diff --git a/cookiejs/cookiejs-tests.ts b/types/cookiejs/cookiejs-tests.ts similarity index 100% rename from cookiejs/cookiejs-tests.ts rename to types/cookiejs/cookiejs-tests.ts diff --git a/cookiejs/index.d.ts b/types/cookiejs/index.d.ts similarity index 100% rename from cookiejs/index.d.ts rename to types/cookiejs/index.d.ts diff --git a/cookiejs/tsconfig.json b/types/cookiejs/tsconfig.json similarity index 100% rename from cookiejs/tsconfig.json rename to types/cookiejs/tsconfig.json diff --git a/cookies/cookies-tests.ts b/types/cookies/cookies-tests.ts similarity index 99% rename from cookies/cookies-tests.ts rename to types/cookies/cookies-tests.ts index 5a2ad1e4a7..112246907c 100644 --- a/cookies/cookies-tests.ts +++ b/types/cookies/cookies-tests.ts @@ -36,4 +36,4 @@ const server = http.createServer((req, res) => { "tampered expected: undefined\n\n" + "tampered: " + tampered + "\n\n" ); -}); \ No newline at end of file +}); diff --git a/cookies/index.d.ts b/types/cookies/index.d.ts similarity index 94% rename from cookies/index.d.ts rename to types/cookies/index.d.ts index 390890bb4a..55feb7ec7d 100644 --- a/cookies/index.d.ts +++ b/types/cookies/index.d.ts @@ -7,7 +7,7 @@ import { IncomingMessage, ServerResponse } from 'http'; import * as Keygrip from 'keygrip'; -declare interface Cookies { +interface Cookies { secure: boolean; request: IncomingMessage; response: ServerResponse; @@ -27,27 +27,26 @@ declare interface Cookies { set(name: string, value?: string, opts?: Cookies.SetOption): this; } - declare namespace Cookies { /** * for backward-compatibility */ - export type ICookies = Cookies; + type ICookies = Cookies; /** * for backward-compatibility */ - export type IOptions = SetOption; + type IOptions = SetOption; - export interface Option { + interface Option { keys: string[] | Keygrip; secure?: boolean; } - export interface GetOption { + interface GetOption { signed: boolean; } - export interface SetOption { + interface SetOption { /** * a number representing the milliseconds from Date.now() for expiry */ @@ -97,9 +96,9 @@ declare namespace Cookies { overwrite?: boolean; } - export type CookieAttr = SetOption; + type CookieAttr = SetOption; - export interface Cookie { + interface Cookie { name: string; value: string; /** @@ -119,7 +118,7 @@ declare namespace Cookies { } } -declare interface CookiesFunction { +interface CookiesFunction { (request: IncomingMessage, response: ServerResponse, options?: Cookies.Option): Cookies; /** * "options" array of key strings is deprecated, provide using options {"keys": keygrip} diff --git a/cookies/tsconfig.json b/types/cookies/tsconfig.json similarity index 100% rename from cookies/tsconfig.json rename to types/cookies/tsconfig.json diff --git a/cookies/tslint.json b/types/cookies/tslint.json similarity index 100% rename from cookies/tslint.json rename to types/cookies/tslint.json diff --git a/copy-paste/copy-paste-tests.ts b/types/copy-paste/copy-paste-tests.ts similarity index 100% rename from copy-paste/copy-paste-tests.ts rename to types/copy-paste/copy-paste-tests.ts diff --git a/copy-paste/index.d.ts b/types/copy-paste/index.d.ts similarity index 100% rename from copy-paste/index.d.ts rename to types/copy-paste/index.d.ts diff --git a/copy-paste/tsconfig.json b/types/copy-paste/tsconfig.json similarity index 100% rename from copy-paste/tsconfig.json rename to types/copy-paste/tsconfig.json diff --git a/copy-webpack-plugin/copy-webpack-plugin-tests.ts b/types/copy-webpack-plugin/copy-webpack-plugin-tests.ts similarity index 100% rename from copy-webpack-plugin/copy-webpack-plugin-tests.ts rename to types/copy-webpack-plugin/copy-webpack-plugin-tests.ts diff --git a/copy-webpack-plugin/index.d.ts b/types/copy-webpack-plugin/index.d.ts similarity index 100% rename from copy-webpack-plugin/index.d.ts rename to types/copy-webpack-plugin/index.d.ts diff --git a/copy-webpack-plugin/tsconfig.json b/types/copy-webpack-plugin/tsconfig.json similarity index 100% rename from copy-webpack-plugin/tsconfig.json rename to types/copy-webpack-plugin/tsconfig.json diff --git a/cordova-ionic/cordova-ionic-tests.ts b/types/cordova-ionic/cordova-ionic-tests.ts similarity index 100% rename from cordova-ionic/cordova-ionic-tests.ts rename to types/cordova-ionic/cordova-ionic-tests.ts diff --git a/cordova-ionic/index.d.ts b/types/cordova-ionic/index.d.ts similarity index 100% rename from cordova-ionic/index.d.ts rename to types/cordova-ionic/index.d.ts diff --git a/cordova-ionic/keyboard.d.ts b/types/cordova-ionic/keyboard.d.ts similarity index 100% rename from cordova-ionic/keyboard.d.ts rename to types/cordova-ionic/keyboard.d.ts diff --git a/cordova-ionic/tsconfig.json b/types/cordova-ionic/tsconfig.json similarity index 100% rename from cordova-ionic/tsconfig.json rename to types/cordova-ionic/tsconfig.json diff --git a/cordova-plugin-app-version/cordova-plugin-app-version-tests.ts b/types/cordova-plugin-app-version/cordova-plugin-app-version-tests.ts similarity index 100% rename from cordova-plugin-app-version/cordova-plugin-app-version-tests.ts rename to types/cordova-plugin-app-version/cordova-plugin-app-version-tests.ts diff --git a/cordova-plugin-app-version/index.d.ts b/types/cordova-plugin-app-version/index.d.ts similarity index 100% rename from cordova-plugin-app-version/index.d.ts rename to types/cordova-plugin-app-version/index.d.ts diff --git a/cordova-plugin-app-version/tsconfig.json b/types/cordova-plugin-app-version/tsconfig.json similarity index 100% rename from cordova-plugin-app-version/tsconfig.json rename to types/cordova-plugin-app-version/tsconfig.json diff --git a/cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts b/types/cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts similarity index 100% rename from cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts rename to types/cordova-plugin-background-mode/cordova-plugin-background-mode-tests.ts diff --git a/cordova-plugin-background-mode/index.d.ts b/types/cordova-plugin-background-mode/index.d.ts similarity index 100% rename from cordova-plugin-background-mode/index.d.ts rename to types/cordova-plugin-background-mode/index.d.ts diff --git a/cordova-plugin-background-mode/tsconfig.json b/types/cordova-plugin-background-mode/tsconfig.json similarity index 100% rename from cordova-plugin-background-mode/tsconfig.json rename to types/cordova-plugin-background-mode/tsconfig.json diff --git a/cordova-plugin-battery-status/cordova-plugin-battery-status-tests.ts b/types/cordova-plugin-battery-status/cordova-plugin-battery-status-tests.ts similarity index 100% rename from cordova-plugin-battery-status/cordova-plugin-battery-status-tests.ts rename to types/cordova-plugin-battery-status/cordova-plugin-battery-status-tests.ts diff --git a/cordova-plugin-battery-status/index.d.ts b/types/cordova-plugin-battery-status/index.d.ts similarity index 100% rename from cordova-plugin-battery-status/index.d.ts rename to types/cordova-plugin-battery-status/index.d.ts diff --git a/cordova-plugin-battery-status/tsconfig.json b/types/cordova-plugin-battery-status/tsconfig.json similarity index 100% rename from cordova-plugin-battery-status/tsconfig.json rename to types/cordova-plugin-battery-status/tsconfig.json diff --git a/cordova-plugin-ble-central/cordova-plugin-ble-central-tests.ts b/types/cordova-plugin-ble-central/cordova-plugin-ble-central-tests.ts similarity index 100% rename from cordova-plugin-ble-central/cordova-plugin-ble-central-tests.ts rename to types/cordova-plugin-ble-central/cordova-plugin-ble-central-tests.ts diff --git a/cordova-plugin-ble-central/index.d.ts b/types/cordova-plugin-ble-central/index.d.ts similarity index 100% rename from cordova-plugin-ble-central/index.d.ts rename to types/cordova-plugin-ble-central/index.d.ts diff --git a/cordova-plugin-ble-central/tsconfig.json b/types/cordova-plugin-ble-central/tsconfig.json similarity index 100% rename from cordova-plugin-ble-central/tsconfig.json rename to types/cordova-plugin-ble-central/tsconfig.json diff --git a/cordova-plugin-camera/cordova-plugin-camera-tests.ts b/types/cordova-plugin-camera/cordova-plugin-camera-tests.ts similarity index 100% rename from cordova-plugin-camera/cordova-plugin-camera-tests.ts rename to types/cordova-plugin-camera/cordova-plugin-camera-tests.ts diff --git a/cordova-plugin-camera/index.d.ts b/types/cordova-plugin-camera/index.d.ts similarity index 100% rename from cordova-plugin-camera/index.d.ts rename to types/cordova-plugin-camera/index.d.ts diff --git a/cordova-plugin-camera/tsconfig.json b/types/cordova-plugin-camera/tsconfig.json similarity index 100% rename from cordova-plugin-camera/tsconfig.json rename to types/cordova-plugin-camera/tsconfig.json diff --git a/cordova-plugin-contacts/cordova-plugin-contacts-tests.ts b/types/cordova-plugin-contacts/cordova-plugin-contacts-tests.ts similarity index 100% rename from cordova-plugin-contacts/cordova-plugin-contacts-tests.ts rename to types/cordova-plugin-contacts/cordova-plugin-contacts-tests.ts diff --git a/cordova-plugin-contacts/index.d.ts b/types/cordova-plugin-contacts/index.d.ts similarity index 100% rename from cordova-plugin-contacts/index.d.ts rename to types/cordova-plugin-contacts/index.d.ts diff --git a/cordova-plugin-contacts/tsconfig.json b/types/cordova-plugin-contacts/tsconfig.json similarity index 100% rename from cordova-plugin-contacts/tsconfig.json rename to types/cordova-plugin-contacts/tsconfig.json diff --git a/cordova-plugin-device-motion/cordova-plugin-device-motion-tests.ts b/types/cordova-plugin-device-motion/cordova-plugin-device-motion-tests.ts similarity index 100% rename from cordova-plugin-device-motion/cordova-plugin-device-motion-tests.ts rename to types/cordova-plugin-device-motion/cordova-plugin-device-motion-tests.ts diff --git a/cordova-plugin-device-motion/index.d.ts b/types/cordova-plugin-device-motion/index.d.ts similarity index 100% rename from cordova-plugin-device-motion/index.d.ts rename to types/cordova-plugin-device-motion/index.d.ts diff --git a/cordova-plugin-device-motion/tsconfig.json b/types/cordova-plugin-device-motion/tsconfig.json similarity index 100% rename from cordova-plugin-device-motion/tsconfig.json rename to types/cordova-plugin-device-motion/tsconfig.json diff --git a/cordova-plugin-device-name/README.md b/types/cordova-plugin-device-name/README.md similarity index 100% rename from cordova-plugin-device-name/README.md rename to types/cordova-plugin-device-name/README.md diff --git a/cordova-plugin-device-name/cordova-plugin-device-name-tests.ts b/types/cordova-plugin-device-name/cordova-plugin-device-name-tests.ts similarity index 100% rename from cordova-plugin-device-name/cordova-plugin-device-name-tests.ts rename to types/cordova-plugin-device-name/cordova-plugin-device-name-tests.ts diff --git a/cordova-plugin-device-name/index.d.ts b/types/cordova-plugin-device-name/index.d.ts similarity index 100% rename from cordova-plugin-device-name/index.d.ts rename to types/cordova-plugin-device-name/index.d.ts diff --git a/cordova-plugin-device-name/tsconfig.json b/types/cordova-plugin-device-name/tsconfig.json similarity index 100% rename from cordova-plugin-device-name/tsconfig.json rename to types/cordova-plugin-device-name/tsconfig.json diff --git a/cordova-plugin-device-orientation/cordova-plugin-device-orientation-tests.ts b/types/cordova-plugin-device-orientation/cordova-plugin-device-orientation-tests.ts similarity index 100% rename from cordova-plugin-device-orientation/cordova-plugin-device-orientation-tests.ts rename to types/cordova-plugin-device-orientation/cordova-plugin-device-orientation-tests.ts diff --git a/cordova-plugin-device-orientation/index.d.ts b/types/cordova-plugin-device-orientation/index.d.ts similarity index 100% rename from cordova-plugin-device-orientation/index.d.ts rename to types/cordova-plugin-device-orientation/index.d.ts diff --git a/cordova-plugin-device-orientation/tsconfig.json b/types/cordova-plugin-device-orientation/tsconfig.json similarity index 100% rename from cordova-plugin-device-orientation/tsconfig.json rename to types/cordova-plugin-device-orientation/tsconfig.json diff --git a/cordova-plugin-device/cordova-plugin-device-tests.ts b/types/cordova-plugin-device/cordova-plugin-device-tests.ts similarity index 100% rename from cordova-plugin-device/cordova-plugin-device-tests.ts rename to types/cordova-plugin-device/cordova-plugin-device-tests.ts diff --git a/cordova-plugin-device/index.d.ts b/types/cordova-plugin-device/index.d.ts similarity index 100% rename from cordova-plugin-device/index.d.ts rename to types/cordova-plugin-device/index.d.ts diff --git a/cordova-plugin-device/tsconfig.json b/types/cordova-plugin-device/tsconfig.json similarity index 100% rename from cordova-plugin-device/tsconfig.json rename to types/cordova-plugin-device/tsconfig.json diff --git a/cordova-plugin-dialogs/cordova-plugin-dialogs-tests.ts b/types/cordova-plugin-dialogs/cordova-plugin-dialogs-tests.ts similarity index 100% rename from cordova-plugin-dialogs/cordova-plugin-dialogs-tests.ts rename to types/cordova-plugin-dialogs/cordova-plugin-dialogs-tests.ts diff --git a/cordova-plugin-dialogs/index.d.ts b/types/cordova-plugin-dialogs/index.d.ts similarity index 100% rename from cordova-plugin-dialogs/index.d.ts rename to types/cordova-plugin-dialogs/index.d.ts diff --git a/cordova-plugin-dialogs/tsconfig.json b/types/cordova-plugin-dialogs/tsconfig.json similarity index 100% rename from cordova-plugin-dialogs/tsconfig.json rename to types/cordova-plugin-dialogs/tsconfig.json diff --git a/cordova-plugin-email-composer/cordova-plugin-email-composer-tests.ts b/types/cordova-plugin-email-composer/cordova-plugin-email-composer-tests.ts similarity index 100% rename from cordova-plugin-email-composer/cordova-plugin-email-composer-tests.ts rename to types/cordova-plugin-email-composer/cordova-plugin-email-composer-tests.ts diff --git a/cordova-plugin-email-composer/index.d.ts b/types/cordova-plugin-email-composer/index.d.ts similarity index 100% rename from cordova-plugin-email-composer/index.d.ts rename to types/cordova-plugin-email-composer/index.d.ts diff --git a/cordova-plugin-email-composer/tsconfig.json b/types/cordova-plugin-email-composer/tsconfig.json similarity index 100% rename from cordova-plugin-email-composer/tsconfig.json rename to types/cordova-plugin-email-composer/tsconfig.json diff --git a/cordova-plugin-file-transfer/cordova-plugin-file-transfer-tests.ts b/types/cordova-plugin-file-transfer/cordova-plugin-file-transfer-tests.ts similarity index 100% rename from cordova-plugin-file-transfer/cordova-plugin-file-transfer-tests.ts rename to types/cordova-plugin-file-transfer/cordova-plugin-file-transfer-tests.ts diff --git a/cordova-plugin-file-transfer/index.d.ts b/types/cordova-plugin-file-transfer/index.d.ts similarity index 100% rename from cordova-plugin-file-transfer/index.d.ts rename to types/cordova-plugin-file-transfer/index.d.ts diff --git a/cordova-plugin-file-transfer/tsconfig.json b/types/cordova-plugin-file-transfer/tsconfig.json similarity index 100% rename from cordova-plugin-file-transfer/tsconfig.json rename to types/cordova-plugin-file-transfer/tsconfig.json diff --git a/cordova-plugin-file/cordova-plugin-file-tests.ts b/types/cordova-plugin-file/cordova-plugin-file-tests.ts similarity index 100% rename from cordova-plugin-file/cordova-plugin-file-tests.ts rename to types/cordova-plugin-file/cordova-plugin-file-tests.ts diff --git a/cordova-plugin-file/index.d.ts b/types/cordova-plugin-file/index.d.ts similarity index 100% rename from cordova-plugin-file/index.d.ts rename to types/cordova-plugin-file/index.d.ts diff --git a/cordova-plugin-file/tsconfig.json b/types/cordova-plugin-file/tsconfig.json similarity index 100% rename from cordova-plugin-file/tsconfig.json rename to types/cordova-plugin-file/tsconfig.json diff --git a/cordova-plugin-globalization/cordova-plugin-globalization-tests.ts b/types/cordova-plugin-globalization/cordova-plugin-globalization-tests.ts similarity index 100% rename from cordova-plugin-globalization/cordova-plugin-globalization-tests.ts rename to types/cordova-plugin-globalization/cordova-plugin-globalization-tests.ts diff --git a/cordova-plugin-globalization/index.d.ts b/types/cordova-plugin-globalization/index.d.ts similarity index 100% rename from cordova-plugin-globalization/index.d.ts rename to types/cordova-plugin-globalization/index.d.ts diff --git a/cordova-plugin-globalization/tsconfig.json b/types/cordova-plugin-globalization/tsconfig.json similarity index 100% rename from cordova-plugin-globalization/tsconfig.json rename to types/cordova-plugin-globalization/tsconfig.json diff --git a/cordova-plugin-ibeacon/cordova-plugin-ibeacon-tests.ts b/types/cordova-plugin-ibeacon/cordova-plugin-ibeacon-tests.ts similarity index 100% rename from cordova-plugin-ibeacon/cordova-plugin-ibeacon-tests.ts rename to types/cordova-plugin-ibeacon/cordova-plugin-ibeacon-tests.ts diff --git a/cordova-plugin-ibeacon/index.d.ts b/types/cordova-plugin-ibeacon/index.d.ts similarity index 100% rename from cordova-plugin-ibeacon/index.d.ts rename to types/cordova-plugin-ibeacon/index.d.ts diff --git a/cordova-plugin-ibeacon/tsconfig.json b/types/cordova-plugin-ibeacon/tsconfig.json similarity index 100% rename from cordova-plugin-ibeacon/tsconfig.json rename to types/cordova-plugin-ibeacon/tsconfig.json diff --git a/cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts b/types/cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts similarity index 100% rename from cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts rename to types/cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts diff --git a/cordova-plugin-inappbrowser/index.d.ts b/types/cordova-plugin-inappbrowser/index.d.ts similarity index 100% rename from cordova-plugin-inappbrowser/index.d.ts rename to types/cordova-plugin-inappbrowser/index.d.ts diff --git a/cordova-plugin-inappbrowser/tsconfig.json b/types/cordova-plugin-inappbrowser/tsconfig.json similarity index 100% rename from cordova-plugin-inappbrowser/tsconfig.json rename to types/cordova-plugin-inappbrowser/tsconfig.json diff --git a/cordova-plugin-insomnia/cordova-plugin-insomnia-tests.ts b/types/cordova-plugin-insomnia/cordova-plugin-insomnia-tests.ts similarity index 100% rename from cordova-plugin-insomnia/cordova-plugin-insomnia-tests.ts rename to types/cordova-plugin-insomnia/cordova-plugin-insomnia-tests.ts diff --git a/cordova-plugin-insomnia/index.d.ts b/types/cordova-plugin-insomnia/index.d.ts similarity index 100% rename from cordova-plugin-insomnia/index.d.ts rename to types/cordova-plugin-insomnia/index.d.ts diff --git a/cordova-plugin-insomnia/tsconfig.json b/types/cordova-plugin-insomnia/tsconfig.json similarity index 100% rename from cordova-plugin-insomnia/tsconfig.json rename to types/cordova-plugin-insomnia/tsconfig.json diff --git a/cordova-plugin-keyboard/cordova-plugin-keyboard-tests.ts b/types/cordova-plugin-keyboard/cordova-plugin-keyboard-tests.ts similarity index 100% rename from cordova-plugin-keyboard/cordova-plugin-keyboard-tests.ts rename to types/cordova-plugin-keyboard/cordova-plugin-keyboard-tests.ts diff --git a/cordova-plugin-keyboard/index.d.ts b/types/cordova-plugin-keyboard/index.d.ts similarity index 100% rename from cordova-plugin-keyboard/index.d.ts rename to types/cordova-plugin-keyboard/index.d.ts diff --git a/cordova-plugin-keyboard/tsconfig.json b/types/cordova-plugin-keyboard/tsconfig.json similarity index 100% rename from cordova-plugin-keyboard/tsconfig.json rename to types/cordova-plugin-keyboard/tsconfig.json diff --git a/cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts b/types/cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts similarity index 100% rename from cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts rename to types/cordova-plugin-mapsforge/cordova-plugin-mapsforge-tests.ts diff --git a/cordova-plugin-mapsforge/index.d.ts b/types/cordova-plugin-mapsforge/index.d.ts similarity index 100% rename from cordova-plugin-mapsforge/index.d.ts rename to types/cordova-plugin-mapsforge/index.d.ts diff --git a/cordova-plugin-mapsforge/tsconfig.json b/types/cordova-plugin-mapsforge/tsconfig.json similarity index 100% rename from cordova-plugin-mapsforge/tsconfig.json rename to types/cordova-plugin-mapsforge/tsconfig.json diff --git a/cordova-plugin-media-capture/cordova-plugin-media-capture-tests.ts b/types/cordova-plugin-media-capture/cordova-plugin-media-capture-tests.ts similarity index 100% rename from cordova-plugin-media-capture/cordova-plugin-media-capture-tests.ts rename to types/cordova-plugin-media-capture/cordova-plugin-media-capture-tests.ts diff --git a/cordova-plugin-media-capture/index.d.ts b/types/cordova-plugin-media-capture/index.d.ts similarity index 100% rename from cordova-plugin-media-capture/index.d.ts rename to types/cordova-plugin-media-capture/index.d.ts diff --git a/cordova-plugin-media-capture/tsconfig.json b/types/cordova-plugin-media-capture/tsconfig.json similarity index 100% rename from cordova-plugin-media-capture/tsconfig.json rename to types/cordova-plugin-media-capture/tsconfig.json diff --git a/cordova-plugin-media/cordova-plugin-media-tests.ts b/types/cordova-plugin-media/cordova-plugin-media-tests.ts similarity index 100% rename from cordova-plugin-media/cordova-plugin-media-tests.ts rename to types/cordova-plugin-media/cordova-plugin-media-tests.ts diff --git a/cordova-plugin-media/index.d.ts b/types/cordova-plugin-media/index.d.ts similarity index 100% rename from cordova-plugin-media/index.d.ts rename to types/cordova-plugin-media/index.d.ts diff --git a/cordova-plugin-media/tsconfig.json b/types/cordova-plugin-media/tsconfig.json similarity index 100% rename from cordova-plugin-media/tsconfig.json rename to types/cordova-plugin-media/tsconfig.json diff --git a/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts b/types/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts similarity index 100% rename from cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts rename to types/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts diff --git a/cordova-plugin-ms-adal/index.d.ts b/types/cordova-plugin-ms-adal/index.d.ts similarity index 100% rename from cordova-plugin-ms-adal/index.d.ts rename to types/cordova-plugin-ms-adal/index.d.ts diff --git a/cordova-plugin-ms-adal/tsconfig.json b/types/cordova-plugin-ms-adal/tsconfig.json similarity index 100% rename from cordova-plugin-ms-adal/tsconfig.json rename to types/cordova-plugin-ms-adal/tsconfig.json diff --git a/cordova-plugin-network-information/cordova-plugin-network-information-tests.ts b/types/cordova-plugin-network-information/cordova-plugin-network-information-tests.ts similarity index 100% rename from cordova-plugin-network-information/cordova-plugin-network-information-tests.ts rename to types/cordova-plugin-network-information/cordova-plugin-network-information-tests.ts diff --git a/cordova-plugin-network-information/index.d.ts b/types/cordova-plugin-network-information/index.d.ts similarity index 100% rename from cordova-plugin-network-information/index.d.ts rename to types/cordova-plugin-network-information/index.d.ts diff --git a/cordova-plugin-network-information/tsconfig.json b/types/cordova-plugin-network-information/tsconfig.json similarity index 100% rename from cordova-plugin-network-information/tsconfig.json rename to types/cordova-plugin-network-information/tsconfig.json diff --git a/cordova-plugin-ouralabs/cordova-plugin-ouralabs-tests.ts b/types/cordova-plugin-ouralabs/cordova-plugin-ouralabs-tests.ts similarity index 100% rename from cordova-plugin-ouralabs/cordova-plugin-ouralabs-tests.ts rename to types/cordova-plugin-ouralabs/cordova-plugin-ouralabs-tests.ts diff --git a/cordova-plugin-ouralabs/index.d.ts b/types/cordova-plugin-ouralabs/index.d.ts similarity index 100% rename from cordova-plugin-ouralabs/index.d.ts rename to types/cordova-plugin-ouralabs/index.d.ts diff --git a/cordova-plugin-ouralabs/tsconfig.json b/types/cordova-plugin-ouralabs/tsconfig.json similarity index 100% rename from cordova-plugin-ouralabs/tsconfig.json rename to types/cordova-plugin-ouralabs/tsconfig.json diff --git a/cordova-plugin-qrscanner/cordova-plugin-qrscanner-tests.ts b/types/cordova-plugin-qrscanner/cordova-plugin-qrscanner-tests.ts similarity index 100% rename from cordova-plugin-qrscanner/cordova-plugin-qrscanner-tests.ts rename to types/cordova-plugin-qrscanner/cordova-plugin-qrscanner-tests.ts diff --git a/cordova-plugin-qrscanner/index.d.ts b/types/cordova-plugin-qrscanner/index.d.ts similarity index 100% rename from cordova-plugin-qrscanner/index.d.ts rename to types/cordova-plugin-qrscanner/index.d.ts diff --git a/cordova-plugin-qrscanner/tsconfig.json b/types/cordova-plugin-qrscanner/tsconfig.json similarity index 100% rename from cordova-plugin-qrscanner/tsconfig.json rename to types/cordova-plugin-qrscanner/tsconfig.json diff --git a/cordova-plugin-spinner/cordova-plugin-spinner-tests.ts b/types/cordova-plugin-spinner/cordova-plugin-spinner-tests.ts similarity index 100% rename from cordova-plugin-spinner/cordova-plugin-spinner-tests.ts rename to types/cordova-plugin-spinner/cordova-plugin-spinner-tests.ts diff --git a/cordova-plugin-spinner/index.d.ts b/types/cordova-plugin-spinner/index.d.ts similarity index 100% rename from cordova-plugin-spinner/index.d.ts rename to types/cordova-plugin-spinner/index.d.ts diff --git a/cordova-plugin-spinner/tsconfig.json b/types/cordova-plugin-spinner/tsconfig.json similarity index 100% rename from cordova-plugin-spinner/tsconfig.json rename to types/cordova-plugin-spinner/tsconfig.json diff --git a/cordova-plugin-splashscreen/cordova-plugin-splashscreen-tests.ts b/types/cordova-plugin-splashscreen/cordova-plugin-splashscreen-tests.ts similarity index 100% rename from cordova-plugin-splashscreen/cordova-plugin-splashscreen-tests.ts rename to types/cordova-plugin-splashscreen/cordova-plugin-splashscreen-tests.ts diff --git a/cordova-plugin-splashscreen/index.d.ts b/types/cordova-plugin-splashscreen/index.d.ts similarity index 100% rename from cordova-plugin-splashscreen/index.d.ts rename to types/cordova-plugin-splashscreen/index.d.ts diff --git a/cordova-plugin-splashscreen/tsconfig.json b/types/cordova-plugin-splashscreen/tsconfig.json similarity index 100% rename from cordova-plugin-splashscreen/tsconfig.json rename to types/cordova-plugin-splashscreen/tsconfig.json diff --git a/cordova-plugin-statusbar/cordova-plugin-statusbar-tests.ts b/types/cordova-plugin-statusbar/cordova-plugin-statusbar-tests.ts similarity index 100% rename from cordova-plugin-statusbar/cordova-plugin-statusbar-tests.ts rename to types/cordova-plugin-statusbar/cordova-plugin-statusbar-tests.ts diff --git a/cordova-plugin-statusbar/index.d.ts b/types/cordova-plugin-statusbar/index.d.ts similarity index 100% rename from cordova-plugin-statusbar/index.d.ts rename to types/cordova-plugin-statusbar/index.d.ts diff --git a/cordova-plugin-statusbar/tsconfig.json b/types/cordova-plugin-statusbar/tsconfig.json similarity index 100% rename from cordova-plugin-statusbar/tsconfig.json rename to types/cordova-plugin-statusbar/tsconfig.json diff --git a/cordova-plugin-vibration/cordova-plugin-vibration-tests.ts b/types/cordova-plugin-vibration/cordova-plugin-vibration-tests.ts similarity index 100% rename from cordova-plugin-vibration/cordova-plugin-vibration-tests.ts rename to types/cordova-plugin-vibration/cordova-plugin-vibration-tests.ts diff --git a/cordova-plugin-vibration/index.d.ts b/types/cordova-plugin-vibration/index.d.ts similarity index 100% rename from cordova-plugin-vibration/index.d.ts rename to types/cordova-plugin-vibration/index.d.ts diff --git a/cordova-plugin-vibration/tsconfig.json b/types/cordova-plugin-vibration/tsconfig.json similarity index 100% rename from cordova-plugin-vibration/tsconfig.json rename to types/cordova-plugin-vibration/tsconfig.json diff --git a/cordova-plugin-websql/cordova-plugin-websql-tests.ts b/types/cordova-plugin-websql/cordova-plugin-websql-tests.ts similarity index 100% rename from cordova-plugin-websql/cordova-plugin-websql-tests.ts rename to types/cordova-plugin-websql/cordova-plugin-websql-tests.ts diff --git a/cordova-plugin-websql/index.d.ts b/types/cordova-plugin-websql/index.d.ts similarity index 100% rename from cordova-plugin-websql/index.d.ts rename to types/cordova-plugin-websql/index.d.ts diff --git a/cordova-plugin-websql/tsconfig.json b/types/cordova-plugin-websql/tsconfig.json similarity index 100% rename from cordova-plugin-websql/tsconfig.json rename to types/cordova-plugin-websql/tsconfig.json diff --git a/cordova-plugin-x-socialsharing/cordova-plugin-x-socialsharing-tests.ts b/types/cordova-plugin-x-socialsharing/cordova-plugin-x-socialsharing-tests.ts old mode 100755 new mode 100644 similarity index 100% rename from cordova-plugin-x-socialsharing/cordova-plugin-x-socialsharing-tests.ts rename to types/cordova-plugin-x-socialsharing/cordova-plugin-x-socialsharing-tests.ts diff --git a/cordova-plugin-x-socialsharing/index.d.ts b/types/cordova-plugin-x-socialsharing/index.d.ts similarity index 100% rename from cordova-plugin-x-socialsharing/index.d.ts rename to types/cordova-plugin-x-socialsharing/index.d.ts diff --git a/cordova-plugin-x-socialsharing/tsconfig.json b/types/cordova-plugin-x-socialsharing/tsconfig.json similarity index 100% rename from cordova-plugin-x-socialsharing/tsconfig.json rename to types/cordova-plugin-x-socialsharing/tsconfig.json diff --git a/cordova-sqlite-storage/cordova-sqlite-storage-tests.ts b/types/cordova-sqlite-storage/cordova-sqlite-storage-tests.ts similarity index 100% rename from cordova-sqlite-storage/cordova-sqlite-storage-tests.ts rename to types/cordova-sqlite-storage/cordova-sqlite-storage-tests.ts diff --git a/cordova-sqlite-storage/index.d.ts b/types/cordova-sqlite-storage/index.d.ts similarity index 100% rename from cordova-sqlite-storage/index.d.ts rename to types/cordova-sqlite-storage/index.d.ts diff --git a/cordova-sqlite-storage/tsconfig.json b/types/cordova-sqlite-storage/tsconfig.json similarity index 100% rename from cordova-sqlite-storage/tsconfig.json rename to types/cordova-sqlite-storage/tsconfig.json diff --git a/cordova-sqlite-storage/tslint.json b/types/cordova-sqlite-storage/tslint.json similarity index 100% rename from cordova-sqlite-storage/tslint.json rename to types/cordova-sqlite-storage/tslint.json diff --git a/cordova.plugins.diagnostic/cordova.plugins.diagnostic-tests.ts b/types/cordova.plugins.diagnostic/cordova.plugins.diagnostic-tests.ts similarity index 100% rename from cordova.plugins.diagnostic/cordova.plugins.diagnostic-tests.ts rename to types/cordova.plugins.diagnostic/cordova.plugins.diagnostic-tests.ts diff --git a/cordova.plugins.diagnostic/index.d.ts b/types/cordova.plugins.diagnostic/index.d.ts similarity index 100% rename from cordova.plugins.diagnostic/index.d.ts rename to types/cordova.plugins.diagnostic/index.d.ts diff --git a/cordova.plugins.diagnostic/tsconfig.json b/types/cordova.plugins.diagnostic/tsconfig.json similarity index 100% rename from cordova.plugins.diagnostic/tsconfig.json rename to types/cordova.plugins.diagnostic/tsconfig.json diff --git a/cordova/cordova-tests.ts b/types/cordova/cordova-tests.ts similarity index 100% rename from cordova/cordova-tests.ts rename to types/cordova/cordova-tests.ts diff --git a/cordova/index.d.ts b/types/cordova/index.d.ts similarity index 100% rename from cordova/index.d.ts rename to types/cordova/index.d.ts diff --git a/cordova/tsconfig.json b/types/cordova/tsconfig.json similarity index 100% rename from cordova/tsconfig.json rename to types/cordova/tsconfig.json diff --git a/cordova_app_version_plugin/README.md b/types/cordova_app_version_plugin/README.md similarity index 100% rename from cordova_app_version_plugin/README.md rename to types/cordova_app_version_plugin/README.md diff --git a/cordova_app_version_plugin/cordova_app_version_plugin-tests.ts b/types/cordova_app_version_plugin/cordova_app_version_plugin-tests.ts similarity index 100% rename from cordova_app_version_plugin/cordova_app_version_plugin-tests.ts rename to types/cordova_app_version_plugin/cordova_app_version_plugin-tests.ts diff --git a/cordova_app_version_plugin/index.d.ts b/types/cordova_app_version_plugin/index.d.ts similarity index 100% rename from cordova_app_version_plugin/index.d.ts rename to types/cordova_app_version_plugin/index.d.ts diff --git a/cordova_app_version_plugin/tsconfig.json b/types/cordova_app_version_plugin/tsconfig.json similarity index 100% rename from cordova_app_version_plugin/tsconfig.json rename to types/cordova_app_version_plugin/tsconfig.json diff --git a/cordovarduino/cordovarduino-tests.ts b/types/cordovarduino/cordovarduino-tests.ts similarity index 100% rename from cordovarduino/cordovarduino-tests.ts rename to types/cordovarduino/cordovarduino-tests.ts diff --git a/cordovarduino/index.d.ts b/types/cordovarduino/index.d.ts similarity index 100% rename from cordovarduino/index.d.ts rename to types/cordovarduino/index.d.ts diff --git a/cordovarduino/tsconfig.json b/types/cordovarduino/tsconfig.json similarity index 100% rename from cordovarduino/tsconfig.json rename to types/cordovarduino/tsconfig.json diff --git a/core-decorators/core-decorators-tests.ts b/types/core-decorators/core-decorators-tests.ts similarity index 94% rename from core-decorators/core-decorators-tests.ts rename to types/core-decorators/core-decorators-tests.ts index 04a22c19cf..ef4659e56b 100644 --- a/core-decorators/core-decorators-tests.ts +++ b/types/core-decorators/core-decorators-tests.ts @@ -1,4 +1,3 @@ - // // @autobind // @@ -35,7 +34,7 @@ class Meal { entree: string = 'steak'; } -var dinner = new Meal(); +const dinner = new Meal(); dinner.entree = 'salmon'; // @@ -99,11 +98,9 @@ person2.facepalmHarder(); // @debounce // - import { debounce } from 'core-decorators'; class Editor { - content = ''; @debounce(500) @@ -119,7 +116,6 @@ class Editor { import { throttle } from 'core-decorators'; class Editor2 { - content = ''; @throttle(500, {leading: false}) @@ -162,8 +158,8 @@ class Meal2 { cost: number = 4.44; } -var dinner2 = new Meal2(); -for (var key in dinner2) { +const dinner2 = new Meal2(); +for (const key in dinner2) { key; // "entree" only, not "cost" } @@ -182,7 +178,7 @@ class Meal3 { entree: string = 'steak'; } -var dinner3 = new Meal3(); +const dinner3 = new Meal3(); Object.defineProperty(dinner3, 'entree', { enumerable: false @@ -196,7 +192,7 @@ Object.defineProperty(dinner3, 'entree', { declare function memoize(func: T): T; import { decorate } from 'core-decorators'; -var count = 0; +let count = 0; class Task { @decorate(memoize) @@ -207,8 +203,8 @@ class Task { } } -var task = new Task(); -var data = [1, 2, 3]; +const task = new Task(); +const data = [1, 2, 3]; task.doSomethingExpensive(data); task.doSomethingExpensive(data); @@ -232,7 +228,7 @@ class Editor3 { hugeBuffer = createHugeBuffer(); } -var editor = new Editor3(); +const editor = new Editor3(); // createHugeBuffer() has not been called yet editor.hugeBuffer; @@ -270,7 +266,7 @@ class Bird { } } -var bird = new Bird(); +const bird = new Bird(); bird.singMatingCall(); // alerts "tweet tweet" @@ -288,17 +284,12 @@ const myConsole = { class Bird2 { @time('sing') - sing() { - } + sing() {} @time('sing2', myConsole) - sing2() { - - } + sing2() {} } -var bird2 = new Bird2(); +const bird2 = new Bird2(); bird2.sing(); // console.time label will be 'sing-0' bird2.sing(); // console.time label will be 'sing-1' - - diff --git a/core-decorators/index.d.ts b/types/core-decorators/index.d.ts similarity index 100% rename from core-decorators/index.d.ts rename to types/core-decorators/index.d.ts diff --git a/core-decorators/tsconfig.json b/types/core-decorators/tsconfig.json similarity index 100% rename from core-decorators/tsconfig.json rename to types/core-decorators/tsconfig.json diff --git a/core-decorators/tslint.json b/types/core-decorators/tslint.json similarity index 100% rename from core-decorators/tslint.json rename to types/core-decorators/tslint.json diff --git a/core-js/core-js-tests.ts b/types/core-js/core-js-tests.ts similarity index 99% rename from core-js/core-js-tests.ts rename to types/core-js/core-js-tests.ts index 0614b117b9..3f585db33e 100644 --- a/core-js/core-js-tests.ts +++ b/types/core-js/core-js-tests.ts @@ -1,5 +1,3 @@ - - interface Point { x: number; y: number; } interface Point3D extends Point { z: number; } diff --git a/core-js/index.d.ts b/types/core-js/index.d.ts similarity index 77% rename from core-js/index.d.ts rename to types/core-js/index.d.ts index 4191cd11aa..0bbe4974ae 100644 --- a/core-js/index.d.ts +++ b/types/core-js/index.d.ts @@ -456,7 +456,7 @@ interface String { declare function delay(msec: number): Promise; declare namespace core { - var version: string; + const version: string; namespace Reflect { function apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; @@ -475,7 +475,7 @@ declare namespace core { function setPrototypeOf(target: any, proto: any): boolean; } - var Object: { + const Object: { getPrototypeOf(o: any): any; getOwnPropertyNames(o: any): string[]; create(o: any, properties?: PropertyDescriptorMap): any; @@ -502,12 +502,12 @@ declare namespace core { make(proto: T, mixin?: any): T; }; - var Function: { + const Function: { bind(target: Function, thisArg: any, ...argArray: any[]): any; part(target: Function, ...args: any[]): any; }; - var Array: { + const Array: { from(arrayLike: ArrayLike | Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; from(arrayLike: ArrayLike | Iterable): T[]; of(...items: T[]): T[]; @@ -544,7 +544,7 @@ declare namespace core { turn(array: ArrayLike, callbackfn: (memo: U, value: T, index: number, array: T[]) => void, memo?: U): U; }; - var String: { + const String: { codePointAt(text: string, pos: number): number; includes(text: string, searchString: string, position?: number): boolean; endsWith(text: string, searchString: string, endPosition?: number): boolean; @@ -559,14 +559,14 @@ declare namespace core { unescapeHTML(text: string): string; }; - var Date: { + const Date: { now(): number; toISOString(date: Date): string; format(date: Date, template: string, locale?: string): string; formatUTC(date: Date, template: string, locale?: string): string; }; - var Number: { + const Number: { EPSILON: number; isFinite(number: number): boolean; isInteger(number: number): boolean; @@ -596,7 +596,7 @@ declare namespace core { random(lim?: number): number; }; - var Math: { + const Math: { clz32(x: number): number; imul(x: number, y: number): number; sign(x: number): number; @@ -616,20 +616,20 @@ declare namespace core { cbrt(x: number): number; }; - var RegExp: { + const RegExp: { escape(str: string): string; }; - var Map: MapConstructor; - var Set: SetConstructor; - var WeakMap: WeakMapConstructor; - var WeakSet: WeakSetConstructor; - var Promise: PromiseConstructor; - var Symbol: SymbolConstructor; - var Dict: DictConstructor; - var global: any; - var log: Log; - var _: boolean; + const Map: MapConstructor; + const Set: SetConstructor; + const WeakMap: WeakMapConstructor; + const WeakSet: WeakSetConstructor; + const Promise: PromiseConstructor; + const Symbol: SymbolConstructor; + const Dict: DictConstructor; + const global: any; + const log: Log; + const _: boolean; function setTimeout(handler: any, timeout?: any, ...args: any[]): number; @@ -671,47 +671,47 @@ declare module "core-js/core/$for" { export = $for; } declare module "core-js/core/_" { - var _: typeof core._; + const _: typeof core._; export = _; } declare module "core-js/core/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/core/date" { - var Date: typeof core.Date; + const Date: typeof core.Date; export = Date; } declare module "core-js/core/delay" { - var delay: typeof core.delay; + const delay: typeof core.delay; export = delay; } declare module "core-js/core/dict" { - var Dict: typeof core.Dict; + const Dict: typeof core.Dict; export = Dict; } declare module "core-js/core/function" { - var Function: typeof core.Function; + const Function: typeof core.Function; export = Function; } declare module "core-js/core/global" { - var global: typeof core.global; + const global: typeof core.global; export = global; } declare module "core-js/core/log" { - var log: typeof core.log; + const log: typeof core.log; export = log; } declare module "core-js/core/number" { - var Number: typeof core.Number; + const Number: typeof core.Number; export = Number; } declare module "core-js/core/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/core/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/fn/$for" { @@ -719,613 +719,613 @@ declare module "core-js/fn/$for" { export = $for; } declare module "core-js/fn/_" { - var _: typeof core._; + const _: typeof core._; export = _; } declare module "core-js/fn/clear-immediate" { - var clearImmediate: typeof core.clearImmediate; + const clearImmediate: typeof core.clearImmediate; export = clearImmediate; } declare module "core-js/fn/delay" { - var delay: typeof core.delay; + const delay: typeof core.delay; export = delay; } declare module "core-js/fn/dict" { - var Dict: typeof core.Dict; + const Dict: typeof core.Dict; export = Dict; } declare module "core-js/fn/get-iterator" { - var getIterator: typeof core.getIterator; + const getIterator: typeof core.getIterator; export = getIterator; } declare module "core-js/fn/global" { - var global: typeof core.global; + const global: typeof core.global; export = global; } declare module "core-js/fn/is-iterable" { - var isIterable: typeof core.isIterable; + const isIterable: typeof core.isIterable; export = isIterable; } declare module "core-js/fn/log" { - var log: typeof core.log; + const log: typeof core.log; export = log; } declare module "core-js/fn/map" { - var Map: typeof core.Map; + const Map: typeof core.Map; export = Map; } declare module "core-js/fn/promise" { - var Promise: typeof core.Promise; + const Promise: typeof core.Promise; export = Promise; } declare module "core-js/fn/set" { - var Set: typeof core.Set; + const Set: typeof core.Set; export = Set; } declare module "core-js/fn/set-immediate" { - var setImmediate: typeof core.setImmediate; + const setImmediate: typeof core.setImmediate; export = setImmediate; } declare module "core-js/fn/set-interval" { - var setInterval: typeof core.setInterval; + const setInterval: typeof core.setInterval; export = setInterval; } declare module "core-js/fn/set-timeout" { - var setTimeout: typeof core.setTimeout; + const setTimeout: typeof core.setTimeout; export = setTimeout; } declare module "core-js/fn/weak-map" { - var WeakMap: typeof core.WeakMap; + const WeakMap: typeof core.WeakMap; export = WeakMap; } declare module "core-js/fn/weak-set" { - var WeakSet: typeof core.WeakSet; + const WeakSet: typeof core.WeakSet; export = WeakSet; } declare module "core-js/fn/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/fn/array/concat" { - var concat: typeof core.Array.concat; + const concat: typeof core.Array.concat; export = concat; } declare module "core-js/fn/array/copy-within" { - var copyWithin: typeof core.Array.copyWithin; + const copyWithin: typeof core.Array.copyWithin; export = copyWithin; } declare module "core-js/fn/array/entries" { - var entries: typeof core.Array.entries; + const entries: typeof core.Array.entries; export = entries; } declare module "core-js/fn/array/every" { - var every: typeof core.Array.every; + const every: typeof core.Array.every; export = every; } declare module "core-js/fn/array/fill" { - var fill: typeof core.Array.fill; + const fill: typeof core.Array.fill; export = fill; } declare module "core-js/fn/array/filter" { - var filter: typeof core.Array.filter; + const filter: typeof core.Array.filter; export = filter; } declare module "core-js/fn/array/find" { - var find: typeof core.Array.find; + const find: typeof core.Array.find; export = find; } declare module "core-js/fn/array/find-index" { - var findIndex: typeof core.Array.findIndex; + const findIndex: typeof core.Array.findIndex; export = findIndex; } declare module "core-js/fn/array/for-each" { - var forEach: typeof core.Array.forEach; + const forEach: typeof core.Array.forEach; export = forEach; } declare module "core-js/fn/array/from" { - var from: typeof core.Array.from; + const from: typeof core.Array.from; export = from; } declare module "core-js/fn/array/includes" { - var includes: typeof core.Array.includes; + const includes: typeof core.Array.includes; export = includes; } declare module "core-js/fn/array/index-of" { - var indexOf: typeof core.Array.indexOf; + const indexOf: typeof core.Array.indexOf; export = indexOf; } declare module "core-js/fn/array/join" { - var join: typeof core.Array.join; + const join: typeof core.Array.join; export = join; } declare module "core-js/fn/array/keys" { - var keys: typeof core.Array.keys; + const keys: typeof core.Array.keys; export = keys; } declare module "core-js/fn/array/last-index-of" { - var lastIndexOf: typeof core.Array.lastIndexOf; + const lastIndexOf: typeof core.Array.lastIndexOf; export = lastIndexOf; } declare module "core-js/fn/array/map" { - var map: typeof core.Array.map; + const map: typeof core.Array.map; export = map; } declare module "core-js/fn/array/of" { - var of: typeof core.Array.of; + const of: typeof core.Array.of; export = of; } declare module "core-js/fn/array/pop" { - var pop: typeof core.Array.pop; + const pop: typeof core.Array.pop; export = pop; } declare module "core-js/fn/array/push" { - var push: typeof core.Array.push; + const push: typeof core.Array.push; export = push; } declare module "core-js/fn/array/reduce" { - var reduce: typeof core.Array.reduce; + const reduce: typeof core.Array.reduce; export = reduce; } declare module "core-js/fn/array/reduce-right" { - var reduceRight: typeof core.Array.reduceRight; + const reduceRight: typeof core.Array.reduceRight; export = reduceRight; } declare module "core-js/fn/array/reverse" { - var reverse: typeof core.Array.reverse; + const reverse: typeof core.Array.reverse; export = reverse; } declare module "core-js/fn/array/shift" { - var shift: typeof core.Array.shift; + const shift: typeof core.Array.shift; export = shift; } declare module "core-js/fn/array/slice" { - var slice: typeof core.Array.slice; + const slice: typeof core.Array.slice; export = slice; } declare module "core-js/fn/array/some" { - var some: typeof core.Array.some; + const some: typeof core.Array.some; export = some; } declare module "core-js/fn/array/sort" { - var sort: typeof core.Array.sort; + const sort: typeof core.Array.sort; export = sort; } declare module "core-js/fn/array/splice" { - var splice: typeof core.Array.splice; + const splice: typeof core.Array.splice; export = splice; } declare module "core-js/fn/array/turn" { - var turn: typeof core.Array.turn; + const turn: typeof core.Array.turn; export = turn; } declare module "core-js/fn/array/unshift" { - var unshift: typeof core.Array.unshift; + const unshift: typeof core.Array.unshift; export = unshift; } declare module "core-js/fn/array/values" { - var values: typeof core.Array.values; + const values: typeof core.Array.values; export = values; } declare module "core-js/fn/date" { - var Date: typeof core.Date; + const Date: typeof core.Date; export = Date; } declare module "core-js/fn/date/add-locale" { - var addLocale: typeof core.addLocale; + const addLocale: typeof core.addLocale; export = addLocale; } declare module "core-js/fn/date/format" { - var format: typeof core.Date.format; + const format: typeof core.Date.format; export = format; } declare module "core-js/fn/date/formatUTC" { - var formatUTC: typeof core.Date.formatUTC; + const formatUTC: typeof core.Date.formatUTC; export = formatUTC; } declare module "core-js/fn/function" { - var Function: typeof core.Function; + const Function: typeof core.Function; export = Function; } declare module "core-js/fn/function/has-instance" { - var hasInstance: (value: any) => boolean; + const hasInstance: (value: any) => boolean; export = hasInstance; } declare module "core-js/fn/function/name" { } declare module "core-js/fn/function/part" { - var part: typeof core.Function.part; + const part: typeof core.Function.part; export = part; } declare module "core-js/fn/math" { - var Math: typeof core.Math; + const Math: typeof core.Math; export = Math; } declare module "core-js/fn/math/acosh" { - var acosh: typeof core.Math.acosh; + const acosh: typeof core.Math.acosh; export = acosh; } declare module "core-js/fn/math/asinh" { - var asinh: typeof core.Math.asinh; + const asinh: typeof core.Math.asinh; export = asinh; } declare module "core-js/fn/math/atanh" { - var atanh: typeof core.Math.atanh; + const atanh: typeof core.Math.atanh; export = atanh; } declare module "core-js/fn/math/cbrt" { - var cbrt: typeof core.Math.cbrt; + const cbrt: typeof core.Math.cbrt; export = cbrt; } declare module "core-js/fn/math/clz32" { - var clz32: typeof core.Math.clz32; + const clz32: typeof core.Math.clz32; export = clz32; } declare module "core-js/fn/math/cosh" { - var cosh: typeof core.Math.cosh; + const cosh: typeof core.Math.cosh; export = cosh; } declare module "core-js/fn/math/expm1" { - var expm1: typeof core.Math.expm1; + const expm1: typeof core.Math.expm1; export = expm1; } declare module "core-js/fn/math/fround" { - var fround: typeof core.Math.fround; + const fround: typeof core.Math.fround; export = fround; } declare module "core-js/fn/math/hypot" { - var hypot: typeof core.Math.hypot; + const hypot: typeof core.Math.hypot; export = hypot; } declare module "core-js/fn/math/imul" { - var imul: typeof core.Math.imul; + const imul: typeof core.Math.imul; export = imul; } declare module "core-js/fn/math/log10" { - var log10: typeof core.Math.log10; + const log10: typeof core.Math.log10; export = log10; } declare module "core-js/fn/math/log1p" { - var log1p: typeof core.Math.log1p; + const log1p: typeof core.Math.log1p; export = log1p; } declare module "core-js/fn/math/log2" { - var log2: typeof core.Math.log2; + const log2: typeof core.Math.log2; export = log2; } declare module "core-js/fn/math/sign" { - var sign: typeof core.Math.sign; + const sign: typeof core.Math.sign; export = sign; } declare module "core-js/fn/math/sinh" { - var sinh: typeof core.Math.sinh; + const sinh: typeof core.Math.sinh; export = sinh; } declare module "core-js/fn/math/tanh" { - var tanh: typeof core.Math.tanh; + const tanh: typeof core.Math.tanh; export = tanh; } declare module "core-js/fn/math/trunc" { - var trunc: typeof core.Math.trunc; + const trunc: typeof core.Math.trunc; export = trunc; } declare module "core-js/fn/number" { - var Number: typeof core.Number; + const Number: typeof core.Number; export = Number; } declare module "core-js/fn/number/epsilon" { - var EPSILON: typeof core.Number.EPSILON; + const EPSILON: typeof core.Number.EPSILON; export = EPSILON; } declare module "core-js/fn/number/is-finite" { - var isFinite: typeof core.Number.isFinite; + const isFinite: typeof core.Number.isFinite; export = isFinite; } declare module "core-js/fn/number/is-integer" { - var isInteger: typeof core.Number.isInteger; + const isInteger: typeof core.Number.isInteger; export = isInteger; } declare module "core-js/fn/number/is-nan" { - var isNaN: typeof core.Number.isNaN; + const isNaN: typeof core.Number.isNaN; export = isNaN; } declare module "core-js/fn/number/is-safe-integer" { - var isSafeInteger: typeof core.Number.isSafeInteger; + const isSafeInteger: typeof core.Number.isSafeInteger; export = isSafeInteger; } declare module "core-js/fn/number/max-safe-integer" { - var MAX_SAFE_INTEGER: typeof core.Number.MAX_SAFE_INTEGER; + const MAX_SAFE_INTEGER: typeof core.Number.MAX_SAFE_INTEGER; export = MAX_SAFE_INTEGER; } declare module "core-js/fn/number/min-safe-integer" { - var MIN_SAFE_INTEGER: typeof core.Number.MIN_SAFE_INTEGER; + const MIN_SAFE_INTEGER: typeof core.Number.MIN_SAFE_INTEGER; export = MIN_SAFE_INTEGER; } declare module "core-js/fn/number/parse-float" { - var parseFloat: typeof core.Number.parseFloat; + const parseFloat: typeof core.Number.parseFloat; export = parseFloat; } declare module "core-js/fn/number/parse-int" { - var parseInt: typeof core.Number.parseInt; + const parseInt: typeof core.Number.parseInt; export = parseInt; } declare module "core-js/fn/number/random" { - var random: typeof core.Number.random; + const random: typeof core.Number.random; export = random; } declare module "core-js/fn/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/fn/object/assign" { - var assign: typeof core.Object.assign; + const assign: typeof core.Object.assign; export = assign; } declare module "core-js/fn/object/classof" { - var classof: typeof core.Object.classof; + const classof: typeof core.Object.classof; export = classof; } declare module "core-js/fn/object/create" { - var create: typeof core.Object.create; + const create: typeof core.Object.create; export = create; } declare module "core-js/fn/object/define" { - var define: typeof core.Object.define; + const define: typeof core.Object.define; export = define; } declare module "core-js/fn/object/define-properties" { - var defineProperties: typeof core.Object.defineProperties; + const defineProperties: typeof core.Object.defineProperties; export = defineProperties; } declare module "core-js/fn/object/define-property" { - var defineProperty: typeof core.Object.defineProperty; + const defineProperty: typeof core.Object.defineProperty; export = defineProperty; } declare module "core-js/fn/object/entries" { - var entries: typeof core.Object.entries; + const entries: typeof core.Object.entries; export = entries; } declare module "core-js/fn/object/freeze" { - var freeze: typeof core.Object.freeze; + const freeze: typeof core.Object.freeze; export = freeze; } declare module "core-js/fn/object/get-own-property-descriptor" { - var getOwnPropertyDescriptor: typeof core.Object.getOwnPropertyDescriptor; + const getOwnPropertyDescriptor: typeof core.Object.getOwnPropertyDescriptor; export = getOwnPropertyDescriptor; } declare module "core-js/fn/object/get-own-property-descriptors" { - var getOwnPropertyDescriptors: typeof core.Object.getOwnPropertyDescriptors; + const getOwnPropertyDescriptors: typeof core.Object.getOwnPropertyDescriptors; export = getOwnPropertyDescriptors; } declare module "core-js/fn/object/get-own-property-names" { - var getOwnPropertyNames: typeof core.Object.getOwnPropertyNames; + const getOwnPropertyNames: typeof core.Object.getOwnPropertyNames; export = getOwnPropertyNames; } declare module "core-js/fn/object/get-own-property-symbols" { - var getOwnPropertySymbols: typeof core.Object.getOwnPropertySymbols; + const getOwnPropertySymbols: typeof core.Object.getOwnPropertySymbols; export = getOwnPropertySymbols; } declare module "core-js/fn/object/get-prototype-of" { - var getPrototypeOf: typeof core.Object.getPrototypeOf; + const getPrototypeOf: typeof core.Object.getPrototypeOf; export = getPrototypeOf; } declare module "core-js/fn/object/is" { - var is: typeof core.Object.is; + const is: typeof core.Object.is; export = is; } declare module "core-js/fn/object/is-extensible" { - var isExtensible: typeof core.Object.isExtensible; + const isExtensible: typeof core.Object.isExtensible; export = isExtensible; } declare module "core-js/fn/object/is-frozen" { - var isFrozen: typeof core.Object.isFrozen; + const isFrozen: typeof core.Object.isFrozen; export = isFrozen; } declare module "core-js/fn/object/is-object" { - var isObject: typeof core.Object.isObject; + const isObject: typeof core.Object.isObject; export = isObject; } declare module "core-js/fn/object/is-sealed" { - var isSealed: typeof core.Object.isSealed; + const isSealed: typeof core.Object.isSealed; export = isSealed; } declare module "core-js/fn/object/keys" { - var keys: typeof core.Object.keys; + const keys: typeof core.Object.keys; export = keys; } declare module "core-js/fn/object/make" { - var make: typeof core.Object.make; + const make: typeof core.Object.make; export = make; } declare module "core-js/fn/object/prevent-extensions" { - var preventExtensions: typeof core.Object.preventExtensions; + const preventExtensions: typeof core.Object.preventExtensions; export = preventExtensions; } declare module "core-js/fn/object/seal" { - var seal: typeof core.Object.seal; + const seal: typeof core.Object.seal; export = seal; } declare module "core-js/fn/object/set-prototype-of" { - var setPrototypeOf: typeof core.Object.setPrototypeOf; + const setPrototypeOf: typeof core.Object.setPrototypeOf; export = setPrototypeOf; } declare module "core-js/fn/object/values" { - var values: typeof core.Object.values; + const values: typeof core.Object.values; export = values; } declare module "core-js/fn/reflect" { - var Reflect: typeof core.Reflect; + const Reflect: typeof core.Reflect; export = Reflect; } declare module "core-js/fn/reflect/apply" { - var apply: typeof core.Reflect.apply; + const apply: typeof core.Reflect.apply; export = apply; } declare module "core-js/fn/reflect/construct" { - var construct: typeof core.Reflect.construct; + const construct: typeof core.Reflect.construct; export = construct; } declare module "core-js/fn/reflect/define-property" { - var defineProperty: typeof core.Reflect.defineProperty; + const defineProperty: typeof core.Reflect.defineProperty; export = defineProperty; } declare module "core-js/fn/reflect/delete-property" { - var deleteProperty: typeof core.Reflect.deleteProperty; + const deleteProperty: typeof core.Reflect.deleteProperty; export = deleteProperty; } declare module "core-js/fn/reflect/enumerate" { - var enumerate: typeof core.Reflect.enumerate; + const enumerate: typeof core.Reflect.enumerate; export = enumerate; } declare module "core-js/fn/reflect/get" { - var get: typeof core.Reflect.get; + const get: typeof core.Reflect.get; export = get; } declare module "core-js/fn/reflect/get-own-property-descriptor" { - var getOwnPropertyDescriptor: typeof core.Reflect.getOwnPropertyDescriptor; + const getOwnPropertyDescriptor: typeof core.Reflect.getOwnPropertyDescriptor; export = getOwnPropertyDescriptor; } declare module "core-js/fn/reflect/get-prototype-of" { - var getPrototypeOf: typeof core.Reflect.getPrototypeOf; + const getPrototypeOf: typeof core.Reflect.getPrototypeOf; export = getPrototypeOf; } declare module "core-js/fn/reflect/has" { - var has: typeof core.Reflect.has; + const has: typeof core.Reflect.has; export = has; } declare module "core-js/fn/reflect/is-extensible" { - var isExtensible: typeof core.Reflect.isExtensible; + const isExtensible: typeof core.Reflect.isExtensible; export = isExtensible; } declare module "core-js/fn/reflect/own-keys" { - var ownKeys: typeof core.Reflect.ownKeys; + const ownKeys: typeof core.Reflect.ownKeys; export = ownKeys; } declare module "core-js/fn/reflect/prevent-extensions" { - var preventExtensions: typeof core.Reflect.preventExtensions; + const preventExtensions: typeof core.Reflect.preventExtensions; export = preventExtensions; } declare module "core-js/fn/reflect/set" { - var set: typeof core.Reflect.set; + const set: typeof core.Reflect.set; export = set; } declare module "core-js/fn/reflect/set-prototype-of" { - var setPrototypeOf: typeof core.Reflect.setPrototypeOf; + const setPrototypeOf: typeof core.Reflect.setPrototypeOf; export = setPrototypeOf; } declare module "core-js/fn/regexp" { - var RegExp: typeof core.RegExp; + const RegExp: typeof core.RegExp; export = RegExp; } declare module "core-js/fn/regexp/escape" { - var escape: typeof core.RegExp.escape; + const escape: typeof core.RegExp.escape; export = escape; } declare module "core-js/fn/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/fn/string/at" { - var at: typeof core.String.at; + const at: typeof core.String.at; export = at; } declare module "core-js/fn/string/code-point-at" { - var codePointAt: typeof core.String.codePointAt; + const codePointAt: typeof core.String.codePointAt; export = codePointAt; } declare module "core-js/fn/string/ends-with" { - var endsWith: typeof core.String.endsWith; + const endsWith: typeof core.String.endsWith; export = endsWith; } declare module "core-js/fn/string/escape-html" { - var escapeHTML: typeof core.String.escapeHTML; + const escapeHTML: typeof core.String.escapeHTML; export = escapeHTML; } declare module "core-js/fn/string/from-code-point" { - var fromCodePoint: typeof core.String.fromCodePoint; + const fromCodePoint: typeof core.String.fromCodePoint; export = fromCodePoint; } declare module "core-js/fn/string/includes" { - var includes: typeof core.String.includes; + const includes: typeof core.String.includes; export = includes; } declare module "core-js/fn/string/lpad" { - var lpad: typeof core.String.lpad; + const lpad: typeof core.String.lpad; export = lpad; } declare module "core-js/fn/string/raw" { - var raw: typeof core.String.raw; + const raw: typeof core.String.raw; export = raw; } declare module "core-js/fn/string/repeat" { - var repeat: typeof core.String.repeat; + const repeat: typeof core.String.repeat; export = repeat; } declare module "core-js/fn/string/rpad" { - var rpad: typeof core.String.rpad; + const rpad: typeof core.String.rpad; export = rpad; } declare module "core-js/fn/string/starts-with" { - var startsWith: typeof core.String.startsWith; + const startsWith: typeof core.String.startsWith; export = startsWith; } declare module "core-js/fn/string/unescape-html" { - var unescapeHTML: typeof core.String.unescapeHTML; + const unescapeHTML: typeof core.String.unescapeHTML; export = unescapeHTML; } declare module "core-js/fn/symbol" { - var Symbol: typeof core.Symbol; + const Symbol: typeof core.Symbol; export = Symbol; } declare module "core-js/fn/symbol/for" { - var _for: typeof core.Symbol.for; + const _for: typeof core.Symbol.for; export = _for; } declare module "core-js/fn/symbol/has-instance" { - var hasInstance: typeof core.Symbol.hasInstance; + const hasInstance: typeof core.Symbol.hasInstance; export = hasInstance; } declare module "core-js/fn/symbol/is-concat-spreadable" { - var isConcatSpreadable: typeof core.Symbol.isConcatSpreadable; + const isConcatSpreadable: typeof core.Symbol.isConcatSpreadable; export = isConcatSpreadable; } declare module "core-js/fn/symbol/iterator" { - var iterator: typeof core.Symbol.iterator; + const iterator: typeof core.Symbol.iterator; export = iterator; } declare module "core-js/fn/symbol/key-for" { - var keyFor: typeof core.Symbol.keyFor; + const keyFor: typeof core.Symbol.keyFor; export = keyFor; } declare module "core-js/fn/symbol/match" { - var match: typeof core.Symbol.match; + const match: typeof core.Symbol.match; export = match; } declare module "core-js/fn/symbol/replace" { - var replace: typeof core.Symbol.replace; + const replace: typeof core.Symbol.replace; export = replace; } declare module "core-js/fn/symbol/search" { - var search: typeof core.Symbol.search; + const search: typeof core.Symbol.search; export = search; } declare module "core-js/fn/symbol/species" { - var species: typeof core.Symbol.species; + const species: typeof core.Symbol.species; export = species; } declare module "core-js/fn/symbol/split" { - var split: typeof core.Symbol.split; + const split: typeof core.Symbol.split; export = split; } declare module "core-js/fn/symbol/to-primitive" { - var toPrimitive: typeof core.Symbol.toPrimitive; + const toPrimitive: typeof core.Symbol.toPrimitive; export = toPrimitive; } declare module "core-js/fn/symbol/to-string-tag" { - var toStringTag: typeof core.Symbol.toStringTag; + const toStringTag: typeof core.Symbol.toStringTag; export = toStringTag; } declare module "core-js/fn/symbol/unscopables" { - var unscopables: typeof core.Symbol.unscopables; + const unscopables: typeof core.Symbol.unscopables; export = unscopables; } declare module "core-js/es5" { @@ -1335,93 +1335,93 @@ declare module "core-js/es6" { export = core; } declare module "core-js/es6/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/es6/function" { - var Function: typeof core.Function; + const Function: typeof core.Function; export = Function; } declare module "core-js/es6/map" { - var Map: typeof core.Map; + const Map: typeof core.Map; export = Map; } declare module "core-js/es6/math" { - var Math: typeof core.Math; + const Math: typeof core.Math; export = Math; } declare module "core-js/es6/number" { - var Number: typeof core.Number; + const Number: typeof core.Number; export = Number; } declare module "core-js/es6/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/es6/promise" { - var Promise: typeof core.Promise; + const Promise: typeof core.Promise; export = Promise; } declare module "core-js/es6/reflect" { - var Reflect: typeof core.Reflect; + const Reflect: typeof core.Reflect; export = Reflect; } declare module "core-js/es6/regexp" { - var RegExp: typeof core.RegExp; + const RegExp: typeof core.RegExp; export = RegExp; } declare module "core-js/es6/set" { - var Set: typeof core.Set; + const Set: typeof core.Set; export = Set; } declare module "core-js/es6/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/es6/symbol" { - var Symbol: typeof core.Symbol; + const Symbol: typeof core.Symbol; export = Symbol; } declare module "core-js/es6/weak-map" { - var WeakMap: typeof core.WeakMap; + const WeakMap: typeof core.WeakMap; export = WeakMap; } declare module "core-js/es6/weak-set" { - var WeakSet: typeof core.WeakSet; + const WeakSet: typeof core.WeakSet; export = WeakSet; } declare module "core-js/es7" { export = core; } declare module "core-js/es7/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/es7/map" { - var Map: typeof core.Map; + const Map: typeof core.Map; export = Map; } declare module "core-js/es7/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/es7/regexp" { - var RegExp: typeof core.RegExp; + const RegExp: typeof core.RegExp; export = RegExp; } declare module "core-js/es7/set" { - var Set: typeof core.Set; + const Set: typeof core.Set; export = Set; } declare module "core-js/es7/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/js" { export = core; } declare module "core-js/js/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/web" { @@ -1450,47 +1450,47 @@ declare module "core-js/library/core/$for" { export = $for; } declare module "core-js/library/core/_" { - var _: typeof core._; + const _: typeof core._; export = _; } declare module "core-js/library/core/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/library/core/date" { - var Date: typeof core.Date; + const Date: typeof core.Date; export = Date; } declare module "core-js/library/core/delay" { - var delay: typeof core.delay; + const delay: typeof core.delay; export = delay; } declare module "core-js/library/core/dict" { - var Dict: typeof core.Dict; + const Dict: typeof core.Dict; export = Dict; } declare module "core-js/library/core/function" { - var Function: typeof core.Function; + const Function: typeof core.Function; export = Function; } declare module "core-js/library/core/global" { - var global: typeof core.global; + const global: typeof core.global; export = global; } declare module "core-js/library/core/log" { - var log: typeof core.log; + const log: typeof core.log; export = log; } declare module "core-js/library/core/number" { - var Number: typeof core.Number; + const Number: typeof core.Number; export = Number; } declare module "core-js/library/core/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/library/core/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/library/fn/$for" { @@ -1498,613 +1498,613 @@ declare module "core-js/library/fn/$for" { export = $for; } declare module "core-js/library/fn/_" { - var _: typeof core._; + const _: typeof core._; export = _; } declare module "core-js/library/fn/clear-immediate" { - var clearImmediate: typeof core.clearImmediate; + const clearImmediate: typeof core.clearImmediate; export = clearImmediate; } declare module "core-js/library/fn/delay" { - var delay: typeof core.delay; + const delay: typeof core.delay; export = delay; } declare module "core-js/library/fn/dict" { - var Dict: typeof core.Dict; + const Dict: typeof core.Dict; export = Dict; } declare module "core-js/library/fn/get-iterator" { - var getIterator: typeof core.getIterator; + const getIterator: typeof core.getIterator; export = getIterator; } declare module "core-js/library/fn/global" { - var global: typeof core.global; + const global: typeof core.global; export = global; } declare module "core-js/library/fn/is-iterable" { - var isIterable: typeof core.isIterable; + const isIterable: typeof core.isIterable; export = isIterable; } declare module "core-js/library/fn/log" { - var log: typeof core.log; + const log: typeof core.log; export = log; } declare module "core-js/library/fn/map" { - var Map: typeof core.Map; + const Map: typeof core.Map; export = Map; } declare module "core-js/library/fn/promise" { - var Promise: typeof core.Promise; + const Promise: typeof core.Promise; export = Promise; } declare module "core-js/library/fn/set" { - var Set: typeof core.Set; + const Set: typeof core.Set; export = Set; } declare module "core-js/library/fn/set-immediate" { - var setImmediate: typeof core.setImmediate; + const setImmediate: typeof core.setImmediate; export = setImmediate; } declare module "core-js/library/fn/set-interval" { - var setInterval: typeof core.setInterval; + const setInterval: typeof core.setInterval; export = setInterval; } declare module "core-js/library/fn/set-timeout" { - var setTimeout: typeof core.setTimeout; + const setTimeout: typeof core.setTimeout; export = setTimeout; } declare module "core-js/library/fn/weak-map" { - var WeakMap: typeof core.WeakMap; + const WeakMap: typeof core.WeakMap; export = WeakMap; } declare module "core-js/library/fn/weak-set" { - var WeakSet: typeof core.WeakSet; + const WeakSet: typeof core.WeakSet; export = WeakSet; } declare module "core-js/library/fn/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/library/fn/array/concat" { - var concat: typeof core.Array.concat; + const concat: typeof core.Array.concat; export = concat; } declare module "core-js/library/fn/array/copy-within" { - var copyWithin: typeof core.Array.copyWithin; + const copyWithin: typeof core.Array.copyWithin; export = copyWithin; } declare module "core-js/library/fn/array/entries" { - var entries: typeof core.Array.entries; + const entries: typeof core.Array.entries; export = entries; } declare module "core-js/library/fn/array/every" { - var every: typeof core.Array.every; + const every: typeof core.Array.every; export = every; } declare module "core-js/library/fn/array/fill" { - var fill: typeof core.Array.fill; + const fill: typeof core.Array.fill; export = fill; } declare module "core-js/library/fn/array/filter" { - var filter: typeof core.Array.filter; + const filter: typeof core.Array.filter; export = filter; } declare module "core-js/library/fn/array/find" { - var find: typeof core.Array.find; + const find: typeof core.Array.find; export = find; } declare module "core-js/library/fn/array/find-index" { - var findIndex: typeof core.Array.findIndex; + const findIndex: typeof core.Array.findIndex; export = findIndex; } declare module "core-js/library/fn/array/for-each" { - var forEach: typeof core.Array.forEach; + const forEach: typeof core.Array.forEach; export = forEach; } declare module "core-js/library/fn/array/from" { - var from: typeof core.Array.from; + const from: typeof core.Array.from; export = from; } declare module "core-js/library/fn/array/includes" { - var includes: typeof core.Array.includes; + const includes: typeof core.Array.includes; export = includes; } declare module "core-js/library/fn/array/index-of" { - var indexOf: typeof core.Array.indexOf; + const indexOf: typeof core.Array.indexOf; export = indexOf; } declare module "core-js/library/fn/array/join" { - var join: typeof core.Array.join; + const join: typeof core.Array.join; export = join; } declare module "core-js/library/fn/array/keys" { - var keys: typeof core.Array.keys; + const keys: typeof core.Array.keys; export = keys; } declare module "core-js/library/fn/array/last-index-of" { - var lastIndexOf: typeof core.Array.lastIndexOf; + const lastIndexOf: typeof core.Array.lastIndexOf; export = lastIndexOf; } declare module "core-js/library/fn/array/map" { - var map: typeof core.Array.map; + const map: typeof core.Array.map; export = map; } declare module "core-js/library/fn/array/of" { - var of: typeof core.Array.of; + const of: typeof core.Array.of; export = of; } declare module "core-js/library/fn/array/pop" { - var pop: typeof core.Array.pop; + const pop: typeof core.Array.pop; export = pop; } declare module "core-js/library/fn/array/push" { - var push: typeof core.Array.push; + const push: typeof core.Array.push; export = push; } declare module "core-js/library/fn/array/reduce" { - var reduce: typeof core.Array.reduce; + const reduce: typeof core.Array.reduce; export = reduce; } declare module "core-js/library/fn/array/reduce-right" { - var reduceRight: typeof core.Array.reduceRight; + const reduceRight: typeof core.Array.reduceRight; export = reduceRight; } declare module "core-js/library/fn/array/reverse" { - var reverse: typeof core.Array.reverse; + const reverse: typeof core.Array.reverse; export = reverse; } declare module "core-js/library/fn/array/shift" { - var shift: typeof core.Array.shift; + const shift: typeof core.Array.shift; export = shift; } declare module "core-js/library/fn/array/slice" { - var slice: typeof core.Array.slice; + const slice: typeof core.Array.slice; export = slice; } declare module "core-js/library/fn/array/some" { - var some: typeof core.Array.some; + const some: typeof core.Array.some; export = some; } declare module "core-js/library/fn/array/sort" { - var sort: typeof core.Array.sort; + const sort: typeof core.Array.sort; export = sort; } declare module "core-js/library/fn/array/splice" { - var splice: typeof core.Array.splice; + const splice: typeof core.Array.splice; export = splice; } declare module "core-js/library/fn/array/turn" { - var turn: typeof core.Array.turn; + const turn: typeof core.Array.turn; export = turn; } declare module "core-js/library/fn/array/unshift" { - var unshift: typeof core.Array.unshift; + const unshift: typeof core.Array.unshift; export = unshift; } declare module "core-js/library/fn/array/values" { - var values: typeof core.Array.values; + const values: typeof core.Array.values; export = values; } declare module "core-js/library/fn/date" { - var Date: typeof core.Date; + const Date: typeof core.Date; export = Date; } declare module "core-js/library/fn/date/add-locale" { - var addLocale: typeof core.addLocale; + const addLocale: typeof core.addLocale; export = addLocale; } declare module "core-js/library/fn/date/format" { - var format: typeof core.Date.format; + const format: typeof core.Date.format; export = format; } declare module "core-js/library/fn/date/formatUTC" { - var formatUTC: typeof core.Date.formatUTC; + const formatUTC: typeof core.Date.formatUTC; export = formatUTC; } declare module "core-js/library/fn/function" { - var Function: typeof core.Function; + const Function: typeof core.Function; export = Function; } declare module "core-js/library/fn/function/has-instance" { - var hasInstance: (value: any) => boolean; + const hasInstance: (value: any) => boolean; export = hasInstance; } declare module "core-js/library/fn/function/name" { } declare module "core-js/library/fn/function/part" { - var part: typeof core.Function.part; + const part: typeof core.Function.part; export = part; } declare module "core-js/library/fn/math" { - var Math: typeof core.Math; + const Math: typeof core.Math; export = Math; } declare module "core-js/library/fn/math/acosh" { - var acosh: typeof core.Math.acosh; + const acosh: typeof core.Math.acosh; export = acosh; } declare module "core-js/library/fn/math/asinh" { - var asinh: typeof core.Math.asinh; + const asinh: typeof core.Math.asinh; export = asinh; } declare module "core-js/library/fn/math/atanh" { - var atanh: typeof core.Math.atanh; + const atanh: typeof core.Math.atanh; export = atanh; } declare module "core-js/library/fn/math/cbrt" { - var cbrt: typeof core.Math.cbrt; + const cbrt: typeof core.Math.cbrt; export = cbrt; } declare module "core-js/library/fn/math/clz32" { - var clz32: typeof core.Math.clz32; + const clz32: typeof core.Math.clz32; export = clz32; } declare module "core-js/library/fn/math/cosh" { - var cosh: typeof core.Math.cosh; + const cosh: typeof core.Math.cosh; export = cosh; } declare module "core-js/library/fn/math/expm1" { - var expm1: typeof core.Math.expm1; + const expm1: typeof core.Math.expm1; export = expm1; } declare module "core-js/library/fn/math/fround" { - var fround: typeof core.Math.fround; + const fround: typeof core.Math.fround; export = fround; } declare module "core-js/library/fn/math/hypot" { - var hypot: typeof core.Math.hypot; + const hypot: typeof core.Math.hypot; export = hypot; } declare module "core-js/library/fn/math/imul" { - var imul: typeof core.Math.imul; + const imul: typeof core.Math.imul; export = imul; } declare module "core-js/library/fn/math/log10" { - var log10: typeof core.Math.log10; + const log10: typeof core.Math.log10; export = log10; } declare module "core-js/library/fn/math/log1p" { - var log1p: typeof core.Math.log1p; + const log1p: typeof core.Math.log1p; export = log1p; } declare module "core-js/library/fn/math/log2" { - var log2: typeof core.Math.log2; + const log2: typeof core.Math.log2; export = log2; } declare module "core-js/library/fn/math/sign" { - var sign: typeof core.Math.sign; + const sign: typeof core.Math.sign; export = sign; } declare module "core-js/library/fn/math/sinh" { - var sinh: typeof core.Math.sinh; + const sinh: typeof core.Math.sinh; export = sinh; } declare module "core-js/library/fn/math/tanh" { - var tanh: typeof core.Math.tanh; + const tanh: typeof core.Math.tanh; export = tanh; } declare module "core-js/library/fn/math/trunc" { - var trunc: typeof core.Math.trunc; + const trunc: typeof core.Math.trunc; export = trunc; } declare module "core-js/library/fn/number" { - var Number: typeof core.Number; + const Number: typeof core.Number; export = Number; } declare module "core-js/library/fn/number/epsilon" { - var EPSILON: typeof core.Number.EPSILON; + const EPSILON: typeof core.Number.EPSILON; export = EPSILON; } declare module "core-js/library/fn/number/is-finite" { - var isFinite: typeof core.Number.isFinite; + const isFinite: typeof core.Number.isFinite; export = isFinite; } declare module "core-js/library/fn/number/is-integer" { - var isInteger: typeof core.Number.isInteger; + const isInteger: typeof core.Number.isInteger; export = isInteger; } declare module "core-js/library/fn/number/is-nan" { - var isNaN: typeof core.Number.isNaN; + const isNaN: typeof core.Number.isNaN; export = isNaN; } declare module "core-js/library/fn/number/is-safe-integer" { - var isSafeInteger: typeof core.Number.isSafeInteger; + const isSafeInteger: typeof core.Number.isSafeInteger; export = isSafeInteger; } declare module "core-js/library/fn/number/max-safe-integer" { - var MAX_SAFE_INTEGER: typeof core.Number.MAX_SAFE_INTEGER; + const MAX_SAFE_INTEGER: typeof core.Number.MAX_SAFE_INTEGER; export = MAX_SAFE_INTEGER; } declare module "core-js/library/fn/number/min-safe-integer" { - var MIN_SAFE_INTEGER: typeof core.Number.MIN_SAFE_INTEGER; + const MIN_SAFE_INTEGER: typeof core.Number.MIN_SAFE_INTEGER; export = MIN_SAFE_INTEGER; } declare module "core-js/library/fn/number/parse-float" { - var parseFloat: typeof core.Number.parseFloat; + const parseFloat: typeof core.Number.parseFloat; export = parseFloat; } declare module "core-js/library/fn/number/parse-int" { - var parseInt: typeof core.Number.parseInt; + const parseInt: typeof core.Number.parseInt; export = parseInt; } declare module "core-js/library/fn/number/random" { - var random: typeof core.Number.random; + const random: typeof core.Number.random; export = random; } declare module "core-js/library/fn/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/library/fn/object/assign" { - var assign: typeof core.Object.assign; + const assign: typeof core.Object.assign; export = assign; } declare module "core-js/library/fn/object/classof" { - var classof: typeof core.Object.classof; + const classof: typeof core.Object.classof; export = classof; } declare module "core-js/library/fn/object/create" { - var create: typeof core.Object.create; + const create: typeof core.Object.create; export = create; } declare module "core-js/library/fn/object/define" { - var define: typeof core.Object.define; + const define: typeof core.Object.define; export = define; } declare module "core-js/library/fn/object/define-properties" { - var defineProperties: typeof core.Object.defineProperties; + const defineProperties: typeof core.Object.defineProperties; export = defineProperties; } declare module "core-js/library/fn/object/define-property" { - var defineProperty: typeof core.Object.defineProperty; + const defineProperty: typeof core.Object.defineProperty; export = defineProperty; } declare module "core-js/library/fn/object/entries" { - var entries: typeof core.Object.entries; + const entries: typeof core.Object.entries; export = entries; } declare module "core-js/library/fn/object/freeze" { - var freeze: typeof core.Object.freeze; + const freeze: typeof core.Object.freeze; export = freeze; } declare module "core-js/library/fn/object/get-own-property-descriptor" { - var getOwnPropertyDescriptor: typeof core.Object.getOwnPropertyDescriptor; + const getOwnPropertyDescriptor: typeof core.Object.getOwnPropertyDescriptor; export = getOwnPropertyDescriptor; } declare module "core-js/library/fn/object/get-own-property-descriptors" { - var getOwnPropertyDescriptors: typeof core.Object.getOwnPropertyDescriptors; + const getOwnPropertyDescriptors: typeof core.Object.getOwnPropertyDescriptors; export = getOwnPropertyDescriptors; } declare module "core-js/library/fn/object/get-own-property-names" { - var getOwnPropertyNames: typeof core.Object.getOwnPropertyNames; + const getOwnPropertyNames: typeof core.Object.getOwnPropertyNames; export = getOwnPropertyNames; } declare module "core-js/library/fn/object/get-own-property-symbols" { - var getOwnPropertySymbols: typeof core.Object.getOwnPropertySymbols; + const getOwnPropertySymbols: typeof core.Object.getOwnPropertySymbols; export = getOwnPropertySymbols; } declare module "core-js/library/fn/object/get-prototype-of" { - var getPrototypeOf: typeof core.Object.getPrototypeOf; + const getPrototypeOf: typeof core.Object.getPrototypeOf; export = getPrototypeOf; } declare module "core-js/library/fn/object/is" { - var is: typeof core.Object.is; + const is: typeof core.Object.is; export = is; } declare module "core-js/library/fn/object/is-extensible" { - var isExtensible: typeof core.Object.isExtensible; + const isExtensible: typeof core.Object.isExtensible; export = isExtensible; } declare module "core-js/library/fn/object/is-frozen" { - var isFrozen: typeof core.Object.isFrozen; + const isFrozen: typeof core.Object.isFrozen; export = isFrozen; } declare module "core-js/library/fn/object/is-object" { - var isObject: typeof core.Object.isObject; + const isObject: typeof core.Object.isObject; export = isObject; } declare module "core-js/library/fn/object/is-sealed" { - var isSealed: typeof core.Object.isSealed; + const isSealed: typeof core.Object.isSealed; export = isSealed; } declare module "core-js/library/fn/object/keys" { - var keys: typeof core.Object.keys; + const keys: typeof core.Object.keys; export = keys; } declare module "core-js/library/fn/object/make" { - var make: typeof core.Object.make; + const make: typeof core.Object.make; export = make; } declare module "core-js/library/fn/object/prevent-extensions" { - var preventExtensions: typeof core.Object.preventExtensions; + const preventExtensions: typeof core.Object.preventExtensions; export = preventExtensions; } declare module "core-js/library/fn/object/seal" { - var seal: typeof core.Object.seal; + const seal: typeof core.Object.seal; export = seal; } declare module "core-js/library/fn/object/set-prototype-of" { - var setPrototypeOf: typeof core.Object.setPrototypeOf; + const setPrototypeOf: typeof core.Object.setPrototypeOf; export = setPrototypeOf; } declare module "core-js/library/fn/object/values" { - var values: typeof core.Object.values; + const values: typeof core.Object.values; export = values; } declare module "core-js/library/fn/reflect" { - var Reflect: typeof core.Reflect; + const Reflect: typeof core.Reflect; export = Reflect; } declare module "core-js/library/fn/reflect/apply" { - var apply: typeof core.Reflect.apply; + const apply: typeof core.Reflect.apply; export = apply; } declare module "core-js/library/fn/reflect/construct" { - var construct: typeof core.Reflect.construct; + const construct: typeof core.Reflect.construct; export = construct; } declare module "core-js/library/fn/reflect/define-property" { - var defineProperty: typeof core.Reflect.defineProperty; + const defineProperty: typeof core.Reflect.defineProperty; export = defineProperty; } declare module "core-js/library/fn/reflect/delete-property" { - var deleteProperty: typeof core.Reflect.deleteProperty; + const deleteProperty: typeof core.Reflect.deleteProperty; export = deleteProperty; } declare module "core-js/library/fn/reflect/enumerate" { - var enumerate: typeof core.Reflect.enumerate; + const enumerate: typeof core.Reflect.enumerate; export = enumerate; } declare module "core-js/library/fn/reflect/get" { - var get: typeof core.Reflect.get; + const get: typeof core.Reflect.get; export = get; } declare module "core-js/library/fn/reflect/get-own-property-descriptor" { - var getOwnPropertyDescriptor: typeof core.Reflect.getOwnPropertyDescriptor; + const getOwnPropertyDescriptor: typeof core.Reflect.getOwnPropertyDescriptor; export = getOwnPropertyDescriptor; } declare module "core-js/library/fn/reflect/get-prototype-of" { - var getPrototypeOf: typeof core.Reflect.getPrototypeOf; + const getPrototypeOf: typeof core.Reflect.getPrototypeOf; export = getPrototypeOf; } declare module "core-js/library/fn/reflect/has" { - var has: typeof core.Reflect.has; + const has: typeof core.Reflect.has; export = has; } declare module "core-js/library/fn/reflect/is-extensible" { - var isExtensible: typeof core.Reflect.isExtensible; + const isExtensible: typeof core.Reflect.isExtensible; export = isExtensible; } declare module "core-js/library/fn/reflect/own-keys" { - var ownKeys: typeof core.Reflect.ownKeys; + const ownKeys: typeof core.Reflect.ownKeys; export = ownKeys; } declare module "core-js/library/fn/reflect/prevent-extensions" { - var preventExtensions: typeof core.Reflect.preventExtensions; + const preventExtensions: typeof core.Reflect.preventExtensions; export = preventExtensions; } declare module "core-js/library/fn/reflect/set" { - var set: typeof core.Reflect.set; + const set: typeof core.Reflect.set; export = set; } declare module "core-js/library/fn/reflect/set-prototype-of" { - var setPrototypeOf: typeof core.Reflect.setPrototypeOf; + const setPrototypeOf: typeof core.Reflect.setPrototypeOf; export = setPrototypeOf; } declare module "core-js/library/fn/regexp" { - var RegExp: typeof core.RegExp; + const RegExp: typeof core.RegExp; export = RegExp; } declare module "core-js/library/fn/regexp/escape" { - var escape: typeof core.RegExp.escape; + const escape: typeof core.RegExp.escape; export = escape; } declare module "core-js/library/fn/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/library/fn/string/at" { - var at: typeof core.String.at; + const at: typeof core.String.at; export = at; } declare module "core-js/library/fn/string/code-point-at" { - var codePointAt: typeof core.String.codePointAt; + const codePointAt: typeof core.String.codePointAt; export = codePointAt; } declare module "core-js/library/fn/string/ends-with" { - var endsWith: typeof core.String.endsWith; + const endsWith: typeof core.String.endsWith; export = endsWith; } declare module "core-js/library/fn/string/escape-html" { - var escapeHTML: typeof core.String.escapeHTML; + const escapeHTML: typeof core.String.escapeHTML; export = escapeHTML; } declare module "core-js/library/fn/string/from-code-point" { - var fromCodePoint: typeof core.String.fromCodePoint; + const fromCodePoint: typeof core.String.fromCodePoint; export = fromCodePoint; } declare module "core-js/library/fn/string/includes" { - var includes: typeof core.String.includes; + const includes: typeof core.String.includes; export = includes; } declare module "core-js/library/fn/string/lpad" { - var lpad: typeof core.String.lpad; + const lpad: typeof core.String.lpad; export = lpad; } declare module "core-js/library/fn/string/raw" { - var raw: typeof core.String.raw; + const raw: typeof core.String.raw; export = raw; } declare module "core-js/library/fn/string/repeat" { - var repeat: typeof core.String.repeat; + const repeat: typeof core.String.repeat; export = repeat; } declare module "core-js/library/fn/string/rpad" { - var rpad: typeof core.String.rpad; + const rpad: typeof core.String.rpad; export = rpad; } declare module "core-js/library/fn/string/starts-with" { - var startsWith: typeof core.String.startsWith; + const startsWith: typeof core.String.startsWith; export = startsWith; } declare module "core-js/library/fn/string/unescape-html" { - var unescapeHTML: typeof core.String.unescapeHTML; + const unescapeHTML: typeof core.String.unescapeHTML; export = unescapeHTML; } declare module "core-js/library/fn/symbol" { - var Symbol: typeof core.Symbol; + const Symbol: typeof core.Symbol; export = Symbol; } declare module "core-js/library/fn/symbol/for" { - var _for: typeof core.Symbol.for; + const _for: typeof core.Symbol.for; export = _for; } declare module "core-js/library/fn/symbol/has-instance" { - var hasInstance: typeof core.Symbol.hasInstance; + const hasInstance: typeof core.Symbol.hasInstance; export = hasInstance; } declare module "core-js/library/fn/symbol/is-concat-spreadable" { - var isConcatSpreadable: typeof core.Symbol.isConcatSpreadable; + const isConcatSpreadable: typeof core.Symbol.isConcatSpreadable; export = isConcatSpreadable; } declare module "core-js/library/fn/symbol/iterator" { - var iterator: typeof core.Symbol.iterator; + const iterator: typeof core.Symbol.iterator; export = iterator; } declare module "core-js/library/fn/symbol/key-for" { - var keyFor: typeof core.Symbol.keyFor; + const keyFor: typeof core.Symbol.keyFor; export = keyFor; } declare module "core-js/library/fn/symbol/match" { - var match: typeof core.Symbol.match; + const match: typeof core.Symbol.match; export = match; } declare module "core-js/library/fn/symbol/replace" { - var replace: typeof core.Symbol.replace; + const replace: typeof core.Symbol.replace; export = replace; } declare module "core-js/library/fn/symbol/search" { - var search: typeof core.Symbol.search; + const search: typeof core.Symbol.search; export = search; } declare module "core-js/library/fn/symbol/species" { - var species: typeof core.Symbol.species; + const species: typeof core.Symbol.species; export = species; } declare module "core-js/library/fn/symbol/split" { - var split: typeof core.Symbol.split; + const split: typeof core.Symbol.split; export = split; } declare module "core-js/library/fn/symbol/to-primitive" { - var toPrimitive: typeof core.Symbol.toPrimitive; + const toPrimitive: typeof core.Symbol.toPrimitive; export = toPrimitive; } declare module "core-js/library/fn/symbol/to-string-tag" { - var toStringTag: typeof core.Symbol.toStringTag; + const toStringTag: typeof core.Symbol.toStringTag; export = toStringTag; } declare module "core-js/library/fn/symbol/unscopables" { - var unscopables: typeof core.Symbol.unscopables; + const unscopables: typeof core.Symbol.unscopables; export = unscopables; } declare module "core-js/library/es5" { @@ -2114,93 +2114,93 @@ declare module "core-js/library/es6" { export = core; } declare module "core-js/library/es6/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/library/es6/function" { - var Function: typeof core.Function; + const Function: typeof core.Function; export = Function; } declare module "core-js/library/es6/map" { - var Map: typeof core.Map; + const Map: typeof core.Map; export = Map; } declare module "core-js/library/es6/math" { - var Math: typeof core.Math; + const Math: typeof core.Math; export = Math; } declare module "core-js/library/es6/number" { - var Number: typeof core.Number; + const Number: typeof core.Number; export = Number; } declare module "core-js/library/es6/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/library/es6/promise" { - var Promise: typeof core.Promise; + const Promise: typeof core.Promise; export = Promise; } declare module "core-js/library/es6/reflect" { - var Reflect: typeof core.Reflect; + const Reflect: typeof core.Reflect; export = Reflect; } declare module "core-js/library/es6/regexp" { - var RegExp: typeof core.RegExp; + const RegExp: typeof core.RegExp; export = RegExp; } declare module "core-js/library/es6/set" { - var Set: typeof core.Set; + const Set: typeof core.Set; export = Set; } declare module "core-js/library/es6/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/library/es6/symbol" { - var Symbol: typeof core.Symbol; + const Symbol: typeof core.Symbol; export = Symbol; } declare module "core-js/library/es6/weak-map" { - var WeakMap: typeof core.WeakMap; + const WeakMap: typeof core.WeakMap; export = WeakMap; } declare module "core-js/library/es6/weak-set" { - var WeakSet: typeof core.WeakSet; + const WeakSet: typeof core.WeakSet; export = WeakSet; } declare module "core-js/library/es7" { export = core; } declare module "core-js/library/es7/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/library/es7/map" { - var Map: typeof core.Map; + const Map: typeof core.Map; export = Map; } declare module "core-js/library/es7/object" { - var Object: typeof core.Object; + const Object: typeof core.Object; export = Object; } declare module "core-js/library/es7/regexp" { - var RegExp: typeof core.RegExp; + const RegExp: typeof core.RegExp; export = RegExp; } declare module "core-js/library/es7/set" { - var Set: typeof core.Set; + const Set: typeof core.Set; export = Set; } declare module "core-js/library/es7/string" { - var String: typeof core.String; + const String: typeof core.String; export = String; } declare module "core-js/library/js" { export = core; } declare module "core-js/library/js/array" { - var Array: typeof core.Array; + const Array: typeof core.Array; export = Array; } declare module "core-js/library/web" { diff --git a/core-js/tsconfig.json b/types/core-js/tsconfig.json similarity index 100% rename from core-js/tsconfig.json rename to types/core-js/tsconfig.json diff --git a/core-js/tslint.json b/types/core-js/tslint.json similarity index 100% rename from core-js/tslint.json rename to types/core-js/tslint.json diff --git a/cors/cors-tests.ts b/types/cors/cors-tests.ts similarity index 100% rename from cors/cors-tests.ts rename to types/cors/cors-tests.ts diff --git a/cors/index.d.ts b/types/cors/index.d.ts similarity index 100% rename from cors/index.d.ts rename to types/cors/index.d.ts diff --git a/cors/tsconfig.json b/types/cors/tsconfig.json similarity index 100% rename from cors/tsconfig.json rename to types/cors/tsconfig.json diff --git a/couchbase/couchbase-tests.ts b/types/couchbase/couchbase-tests.ts similarity index 100% rename from couchbase/couchbase-tests.ts rename to types/couchbase/couchbase-tests.ts diff --git a/couchbase/index.d.ts b/types/couchbase/index.d.ts similarity index 100% rename from couchbase/index.d.ts rename to types/couchbase/index.d.ts diff --git a/couchbase/tsconfig.json b/types/couchbase/tsconfig.json similarity index 100% rename from couchbase/tsconfig.json rename to types/couchbase/tsconfig.json diff --git a/countdown/countdown-tests.ts b/types/countdown/countdown-tests.ts similarity index 100% rename from countdown/countdown-tests.ts rename to types/countdown/countdown-tests.ts diff --git a/countdown/index.d.ts b/types/countdown/index.d.ts similarity index 100% rename from countdown/index.d.ts rename to types/countdown/index.d.ts diff --git a/countdown/tsconfig.json b/types/countdown/tsconfig.json similarity index 100% rename from countdown/tsconfig.json rename to types/countdown/tsconfig.json diff --git a/cpy/cpy-tests.ts b/types/cpy/cpy-tests.ts similarity index 100% rename from cpy/cpy-tests.ts rename to types/cpy/cpy-tests.ts diff --git a/cpy/index.d.ts b/types/cpy/index.d.ts similarity index 100% rename from cpy/index.d.ts rename to types/cpy/index.d.ts diff --git a/cpy/tsconfig.json b/types/cpy/tsconfig.json similarity index 100% rename from cpy/tsconfig.json rename to types/cpy/tsconfig.json diff --git a/cpy/tslint.json b/types/cpy/tslint.json similarity index 100% rename from cpy/tslint.json rename to types/cpy/tslint.json diff --git a/cradle/cradle-tests.ts b/types/cradle/cradle-tests.ts similarity index 100% rename from cradle/cradle-tests.ts rename to types/cradle/cradle-tests.ts diff --git a/cradle/index.d.ts b/types/cradle/index.d.ts similarity index 100% rename from cradle/index.d.ts rename to types/cradle/index.d.ts diff --git a/cradle/tsconfig.json b/types/cradle/tsconfig.json similarity index 100% rename from cradle/tsconfig.json rename to types/cradle/tsconfig.json diff --git a/crc/crc-tests.ts b/types/crc/crc-tests.ts similarity index 100% rename from crc/crc-tests.ts rename to types/crc/crc-tests.ts diff --git a/crc/index.d.ts b/types/crc/index.d.ts similarity index 100% rename from crc/index.d.ts rename to types/crc/index.d.ts diff --git a/crc/tsconfig.json b/types/crc/tsconfig.json similarity index 100% rename from crc/tsconfig.json rename to types/crc/tsconfig.json diff --git a/crc/tslint.json b/types/crc/tslint.json similarity index 100% rename from crc/tslint.json rename to types/crc/tslint.json diff --git a/create-error/create-error-tests.ts b/types/create-error/create-error-tests.ts similarity index 100% rename from create-error/create-error-tests.ts rename to types/create-error/create-error-tests.ts diff --git a/create-error/index.d.ts b/types/create-error/index.d.ts similarity index 100% rename from create-error/index.d.ts rename to types/create-error/index.d.ts diff --git a/create-error/tsconfig.json b/types/create-error/tsconfig.json similarity index 100% rename from create-error/tsconfig.json rename to types/create-error/tsconfig.json diff --git a/createjs-lib/index.d.ts b/types/createjs-lib/index.d.ts similarity index 100% rename from createjs-lib/index.d.ts rename to types/createjs-lib/index.d.ts diff --git a/createjs-lib/tsconfig.json b/types/createjs-lib/tsconfig.json similarity index 100% rename from createjs-lib/tsconfig.json rename to types/createjs-lib/tsconfig.json diff --git a/createjs/index.d.ts b/types/createjs/index.d.ts similarity index 100% rename from createjs/index.d.ts rename to types/createjs/index.d.ts diff --git a/createjs/tsconfig.json b/types/createjs/tsconfig.json similarity index 100% rename from createjs/tsconfig.json rename to types/createjs/tsconfig.json diff --git a/credential/credential-tests.ts b/types/credential/credential-tests.ts similarity index 100% rename from credential/credential-tests.ts rename to types/credential/credential-tests.ts diff --git a/credential/index.d.ts b/types/credential/index.d.ts similarity index 100% rename from credential/index.d.ts rename to types/credential/index.d.ts diff --git a/credential/tsconfig.json b/types/credential/tsconfig.json similarity index 100% rename from credential/tsconfig.json rename to types/credential/tsconfig.json diff --git a/credit-card-type/credit-card-type-tests.ts b/types/credit-card-type/credit-card-type-tests.ts similarity index 100% rename from credit-card-type/credit-card-type-tests.ts rename to types/credit-card-type/credit-card-type-tests.ts diff --git a/credit-card-type/index.d.ts b/types/credit-card-type/index.d.ts similarity index 100% rename from credit-card-type/index.d.ts rename to types/credit-card-type/index.d.ts diff --git a/credit-card-type/tsconfig.json b/types/credit-card-type/tsconfig.json similarity index 100% rename from credit-card-type/tsconfig.json rename to types/credit-card-type/tsconfig.json diff --git a/cron/cron-tests.ts b/types/cron/cron-tests.ts similarity index 100% rename from cron/cron-tests.ts rename to types/cron/cron-tests.ts diff --git a/cron/index.d.ts b/types/cron/index.d.ts similarity index 100% rename from cron/index.d.ts rename to types/cron/index.d.ts diff --git a/cron/tsconfig.json b/types/cron/tsconfig.json similarity index 100% rename from cron/tsconfig.json rename to types/cron/tsconfig.json diff --git a/cropperjs/cropperjs-tests.ts b/types/cropperjs/cropperjs-tests.ts similarity index 100% rename from cropperjs/cropperjs-tests.ts rename to types/cropperjs/cropperjs-tests.ts diff --git a/cropperjs/index.d.ts b/types/cropperjs/index.d.ts similarity index 100% rename from cropperjs/index.d.ts rename to types/cropperjs/index.d.ts diff --git a/cropperjs/tsconfig.json b/types/cropperjs/tsconfig.json similarity index 100% rename from cropperjs/tsconfig.json rename to types/cropperjs/tsconfig.json diff --git a/croppie/croppie-tests.ts b/types/croppie/croppie-tests.ts similarity index 100% rename from croppie/croppie-tests.ts rename to types/croppie/croppie-tests.ts diff --git a/croppie/index.d.ts b/types/croppie/index.d.ts similarity index 100% rename from croppie/index.d.ts rename to types/croppie/index.d.ts diff --git a/croppie/tsconfig.json b/types/croppie/tsconfig.json similarity index 100% rename from croppie/tsconfig.json rename to types/croppie/tsconfig.json diff --git a/croppie/tslint.json b/types/croppie/tslint.json similarity index 100% rename from croppie/tslint.json rename to types/croppie/tslint.json diff --git a/cross-storage/cross-storage-tests.ts b/types/cross-storage/cross-storage-tests.ts similarity index 100% rename from cross-storage/cross-storage-tests.ts rename to types/cross-storage/cross-storage-tests.ts diff --git a/cross-storage/index.d.ts b/types/cross-storage/index.d.ts similarity index 100% rename from cross-storage/index.d.ts rename to types/cross-storage/index.d.ts diff --git a/cross-storage/tsconfig.json b/types/cross-storage/tsconfig.json similarity index 100% rename from cross-storage/tsconfig.json rename to types/cross-storage/tsconfig.json diff --git a/crossfilter/crossfilter-tests.ts b/types/crossfilter/crossfilter-tests.ts similarity index 100% rename from crossfilter/crossfilter-tests.ts rename to types/crossfilter/crossfilter-tests.ts diff --git a/crossfilter/index.d.ts b/types/crossfilter/index.d.ts similarity index 100% rename from crossfilter/index.d.ts rename to types/crossfilter/index.d.ts diff --git a/crossfilter/tsconfig.json b/types/crossfilter/tsconfig.json similarity index 100% rename from crossfilter/tsconfig.json rename to types/crossfilter/tsconfig.json diff --git a/crossroads/crossroads-tests.ts b/types/crossroads/crossroads-tests.ts similarity index 100% rename from crossroads/crossroads-tests.ts rename to types/crossroads/crossroads-tests.ts diff --git a/crossroads/index.d.ts b/types/crossroads/index.d.ts similarity index 100% rename from crossroads/index.d.ts rename to types/crossroads/index.d.ts diff --git a/crossroads/tsconfig.json b/types/crossroads/tsconfig.json similarity index 100% rename from crossroads/tsconfig.json rename to types/crossroads/tsconfig.json diff --git a/crypto-js/aes/index.d.ts b/types/crypto-js/aes/index.d.ts similarity index 100% rename from crypto-js/aes/index.d.ts rename to types/crypto-js/aes/index.d.ts diff --git a/crypto-js/core/index.d.ts b/types/crypto-js/core/index.d.ts similarity index 100% rename from crypto-js/core/index.d.ts rename to types/crypto-js/core/index.d.ts diff --git a/crypto-js/crypto-js-tests.ts b/types/crypto-js/crypto-js-tests.ts similarity index 100% rename from crypto-js/crypto-js-tests.ts rename to types/crypto-js/crypto-js-tests.ts diff --git a/crypto-js/enc-base64/index.d.ts b/types/crypto-js/enc-base64/index.d.ts similarity index 100% rename from crypto-js/enc-base64/index.d.ts rename to types/crypto-js/enc-base64/index.d.ts diff --git a/crypto-js/enc-hex/index.d.ts b/types/crypto-js/enc-hex/index.d.ts similarity index 100% rename from crypto-js/enc-hex/index.d.ts rename to types/crypto-js/enc-hex/index.d.ts diff --git a/crypto-js/enc-latin1/index.d.ts b/types/crypto-js/enc-latin1/index.d.ts similarity index 100% rename from crypto-js/enc-latin1/index.d.ts rename to types/crypto-js/enc-latin1/index.d.ts diff --git a/crypto-js/enc-utf16/index.d.ts b/types/crypto-js/enc-utf16/index.d.ts similarity index 100% rename from crypto-js/enc-utf16/index.d.ts rename to types/crypto-js/enc-utf16/index.d.ts diff --git a/crypto-js/enc-utf8/index.d.ts b/types/crypto-js/enc-utf8/index.d.ts similarity index 100% rename from crypto-js/enc-utf8/index.d.ts rename to types/crypto-js/enc-utf8/index.d.ts diff --git a/crypto-js/evpkdf/index.d.ts b/types/crypto-js/evpkdf/index.d.ts similarity index 100% rename from crypto-js/evpkdf/index.d.ts rename to types/crypto-js/evpkdf/index.d.ts diff --git a/crypto-js/format-hex/index.d.ts b/types/crypto-js/format-hex/index.d.ts similarity index 100% rename from crypto-js/format-hex/index.d.ts rename to types/crypto-js/format-hex/index.d.ts diff --git a/crypto-js/format-openssl/index.d.ts b/types/crypto-js/format-openssl/index.d.ts similarity index 100% rename from crypto-js/format-openssl/index.d.ts rename to types/crypto-js/format-openssl/index.d.ts diff --git a/crypto-js/hmac-md5/index.d.ts b/types/crypto-js/hmac-md5/index.d.ts similarity index 100% rename from crypto-js/hmac-md5/index.d.ts rename to types/crypto-js/hmac-md5/index.d.ts diff --git a/crypto-js/hmac-ripemd160/index.d.ts b/types/crypto-js/hmac-ripemd160/index.d.ts similarity index 100% rename from crypto-js/hmac-ripemd160/index.d.ts rename to types/crypto-js/hmac-ripemd160/index.d.ts diff --git a/crypto-js/hmac-sha1/index.d.ts b/types/crypto-js/hmac-sha1/index.d.ts similarity index 100% rename from crypto-js/hmac-sha1/index.d.ts rename to types/crypto-js/hmac-sha1/index.d.ts diff --git a/crypto-js/hmac-sha224/index.d.ts b/types/crypto-js/hmac-sha224/index.d.ts similarity index 100% rename from crypto-js/hmac-sha224/index.d.ts rename to types/crypto-js/hmac-sha224/index.d.ts diff --git a/crypto-js/hmac-sha256/index.d.ts b/types/crypto-js/hmac-sha256/index.d.ts similarity index 100% rename from crypto-js/hmac-sha256/index.d.ts rename to types/crypto-js/hmac-sha256/index.d.ts diff --git a/crypto-js/hmac-sha3/index.d.ts b/types/crypto-js/hmac-sha3/index.d.ts similarity index 100% rename from crypto-js/hmac-sha3/index.d.ts rename to types/crypto-js/hmac-sha3/index.d.ts diff --git a/crypto-js/hmac-sha384/index.d.ts b/types/crypto-js/hmac-sha384/index.d.ts similarity index 100% rename from crypto-js/hmac-sha384/index.d.ts rename to types/crypto-js/hmac-sha384/index.d.ts diff --git a/crypto-js/hmac-sha512/index.d.ts b/types/crypto-js/hmac-sha512/index.d.ts similarity index 100% rename from crypto-js/hmac-sha512/index.d.ts rename to types/crypto-js/hmac-sha512/index.d.ts diff --git a/crypto-js/index.d.ts b/types/crypto-js/index.d.ts similarity index 100% rename from crypto-js/index.d.ts rename to types/crypto-js/index.d.ts diff --git a/crypto-js/lib-typedarrays/index.d.ts b/types/crypto-js/lib-typedarrays/index.d.ts similarity index 100% rename from crypto-js/lib-typedarrays/index.d.ts rename to types/crypto-js/lib-typedarrays/index.d.ts diff --git a/crypto-js/md5/index.d.ts b/types/crypto-js/md5/index.d.ts similarity index 100% rename from crypto-js/md5/index.d.ts rename to types/crypto-js/md5/index.d.ts diff --git a/crypto-js/mode-cfb/index.d.ts b/types/crypto-js/mode-cfb/index.d.ts similarity index 100% rename from crypto-js/mode-cfb/index.d.ts rename to types/crypto-js/mode-cfb/index.d.ts diff --git a/crypto-js/mode-ctr-gladman/index.d.ts b/types/crypto-js/mode-ctr-gladman/index.d.ts similarity index 100% rename from crypto-js/mode-ctr-gladman/index.d.ts rename to types/crypto-js/mode-ctr-gladman/index.d.ts diff --git a/crypto-js/mode-ctr/index.d.ts b/types/crypto-js/mode-ctr/index.d.ts similarity index 100% rename from crypto-js/mode-ctr/index.d.ts rename to types/crypto-js/mode-ctr/index.d.ts diff --git a/crypto-js/mode-ecb/index.d.ts b/types/crypto-js/mode-ecb/index.d.ts similarity index 100% rename from crypto-js/mode-ecb/index.d.ts rename to types/crypto-js/mode-ecb/index.d.ts diff --git a/crypto-js/mode-ofb/index.d.ts b/types/crypto-js/mode-ofb/index.d.ts similarity index 100% rename from crypto-js/mode-ofb/index.d.ts rename to types/crypto-js/mode-ofb/index.d.ts diff --git a/crypto-js/pad-ansix923/index.d.ts b/types/crypto-js/pad-ansix923/index.d.ts similarity index 100% rename from crypto-js/pad-ansix923/index.d.ts rename to types/crypto-js/pad-ansix923/index.d.ts diff --git a/crypto-js/pad-iso10126/index.d.ts b/types/crypto-js/pad-iso10126/index.d.ts similarity index 100% rename from crypto-js/pad-iso10126/index.d.ts rename to types/crypto-js/pad-iso10126/index.d.ts diff --git a/crypto-js/pad-iso97971/index.d.ts b/types/crypto-js/pad-iso97971/index.d.ts similarity index 100% rename from crypto-js/pad-iso97971/index.d.ts rename to types/crypto-js/pad-iso97971/index.d.ts diff --git a/crypto-js/pad-nopadding/index.d.ts b/types/crypto-js/pad-nopadding/index.d.ts similarity index 100% rename from crypto-js/pad-nopadding/index.d.ts rename to types/crypto-js/pad-nopadding/index.d.ts diff --git a/crypto-js/pad-pkcs7/index.d.ts b/types/crypto-js/pad-pkcs7/index.d.ts similarity index 100% rename from crypto-js/pad-pkcs7/index.d.ts rename to types/crypto-js/pad-pkcs7/index.d.ts diff --git a/crypto-js/pad-zeropadding/index.d.ts b/types/crypto-js/pad-zeropadding/index.d.ts similarity index 100% rename from crypto-js/pad-zeropadding/index.d.ts rename to types/crypto-js/pad-zeropadding/index.d.ts diff --git a/crypto-js/pbkdf2/index.d.ts b/types/crypto-js/pbkdf2/index.d.ts similarity index 100% rename from crypto-js/pbkdf2/index.d.ts rename to types/crypto-js/pbkdf2/index.d.ts diff --git a/crypto-js/rabbit-legacy/index.d.ts b/types/crypto-js/rabbit-legacy/index.d.ts similarity index 100% rename from crypto-js/rabbit-legacy/index.d.ts rename to types/crypto-js/rabbit-legacy/index.d.ts diff --git a/crypto-js/rabbit/index.d.ts b/types/crypto-js/rabbit/index.d.ts similarity index 100% rename from crypto-js/rabbit/index.d.ts rename to types/crypto-js/rabbit/index.d.ts diff --git a/crypto-js/rc4/index.d.ts b/types/crypto-js/rc4/index.d.ts similarity index 100% rename from crypto-js/rc4/index.d.ts rename to types/crypto-js/rc4/index.d.ts diff --git a/crypto-js/ripemd160/index.d.ts b/types/crypto-js/ripemd160/index.d.ts similarity index 100% rename from crypto-js/ripemd160/index.d.ts rename to types/crypto-js/ripemd160/index.d.ts diff --git a/crypto-js/sha1/index.d.ts b/types/crypto-js/sha1/index.d.ts similarity index 100% rename from crypto-js/sha1/index.d.ts rename to types/crypto-js/sha1/index.d.ts diff --git a/crypto-js/sha224/index.d.ts b/types/crypto-js/sha224/index.d.ts similarity index 100% rename from crypto-js/sha224/index.d.ts rename to types/crypto-js/sha224/index.d.ts diff --git a/crypto-js/sha256/index.d.ts b/types/crypto-js/sha256/index.d.ts similarity index 100% rename from crypto-js/sha256/index.d.ts rename to types/crypto-js/sha256/index.d.ts diff --git a/crypto-js/sha3/index.d.ts b/types/crypto-js/sha3/index.d.ts similarity index 100% rename from crypto-js/sha3/index.d.ts rename to types/crypto-js/sha3/index.d.ts diff --git a/crypto-js/sha384/index.d.ts b/types/crypto-js/sha384/index.d.ts similarity index 100% rename from crypto-js/sha384/index.d.ts rename to types/crypto-js/sha384/index.d.ts diff --git a/crypto-js/sha512/index.d.ts b/types/crypto-js/sha512/index.d.ts similarity index 100% rename from crypto-js/sha512/index.d.ts rename to types/crypto-js/sha512/index.d.ts diff --git a/crypto-js/test/submodule-tests.ts b/types/crypto-js/test/submodule-tests.ts similarity index 100% rename from crypto-js/test/submodule-tests.ts rename to types/crypto-js/test/submodule-tests.ts diff --git a/crypto-js/tripledes/index.d.ts b/types/crypto-js/tripledes/index.d.ts similarity index 100% rename from crypto-js/tripledes/index.d.ts rename to types/crypto-js/tripledes/index.d.ts diff --git a/crypto-js/tsconfig.json b/types/crypto-js/tsconfig.json similarity index 100% rename from crypto-js/tsconfig.json rename to types/crypto-js/tsconfig.json diff --git a/crypto-js/x64-core/index.d.ts b/types/crypto-js/x64-core/index.d.ts similarity index 100% rename from crypto-js/x64-core/index.d.ts rename to types/crypto-js/x64-core/index.d.ts diff --git a/cryptojs/index.d.ts b/types/cryptojs/index.d.ts similarity index 100% rename from cryptojs/index.d.ts rename to types/cryptojs/index.d.ts diff --git a/cryptojs/test/aes-profile-tests.ts b/types/cryptojs/test/aes-profile-tests.ts similarity index 100% rename from cryptojs/test/aes-profile-tests.ts rename to types/cryptojs/test/aes-profile-tests.ts diff --git a/cryptojs/test/aes-tests.ts b/types/cryptojs/test/aes-tests.ts similarity index 100% rename from cryptojs/test/aes-tests.ts rename to types/cryptojs/test/aes-tests.ts diff --git a/cryptojs/test/des-profile-tests.ts b/types/cryptojs/test/des-profile-tests.ts similarity index 100% rename from cryptojs/test/des-profile-tests.ts rename to types/cryptojs/test/des-profile-tests.ts diff --git a/cryptojs/test/des-tests.ts b/types/cryptojs/test/des-tests.ts similarity index 100% rename from cryptojs/test/des-tests.ts rename to types/cryptojs/test/des-tests.ts diff --git a/cryptojs/test/enc-base64-tests.ts b/types/cryptojs/test/enc-base64-tests.ts similarity index 100% rename from cryptojs/test/enc-base64-tests.ts rename to types/cryptojs/test/enc-base64-tests.ts diff --git a/cryptojs/test/enc-hex-tests.ts b/types/cryptojs/test/enc-hex-tests.ts similarity index 100% rename from cryptojs/test/enc-hex-tests.ts rename to types/cryptojs/test/enc-hex-tests.ts diff --git a/cryptojs/test/enc-latin1-tests.ts b/types/cryptojs/test/enc-latin1-tests.ts similarity index 100% rename from cryptojs/test/enc-latin1-tests.ts rename to types/cryptojs/test/enc-latin1-tests.ts diff --git a/cryptojs/test/enc-utf16-tests.ts b/types/cryptojs/test/enc-utf16-tests.ts similarity index 100% rename from cryptojs/test/enc-utf16-tests.ts rename to types/cryptojs/test/enc-utf16-tests.ts diff --git a/cryptojs/test/enc-utf8-tests.ts b/types/cryptojs/test/enc-utf8-tests.ts similarity index 100% rename from cryptojs/test/enc-utf8-tests.ts rename to types/cryptojs/test/enc-utf8-tests.ts diff --git a/cryptojs/test/evpkdf-profile-tests.ts b/types/cryptojs/test/evpkdf-profile-tests.ts similarity index 100% rename from cryptojs/test/evpkdf-profile-tests.ts rename to types/cryptojs/test/evpkdf-profile-tests.ts diff --git a/cryptojs/test/evpkdf-tests.ts b/types/cryptojs/test/evpkdf-tests.ts similarity index 100% rename from cryptojs/test/evpkdf-tests.ts rename to types/cryptojs/test/evpkdf-tests.ts diff --git a/cryptojs/test/format-openssl-tests.ts b/types/cryptojs/test/format-openssl-tests.ts similarity index 100% rename from cryptojs/test/format-openssl-tests.ts rename to types/cryptojs/test/format-openssl-tests.ts diff --git a/cryptojs/test/hmac-profile-tests.ts b/types/cryptojs/test/hmac-profile-tests.ts similarity index 100% rename from cryptojs/test/hmac-profile-tests.ts rename to types/cryptojs/test/hmac-profile-tests.ts diff --git a/cryptojs/test/hmac-tests.ts b/types/cryptojs/test/hmac-tests.ts similarity index 100% rename from cryptojs/test/hmac-tests.ts rename to types/cryptojs/test/hmac-tests.ts diff --git a/cryptojs/test/kdf-openssl-tests.ts b/types/cryptojs/test/kdf-openssl-tests.ts similarity index 100% rename from cryptojs/test/kdf-openssl-tests.ts rename to types/cryptojs/test/kdf-openssl-tests.ts diff --git a/cryptojs/test/lib-base-tests.ts b/types/cryptojs/test/lib-base-tests.ts similarity index 100% rename from cryptojs/test/lib-base-tests.ts rename to types/cryptojs/test/lib-base-tests.ts diff --git a/cryptojs/test/lib-cipherparams-tests.ts b/types/cryptojs/test/lib-cipherparams-tests.ts similarity index 100% rename from cryptojs/test/lib-cipherparams-tests.ts rename to types/cryptojs/test/lib-cipherparams-tests.ts diff --git a/cryptojs/test/lib-passwordbasedcipher-tests.ts b/types/cryptojs/test/lib-passwordbasedcipher-tests.ts similarity index 100% rename from cryptojs/test/lib-passwordbasedcipher-tests.ts rename to types/cryptojs/test/lib-passwordbasedcipher-tests.ts diff --git a/cryptojs/test/lib-serializablecipher-tests.ts b/types/cryptojs/test/lib-serializablecipher-tests.ts similarity index 100% rename from cryptojs/test/lib-serializablecipher-tests.ts rename to types/cryptojs/test/lib-serializablecipher-tests.ts diff --git a/cryptojs/test/lib-typedarrays-tests.ts b/types/cryptojs/test/lib-typedarrays-tests.ts similarity index 100% rename from cryptojs/test/lib-typedarrays-tests.ts rename to types/cryptojs/test/lib-typedarrays-tests.ts diff --git a/cryptojs/test/lib-wordarray-tests.ts b/types/cryptojs/test/lib-wordarray-tests.ts similarity index 100% rename from cryptojs/test/lib-wordarray-tests.ts rename to types/cryptojs/test/lib-wordarray-tests.ts diff --git a/cryptojs/test/md5-profile-tests.ts b/types/cryptojs/test/md5-profile-tests.ts similarity index 100% rename from cryptojs/test/md5-profile-tests.ts rename to types/cryptojs/test/md5-profile-tests.ts diff --git a/cryptojs/test/md5-tests.ts b/types/cryptojs/test/md5-tests.ts similarity index 100% rename from cryptojs/test/md5-tests.ts rename to types/cryptojs/test/md5-tests.ts diff --git a/cryptojs/test/mode-cbc-tests.ts b/types/cryptojs/test/mode-cbc-tests.ts similarity index 100% rename from cryptojs/test/mode-cbc-tests.ts rename to types/cryptojs/test/mode-cbc-tests.ts diff --git a/cryptojs/test/mode-cfb-tests.ts b/types/cryptojs/test/mode-cfb-tests.ts similarity index 100% rename from cryptojs/test/mode-cfb-tests.ts rename to types/cryptojs/test/mode-cfb-tests.ts diff --git a/cryptojs/test/mode-ctr-tests.ts b/types/cryptojs/test/mode-ctr-tests.ts similarity index 100% rename from cryptojs/test/mode-ctr-tests.ts rename to types/cryptojs/test/mode-ctr-tests.ts diff --git a/cryptojs/test/mode-ecb-tests.ts b/types/cryptojs/test/mode-ecb-tests.ts similarity index 100% rename from cryptojs/test/mode-ecb-tests.ts rename to types/cryptojs/test/mode-ecb-tests.ts diff --git a/cryptojs/test/mode-ofb-tests.ts b/types/cryptojs/test/mode-ofb-tests.ts similarity index 100% rename from cryptojs/test/mode-ofb-tests.ts rename to types/cryptojs/test/mode-ofb-tests.ts diff --git a/cryptojs/test/pad-ansix923-tests.ts b/types/cryptojs/test/pad-ansix923-tests.ts similarity index 100% rename from cryptojs/test/pad-ansix923-tests.ts rename to types/cryptojs/test/pad-ansix923-tests.ts diff --git a/cryptojs/test/pad-iso10126-tests.ts b/types/cryptojs/test/pad-iso10126-tests.ts similarity index 100% rename from cryptojs/test/pad-iso10126-tests.ts rename to types/cryptojs/test/pad-iso10126-tests.ts diff --git a/cryptojs/test/pad-iso97971-tests.ts b/types/cryptojs/test/pad-iso97971-tests.ts similarity index 100% rename from cryptojs/test/pad-iso97971-tests.ts rename to types/cryptojs/test/pad-iso97971-tests.ts diff --git a/cryptojs/test/pad-pkcs7-tests.ts b/types/cryptojs/test/pad-pkcs7-tests.ts similarity index 100% rename from cryptojs/test/pad-pkcs7-tests.ts rename to types/cryptojs/test/pad-pkcs7-tests.ts diff --git a/cryptojs/test/pad-zeropadding-tests.ts b/types/cryptojs/test/pad-zeropadding-tests.ts similarity index 100% rename from cryptojs/test/pad-zeropadding-tests.ts rename to types/cryptojs/test/pad-zeropadding-tests.ts diff --git a/cryptojs/test/pbkdf2-profile-tests.ts b/types/cryptojs/test/pbkdf2-profile-tests.ts similarity index 100% rename from cryptojs/test/pbkdf2-profile-tests.ts rename to types/cryptojs/test/pbkdf2-profile-tests.ts diff --git a/cryptojs/test/pbkdf2-tests.ts b/types/cryptojs/test/pbkdf2-tests.ts similarity index 100% rename from cryptojs/test/pbkdf2-tests.ts rename to types/cryptojs/test/pbkdf2-tests.ts diff --git a/cryptojs/test/rabbit-legacy-tests.ts b/types/cryptojs/test/rabbit-legacy-tests.ts similarity index 100% rename from cryptojs/test/rabbit-legacy-tests.ts rename to types/cryptojs/test/rabbit-legacy-tests.ts diff --git a/cryptojs/test/rabbit-profile-tests.ts b/types/cryptojs/test/rabbit-profile-tests.ts similarity index 100% rename from cryptojs/test/rabbit-profile-tests.ts rename to types/cryptojs/test/rabbit-profile-tests.ts diff --git a/cryptojs/test/rabbit-tests.ts b/types/cryptojs/test/rabbit-tests.ts similarity index 100% rename from cryptojs/test/rabbit-tests.ts rename to types/cryptojs/test/rabbit-tests.ts diff --git a/cryptojs/test/rc4-profile-tests.ts b/types/cryptojs/test/rc4-profile-tests.ts similarity index 100% rename from cryptojs/test/rc4-profile-tests.ts rename to types/cryptojs/test/rc4-profile-tests.ts diff --git a/cryptojs/test/rc4-tests.ts b/types/cryptojs/test/rc4-tests.ts similarity index 100% rename from cryptojs/test/rc4-tests.ts rename to types/cryptojs/test/rc4-tests.ts diff --git a/cryptojs/test/ripemd160-tests.ts b/types/cryptojs/test/ripemd160-tests.ts similarity index 100% rename from cryptojs/test/ripemd160-tests.ts rename to types/cryptojs/test/ripemd160-tests.ts diff --git a/cryptojs/test/sha1-profile-tests.ts b/types/cryptojs/test/sha1-profile-tests.ts similarity index 100% rename from cryptojs/test/sha1-profile-tests.ts rename to types/cryptojs/test/sha1-profile-tests.ts diff --git a/cryptojs/test/sha1-tests.ts b/types/cryptojs/test/sha1-tests.ts similarity index 100% rename from cryptojs/test/sha1-tests.ts rename to types/cryptojs/test/sha1-tests.ts diff --git a/cryptojs/test/sha224-tests.ts b/types/cryptojs/test/sha224-tests.ts similarity index 100% rename from cryptojs/test/sha224-tests.ts rename to types/cryptojs/test/sha224-tests.ts diff --git a/cryptojs/test/sha256-profile-tests.ts b/types/cryptojs/test/sha256-profile-tests.ts similarity index 100% rename from cryptojs/test/sha256-profile-tests.ts rename to types/cryptojs/test/sha256-profile-tests.ts diff --git a/cryptojs/test/sha256-tests.ts b/types/cryptojs/test/sha256-tests.ts similarity index 100% rename from cryptojs/test/sha256-tests.ts rename to types/cryptojs/test/sha256-tests.ts diff --git a/cryptojs/test/sha3-profile-tests.ts b/types/cryptojs/test/sha3-profile-tests.ts similarity index 100% rename from cryptojs/test/sha3-profile-tests.ts rename to types/cryptojs/test/sha3-profile-tests.ts diff --git a/cryptojs/test/sha3-tests.ts b/types/cryptojs/test/sha3-tests.ts similarity index 100% rename from cryptojs/test/sha3-tests.ts rename to types/cryptojs/test/sha3-tests.ts diff --git a/cryptojs/test/sha384-tests.ts b/types/cryptojs/test/sha384-tests.ts similarity index 100% rename from cryptojs/test/sha384-tests.ts rename to types/cryptojs/test/sha384-tests.ts diff --git a/cryptojs/test/sha512-profile-tests.ts b/types/cryptojs/test/sha512-profile-tests.ts similarity index 100% rename from cryptojs/test/sha512-profile-tests.ts rename to types/cryptojs/test/sha512-profile-tests.ts diff --git a/cryptojs/test/sha512-tests.ts b/types/cryptojs/test/sha512-tests.ts similarity index 100% rename from cryptojs/test/sha512-tests.ts rename to types/cryptojs/test/sha512-tests.ts diff --git a/cryptojs/test/tripledes-profile-tests.ts b/types/cryptojs/test/tripledes-profile-tests.ts similarity index 100% rename from cryptojs/test/tripledes-profile-tests.ts rename to types/cryptojs/test/tripledes-profile-tests.ts diff --git a/cryptojs/test/tripledes-tests.ts b/types/cryptojs/test/tripledes-tests.ts similarity index 100% rename from cryptojs/test/tripledes-tests.ts rename to types/cryptojs/test/tripledes-tests.ts diff --git a/cryptojs/test/x64-word-tests.ts b/types/cryptojs/test/x64-word-tests.ts similarity index 100% rename from cryptojs/test/x64-word-tests.ts rename to types/cryptojs/test/x64-word-tests.ts diff --git a/cryptojs/test/x64-wordarray-tests.ts b/types/cryptojs/test/x64-wordarray-tests.ts similarity index 100% rename from cryptojs/test/x64-wordarray-tests.ts rename to types/cryptojs/test/x64-wordarray-tests.ts diff --git a/cryptojs/tsconfig.json b/types/cryptojs/tsconfig.json similarity index 100% rename from cryptojs/tsconfig.json rename to types/cryptojs/tsconfig.json diff --git a/cson/cson-tests.ts b/types/cson/cson-tests.ts similarity index 100% rename from cson/cson-tests.ts rename to types/cson/cson-tests.ts diff --git a/cson/index.d.ts b/types/cson/index.d.ts similarity index 100% rename from cson/index.d.ts rename to types/cson/index.d.ts diff --git a/cson/tsconfig.json b/types/cson/tsconfig.json similarity index 100% rename from cson/tsconfig.json rename to types/cson/tsconfig.json diff --git a/csprng/csprng-tests.ts b/types/csprng/csprng-tests.ts similarity index 100% rename from csprng/csprng-tests.ts rename to types/csprng/csprng-tests.ts diff --git a/csprng/index.d.ts b/types/csprng/index.d.ts similarity index 100% rename from csprng/index.d.ts rename to types/csprng/index.d.ts diff --git a/csprng/tsconfig.json b/types/csprng/tsconfig.json similarity index 100% rename from csprng/tsconfig.json rename to types/csprng/tsconfig.json diff --git a/csprng/tslint.json b/types/csprng/tslint.json similarity index 100% rename from csprng/tslint.json rename to types/csprng/tslint.json diff --git a/css-modules-require-hook/css-modules-require-hook-tests.ts b/types/css-modules-require-hook/css-modules-require-hook-tests.ts similarity index 100% rename from css-modules-require-hook/css-modules-require-hook-tests.ts rename to types/css-modules-require-hook/css-modules-require-hook-tests.ts diff --git a/css-modules-require-hook/index.d.ts b/types/css-modules-require-hook/index.d.ts similarity index 100% rename from css-modules-require-hook/index.d.ts rename to types/css-modules-require-hook/index.d.ts diff --git a/css-modules-require-hook/tsconfig.json b/types/css-modules-require-hook/tsconfig.json similarity index 100% rename from css-modules-require-hook/tsconfig.json rename to types/css-modules-require-hook/tsconfig.json diff --git a/css/css-tests.ts b/types/css/css-tests.ts similarity index 100% rename from css/css-tests.ts rename to types/css/css-tests.ts diff --git a/css/index.d.ts b/types/css/index.d.ts similarity index 100% rename from css/index.d.ts rename to types/css/index.d.ts diff --git a/css/tsconfig.json b/types/css/tsconfig.json similarity index 100% rename from css/tsconfig.json rename to types/css/tsconfig.json diff --git a/cssbeautify/cssbeautify-tests.ts b/types/cssbeautify/cssbeautify-tests.ts similarity index 100% rename from cssbeautify/cssbeautify-tests.ts rename to types/cssbeautify/cssbeautify-tests.ts diff --git a/cssbeautify/index.d.ts b/types/cssbeautify/index.d.ts similarity index 100% rename from cssbeautify/index.d.ts rename to types/cssbeautify/index.d.ts diff --git a/cssbeautify/tsconfig.json b/types/cssbeautify/tsconfig.json similarity index 100% rename from cssbeautify/tsconfig.json rename to types/cssbeautify/tsconfig.json diff --git a/csurf/index.d.ts b/types/csurf/index.d.ts similarity index 100% rename from csurf/index.d.ts rename to types/csurf/index.d.ts diff --git a/csurf/tsconfig.json b/types/csurf/tsconfig.json similarity index 100% rename from csurf/tsconfig.json rename to types/csurf/tsconfig.json diff --git a/csv-parse/csv-parse-tests.ts b/types/csv-parse/csv-parse-tests.ts similarity index 100% rename from csv-parse/csv-parse-tests.ts rename to types/csv-parse/csv-parse-tests.ts diff --git a/csv-parse/index.d.ts b/types/csv-parse/index.d.ts similarity index 100% rename from csv-parse/index.d.ts rename to types/csv-parse/index.d.ts diff --git a/csv-parse/lib/sync.d.ts b/types/csv-parse/lib/sync.d.ts similarity index 100% rename from csv-parse/lib/sync.d.ts rename to types/csv-parse/lib/sync.d.ts diff --git a/csv-parse/tsconfig.json b/types/csv-parse/tsconfig.json similarity index 100% rename from csv-parse/tsconfig.json rename to types/csv-parse/tsconfig.json diff --git a/csv-parse/tslint.json b/types/csv-parse/tslint.json similarity index 100% rename from csv-parse/tslint.json rename to types/csv-parse/tslint.json diff --git a/csv-stringify/csv-stringify-tests.ts b/types/csv-stringify/csv-stringify-tests.ts similarity index 100% rename from csv-stringify/csv-stringify-tests.ts rename to types/csv-stringify/csv-stringify-tests.ts diff --git a/csv-stringify/index.d.ts b/types/csv-stringify/index.d.ts similarity index 100% rename from csv-stringify/index.d.ts rename to types/csv-stringify/index.d.ts diff --git a/csv-stringify/tsconfig.json b/types/csv-stringify/tsconfig.json similarity index 100% rename from csv-stringify/tsconfig.json rename to types/csv-stringify/tsconfig.json diff --git a/csv-stringify/tslint.json b/types/csv-stringify/tslint.json similarity index 100% rename from csv-stringify/tslint.json rename to types/csv-stringify/tslint.json diff --git a/csvtojson/csvtojson-tests.ts b/types/csvtojson/csvtojson-tests.ts similarity index 98% rename from csvtojson/csvtojson-tests.ts rename to types/csvtojson/csvtojson-tests.ts index 4368d00494..a4ee3d76d4 100644 --- a/csvtojson/csvtojson-tests.ts +++ b/types/csvtojson/csvtojson-tests.ts @@ -16,7 +16,7 @@ csv({ noheader: true }) console.log(csvRow); // => [1,2,3] , [4,5,6] , [7,8,9] }) .on('done', () => { - //parsing finished + // parsing finished }); // event emitter version using Converter class @@ -26,7 +26,7 @@ new csv.Converter({ noheader: true }) console.log(csvRow); // => [1,2,3] , [4,5,6] , [7,8,9] }) .on('done', () => { - //parsing finished + // parsing finished }); // callback version using Converter class diff --git a/csvtojson/index.d.ts b/types/csvtojson/index.d.ts similarity index 99% rename from csvtojson/index.d.ts rename to types/csvtojson/index.d.ts index 9ba01212c7..504311f47a 100644 --- a/csvtojson/index.d.ts +++ b/types/csvtojson/index.d.ts @@ -8,7 +8,6 @@ import * as stream from 'stream'; declare namespace csvtojson { - /** * Stream options */ @@ -18,7 +17,6 @@ declare namespace csvtojson { * Converter options */ interface ConverterOptions { - /** * Delimiter used for seperating columns. Use "auto" if delimiter is unknown in advance, * in this case, delimiter will be auto-detected (by best attempt). Use an array to give @@ -173,7 +171,6 @@ declare namespace csvtojson { * Converts provided CSV input to a JSON object. */ class Converter extends stream.Transform { - /** * Initializes a new instance of a Converter * @param {ConverterOptions} options converter options diff --git a/csvtojson/tsconfig.json b/types/csvtojson/tsconfig.json similarity index 100% rename from csvtojson/tsconfig.json rename to types/csvtojson/tsconfig.json diff --git a/csvtojson/tslint.json b/types/csvtojson/tslint.json similarity index 100% rename from csvtojson/tslint.json rename to types/csvtojson/tslint.json diff --git a/cucumber/cucumber-tests.ts b/types/cucumber/cucumber-tests.ts similarity index 100% rename from cucumber/cucumber-tests.ts rename to types/cucumber/cucumber-tests.ts diff --git a/cucumber/index.d.ts b/types/cucumber/index.d.ts similarity index 100% rename from cucumber/index.d.ts rename to types/cucumber/index.d.ts diff --git a/cucumber/tsconfig.json b/types/cucumber/tsconfig.json similarity index 100% rename from cucumber/tsconfig.json rename to types/cucumber/tsconfig.json diff --git a/cucumber/v1/cucumber-tests.ts b/types/cucumber/v1/cucumber-tests.ts similarity index 100% rename from cucumber/v1/cucumber-tests.ts rename to types/cucumber/v1/cucumber-tests.ts diff --git a/cucumber/v1/index.d.ts b/types/cucumber/v1/index.d.ts similarity index 100% rename from cucumber/v1/index.d.ts rename to types/cucumber/v1/index.d.ts diff --git a/cucumber/v1/tsconfig.json b/types/cucumber/v1/tsconfig.json similarity index 100% rename from cucumber/v1/tsconfig.json rename to types/cucumber/v1/tsconfig.json diff --git a/cuid/cuid-tests.ts b/types/cuid/cuid-tests.ts similarity index 100% rename from cuid/cuid-tests.ts rename to types/cuid/cuid-tests.ts diff --git a/cuid/index.d.ts b/types/cuid/index.d.ts similarity index 100% rename from cuid/index.d.ts rename to types/cuid/index.d.ts diff --git a/cuid/tsconfig.json b/types/cuid/tsconfig.json similarity index 100% rename from cuid/tsconfig.json rename to types/cuid/tsconfig.json diff --git a/currency-formatter/currencies.d.ts b/types/currency-formatter/currencies.d.ts similarity index 100% rename from currency-formatter/currencies.d.ts rename to types/currency-formatter/currencies.d.ts diff --git a/currency-formatter/currency-formatter-tests.ts b/types/currency-formatter/currency-formatter-tests.ts similarity index 100% rename from currency-formatter/currency-formatter-tests.ts rename to types/currency-formatter/currency-formatter-tests.ts diff --git a/currency-formatter/index.d.ts b/types/currency-formatter/index.d.ts similarity index 100% rename from currency-formatter/index.d.ts rename to types/currency-formatter/index.d.ts diff --git a/currency-formatter/tsconfig.json b/types/currency-formatter/tsconfig.json similarity index 100% rename from currency-formatter/tsconfig.json rename to types/currency-formatter/tsconfig.json diff --git a/currency-formatter/tslint.json b/types/currency-formatter/tslint.json similarity index 100% rename from currency-formatter/tslint.json rename to types/currency-formatter/tslint.json diff --git a/custom-error-generator/custom-error-generator-tests.ts b/types/custom-error-generator/custom-error-generator-tests.ts similarity index 100% rename from custom-error-generator/custom-error-generator-tests.ts rename to types/custom-error-generator/custom-error-generator-tests.ts diff --git a/custom-error-generator/index.d.ts b/types/custom-error-generator/index.d.ts similarity index 100% rename from custom-error-generator/index.d.ts rename to types/custom-error-generator/index.d.ts diff --git a/custom-error-generator/tsconfig.json b/types/custom-error-generator/tsconfig.json similarity index 100% rename from custom-error-generator/tsconfig.json rename to types/custom-error-generator/tsconfig.json diff --git a/cybozulabs-md5/cybozulabs-md5-tests.ts b/types/cybozulabs-md5/cybozulabs-md5-tests.ts similarity index 100% rename from cybozulabs-md5/cybozulabs-md5-tests.ts rename to types/cybozulabs-md5/cybozulabs-md5-tests.ts diff --git a/cybozulabs-md5/index.d.ts b/types/cybozulabs-md5/index.d.ts similarity index 100% rename from cybozulabs-md5/index.d.ts rename to types/cybozulabs-md5/index.d.ts diff --git a/cybozulabs-md5/tsconfig.json b/types/cybozulabs-md5/tsconfig.json similarity index 100% rename from cybozulabs-md5/tsconfig.json rename to types/cybozulabs-md5/tsconfig.json diff --git a/d3-array/d3-array-tests.ts b/types/d3-array/d3-array-tests.ts similarity index 99% rename from d3-array/d3-array-tests.ts rename to types/d3-array/d3-array-tests.ts index 7dbe08bad0..bb713192e8 100644 --- a/d3-array/d3-array-tests.ts +++ b/types/d3-array/d3-array-tests.ts @@ -26,7 +26,6 @@ class NumCoercible { } class MixedObject { - num: number; str: string; numeric: NumCoercible; @@ -289,7 +288,6 @@ num = mixedObjectDateBisectorObject.right(mixedObjectArray, new Date(2015, 3, 14 num = mixedObjectDateBisectorObject.right(mixedObjectArray, new Date(2015, 3, 14), 1); num = mixedObjectDateBisectorObject.right(mixedObjectArray, new Date(2015, 3, 14), 3, 4); - // ascending() ----------------------------------------------------------------- num = d3Array.ascending(undefined, 20); @@ -339,12 +337,11 @@ crossed = d3Array.cross(['x', 'y'], [1, 2]); let strArray: string[] = d3Array.cross([2, 3], [5, 6], (a, b) => (a + b) + 'px'); strArray = d3Array.cross([2, 3], [5, 6], (a, b) => { - let aa: number = a; - let bb: number = b; + const aa: number = a; + const bb: number = b; return (aa + bb) + 'px'; }); - // pairs() --------------------------------------------------------------------- let pairs: Array<[MixedObject, MixedObject]>; @@ -353,8 +350,8 @@ pairs = d3Array.pairs(mergedArray); numbersArray = d3Array.pairs(mergedArray, (a, b) => b.num - a.num); numbersArray = d3Array.pairs(mergedArray, (a, b) => { - let aa: MixedObject = a; - let bb: MixedObject = b; + const aa: MixedObject = a; + const bb: MixedObject = b; return bb.num - aa.num; }); @@ -374,7 +371,6 @@ const testObject = { const x: Array = d3Array.permute(testObject, ['name', 'val', 'when', 'more']); - // range() --------------------------------------------------------------------- numbersArray = d3Array.range(10); @@ -389,7 +385,6 @@ mergedArray = d3Array.shuffle(mergedArray, 1); mergedArray = d3Array.shuffle(mergedArray, 1, 3); - // ticks() --------------------------------------------------------------------- numbersArray = d3Array.ticks(1, 10, 5); @@ -519,8 +514,6 @@ const mixedObject: MixedObject = testBin[0]; // with element type MixedObject date = testBin.x0; // bin lower bound is Date date = testBin.x1; // bin upper bound is Date - - // Histogram Tresholds ========================================================= num = d3Array.thresholdFreedmanDiaconis([-1, 0, 1, 1, 3, 20, 234], -1, 234); diff --git a/d3-array/index.d.ts b/types/d3-array/index.d.ts similarity index 99% rename from d3-array/index.d.ts rename to types/d3-array/index.d.ts index d938a8c032..ccd2d568bb 100644 --- a/d3-array/index.d.ts +++ b/types/d3-array/index.d.ts @@ -9,7 +9,6 @@ // Shared Types and Interfaces // -------------------------------------------------------------------------- - /** * Administrivia: JavaScript primitive types and Date */ @@ -26,7 +25,6 @@ interface Numeric { // Descriptive Statistics // -------------------------------------------------------------------------------------- - /** * Return the maximum value in the array of strings using natural order. */ @@ -67,8 +65,6 @@ export function min(array: T[], accessor: (datum: T, index: number, array: T[ */ export function min(array: T[], accessor: (datum: T, index: number, array: T[]) => U | undefined | null): U | undefined; - - /** * Return the min and max simultaneously. */ @@ -139,7 +135,6 @@ export function variance(array: Array): */ export function variance(array: T[], accessor: (datum: T, index: number, array: T[]) => number | undefined | null): number | undefined; - // -------------------------------------------------------------------------------------- // Searching Arrays // -------------------------------------------------------------------------------------- @@ -155,7 +150,7 @@ export function bisectRight(array: number[], x: number, lo?: number, hi?: number export function bisectRight(array: string[], x: string, lo?: number, hi?: number): number; export function bisectRight(array: Date[], x: Date, lo?: number, hi?: number): number; -export var bisect: typeof bisectRight; +export const bisect: typeof bisectRight; export interface Bisector { left: (array: T[], x: U, lo?: number, hi?: number) => number; @@ -244,7 +239,6 @@ export function range(stop: number): number[]; */ export function range(start: number, stop: number, step?: number): number[]; - /** * Randomizes the order of the specified array using the Fisher–Yates shuffle. */ @@ -261,13 +255,11 @@ export function ticks(start: number, stop: number, count: number): number[]; */ export function tickStep(start: number, stop: number, count: number): number[]; - /** * Transpose a matrix provided in Array of Arrays format. */ export function transpose(matrix: T[][]): T[][]; - /** * Returns an array of arrays, where the ith array contains the ith element from each of the argument arrays. * The returned array is truncated in length to the shortest array in arrays. If arrays contains only a single array, the returned array @@ -294,8 +286,6 @@ export type ThresholdCountGenerator = (values: number[], min?: number, max?: num */ export type ThresholdArrayGenerator = (values: Value[], min?: Value, max?: Value) => Value[]; - - export interface HistogramGenerator { (data: Datum[]): Array>; value(): (d: Datum, i: number, data: Datum[]) => Value; diff --git a/d3-array/tsconfig.json b/types/d3-array/tsconfig.json similarity index 100% rename from d3-array/tsconfig.json rename to types/d3-array/tsconfig.json diff --git a/d3-array/tslint.json b/types/d3-array/tslint.json similarity index 100% rename from d3-array/tslint.json rename to types/d3-array/tslint.json diff --git a/d3-axis/d3-axis-tests.ts b/types/d3-axis/d3-axis-tests.ts similarity index 99% rename from d3-axis/d3-axis-tests.ts rename to types/d3-axis/d3-axis-tests.ts index 1a4077d690..f2b47beaa8 100644 --- a/d3-axis/d3-axis-tests.ts +++ b/types/d3-axis/d3-axis-tests.ts @@ -26,8 +26,6 @@ import { Transition } from 'd3-transition'; import { timeMinute } from 'd3-time'; import { format } from 'd3-format'; - - // -------------------------------------------------------------------------- // Preparatory Steps // -------------------------------------------------------------------------- @@ -81,8 +79,6 @@ leftAxis = leftAxis.scale(scalePow()); const powerScale: ScalePower = leftAxis.scale>(); // powerScale = leftAxis.scale(); // fails, without casting as AxisScale is purposely generic - - bottomAxis = bottomAxis.scale(scaleOrdinal()); // bottomAxis = bottomAxis.scale(scalePow()) // fails, domain of scale incompatible with domain of axis diff --git a/d3-axis/index.d.ts b/types/d3-axis/index.d.ts similarity index 99% rename from d3-axis/index.d.ts rename to types/d3-axis/index.d.ts index cd8ed94714..4a65952070 100644 --- a/d3-axis/index.d.ts +++ b/types/d3-axis/index.d.ts @@ -11,7 +11,6 @@ import { Selection, TransitionLike } from 'd3-selection'; // Shared Types and Interfaces // -------------------------------------------------------------------------- - /** * A helper interface to describe the minimal contract to be met by a time interval * which can be passed into the Axis.ticks(...) or Axis.tickArguments(...) methods when @@ -171,7 +170,6 @@ export interface Axis { */ tickValues(values: null): this; - /** * Returns the currently set tick format function, which defaults to null. */ @@ -258,7 +256,6 @@ export interface Axis { * @param padding Padding in pixels (Default is 3). */ tickPadding(padding: number): this; - } /** diff --git a/d3-axis/tsconfig.json b/types/d3-axis/tsconfig.json similarity index 100% rename from d3-axis/tsconfig.json rename to types/d3-axis/tsconfig.json diff --git a/d3-axis/tslint.json b/types/d3-axis/tslint.json similarity index 100% rename from d3-axis/tslint.json rename to types/d3-axis/tslint.json diff --git a/d3-box/d3-box-tests.ts b/types/d3-box/d3-box-tests.ts similarity index 100% rename from d3-box/d3-box-tests.ts rename to types/d3-box/d3-box-tests.ts diff --git a/d3-box/index.d.ts b/types/d3-box/index.d.ts similarity index 100% rename from d3-box/index.d.ts rename to types/d3-box/index.d.ts diff --git a/d3-box/tsconfig.json b/types/d3-box/tsconfig.json similarity index 100% rename from d3-box/tsconfig.json rename to types/d3-box/tsconfig.json diff --git a/d3-brush/d3-brush-tests.ts b/types/d3-brush/d3-brush-tests.ts similarity index 99% rename from d3-brush/d3-brush-tests.ts rename to types/d3-brush/d3-brush-tests.ts index 367cc05d1b..2d9ee319aa 100644 --- a/d3-brush/d3-brush-tests.ts +++ b/types/d3-brush/d3-brush-tests.ts @@ -19,7 +19,6 @@ interface BrushDatum { filterZoomEvent: boolean; } - // ----------------------------------------------------------------------------- // Test Define BrushBehavior // ----------------------------------------------------------------------------- @@ -48,7 +47,6 @@ brush = brush.extent(function(d, i, group) { // chainable brush = brush.filter(function(d, i, group) { - // Cast d3 event to D3ZoomEvent to be used in filter logic const e = > event; @@ -80,7 +78,6 @@ brush = brush.on('end', brushed); // brush = brush.on('end', wrongHandler1); // fails, wrongHandler event handler has wrong this // brush = brush.on('end', wrongHandler2); // fails, wrongHandler event handler has wrong datum type - brushed = brush.on('end'); // chainable remove handler @@ -97,8 +94,6 @@ brush.on('end', function(d, i, g) { // do anything }); - - // ----------------------------------------------------------------------------- // Test Attach Brush Behavior // ----------------------------------------------------------------------------- @@ -121,10 +116,8 @@ const gX = select('svg') filterZoomEvent: true }); - gX.call(brushX); - // ----------------------------------------------------------------------------- // Test Use Brush Behavior // ----------------------------------------------------------------------------- @@ -155,7 +148,6 @@ brush.move(gTransition, function(d, i, group) { return selection; }); - const gXTransition = gX.transition(); // 1d brush move with Selection @@ -178,15 +170,12 @@ brush.move(gXTransition, function(d, i, group) { return selection; }); - // ----------------------------------------------------------------------------- // Test Brush Event Interface // ----------------------------------------------------------------------------- - const e: d3Brush.D3BrushEvent = event; - const target: d3Brush.BrushBehavior = e.target; const type: 'start' | 'brush' | 'end' | string = e.type; const brushSelection: d3Brush.BrushSelection = e.selection; diff --git a/d3-brush/index.d.ts b/types/d3-brush/index.d.ts similarity index 99% rename from d3-brush/index.d.ts rename to types/d3-brush/index.d.ts index 5c89465bce..644e6c06f7 100644 --- a/d3-brush/index.d.ts +++ b/types/d3-brush/index.d.ts @@ -189,7 +189,6 @@ export interface BrushBehavior { * with this as the current DOM element. */ on(typenames: string, listener: ValueFn): this; - } /** diff --git a/d3-brush/tsconfig.json b/types/d3-brush/tsconfig.json similarity index 100% rename from d3-brush/tsconfig.json rename to types/d3-brush/tsconfig.json diff --git a/d3-brush/tslint.json b/types/d3-brush/tslint.json similarity index 100% rename from d3-brush/tslint.json rename to types/d3-brush/tslint.json diff --git a/d3-chord/d3-chord-tests.ts b/types/d3-chord/d3-chord-tests.ts similarity index 99% rename from d3-chord/d3-chord-tests.ts rename to types/d3-chord/d3-chord-tests.ts index c826c81fac..b66f39787a 100644 --- a/d3-chord/d3-chord-tests.ts +++ b/types/d3-chord/d3-chord-tests.ts @@ -10,7 +10,6 @@ import * as d3Chord from 'd3-chord'; import { select, Selection } from 'd3-selection'; import { ascending } from 'd3-array'; - // --------------------------------------------------------------------- // Preparatory Steps // --------------------------------------------------------------------- @@ -39,7 +38,6 @@ let numAccessor: (this: SVGPathElement, d: d3Chord.ChordSubgroup, ...args: any[] // Test Chord // --------------------------------------------------------------------- - // chord() create ChordLayout generator =============================== let chordLayout: d3Chord.ChordLayout; @@ -64,7 +62,6 @@ chordLayout = chordLayout.sortSubgroups(ascending); chordLayout = chordLayout.sortSubgroups(null); comparatorFn = chordLayout.sortSubgroups(); - // sortChords() -------------------------------------------------------- chordLayout = chordLayout.sortChords(ascending); @@ -75,10 +72,8 @@ comparatorFn = chordLayout.sortChords(); chords = chordLayout(matrix); - // Test supporting interfaces ========================================== - const length: number = chords.length; chordGroups = chords.groups; @@ -98,7 +93,6 @@ num = chordSubgroup.endAngle; num = chordSubgroup.value; num = chordSubgroup.index; - // --------------------------------------------------------------------- // Test Ribbon // --------------------------------------------------------------------- @@ -140,7 +134,6 @@ svgRibbon = svgRibbon.target(d => { subgroupAccessor = svgRibbon.target(); - // radius() ----------------------------------------------------------- canvasRibbon = canvasRibbon.radius(30); diff --git a/d3-chord/index.d.ts b/types/d3-chord/index.d.ts similarity index 100% rename from d3-chord/index.d.ts rename to types/d3-chord/index.d.ts diff --git a/d3-chord/tsconfig.json b/types/d3-chord/tsconfig.json similarity index 100% rename from d3-chord/tsconfig.json rename to types/d3-chord/tsconfig.json diff --git a/d3-chord/tslint.json b/types/d3-chord/tslint.json similarity index 100% rename from d3-chord/tslint.json rename to types/d3-chord/tslint.json diff --git a/d3-collection/d3-collection-tests.ts b/types/d3-collection/d3-collection-tests.ts similarity index 100% rename from d3-collection/d3-collection-tests.ts rename to types/d3-collection/d3-collection-tests.ts diff --git a/d3-collection/index.d.ts b/types/d3-collection/index.d.ts similarity index 100% rename from d3-collection/index.d.ts rename to types/d3-collection/index.d.ts diff --git a/d3-collection/tsconfig.json b/types/d3-collection/tsconfig.json similarity index 100% rename from d3-collection/tsconfig.json rename to types/d3-collection/tsconfig.json diff --git a/d3-color/d3-color-tests.ts b/types/d3-color/d3-color-tests.ts similarity index 100% rename from d3-color/d3-color-tests.ts rename to types/d3-color/d3-color-tests.ts diff --git a/d3-color/index.d.ts b/types/d3-color/index.d.ts similarity index 100% rename from d3-color/index.d.ts rename to types/d3-color/index.d.ts diff --git a/d3-color/tsconfig.json b/types/d3-color/tsconfig.json similarity index 100% rename from d3-color/tsconfig.json rename to types/d3-color/tsconfig.json diff --git a/d3-dispatch/d3-dispatch-tests.ts b/types/d3-dispatch/d3-dispatch-tests.ts similarity index 100% rename from d3-dispatch/d3-dispatch-tests.ts rename to types/d3-dispatch/d3-dispatch-tests.ts diff --git a/d3-dispatch/index.d.ts b/types/d3-dispatch/index.d.ts similarity index 100% rename from d3-dispatch/index.d.ts rename to types/d3-dispatch/index.d.ts diff --git a/d3-dispatch/tsconfig.json b/types/d3-dispatch/tsconfig.json similarity index 100% rename from d3-dispatch/tsconfig.json rename to types/d3-dispatch/tsconfig.json diff --git a/d3-drag/d3-drag-tests.ts b/types/d3-drag/d3-drag-tests.ts similarity index 100% rename from d3-drag/d3-drag-tests.ts rename to types/d3-drag/d3-drag-tests.ts diff --git a/d3-drag/index.d.ts b/types/d3-drag/index.d.ts similarity index 100% rename from d3-drag/index.d.ts rename to types/d3-drag/index.d.ts diff --git a/d3-drag/tsconfig.json b/types/d3-drag/tsconfig.json similarity index 100% rename from d3-drag/tsconfig.json rename to types/d3-drag/tsconfig.json diff --git a/d3-drag/tslint.json b/types/d3-drag/tslint.json similarity index 100% rename from d3-drag/tslint.json rename to types/d3-drag/tslint.json diff --git a/d3-dsv/d3-dsv-tests.ts b/types/d3-dsv/d3-dsv-tests.ts similarity index 100% rename from d3-dsv/d3-dsv-tests.ts rename to types/d3-dsv/d3-dsv-tests.ts diff --git a/d3-dsv/index.d.ts b/types/d3-dsv/index.d.ts similarity index 100% rename from d3-dsv/index.d.ts rename to types/d3-dsv/index.d.ts diff --git a/d3-dsv/tsconfig.json b/types/d3-dsv/tsconfig.json similarity index 100% rename from d3-dsv/tsconfig.json rename to types/d3-dsv/tsconfig.json diff --git a/d3-dsv/v0/d3-dsv-tests.ts b/types/d3-dsv/v0/d3-dsv-tests.ts similarity index 100% rename from d3-dsv/v0/d3-dsv-tests.ts rename to types/d3-dsv/v0/d3-dsv-tests.ts diff --git a/d3-dsv/v0/index.d.ts b/types/d3-dsv/v0/index.d.ts similarity index 100% rename from d3-dsv/v0/index.d.ts rename to types/d3-dsv/v0/index.d.ts diff --git a/d3-dsv/v0/tsconfig.json b/types/d3-dsv/v0/tsconfig.json similarity index 100% rename from d3-dsv/v0/tsconfig.json rename to types/d3-dsv/v0/tsconfig.json diff --git a/d3-dsv/v0/tslint.json b/types/d3-dsv/v0/tslint.json similarity index 100% rename from d3-dsv/v0/tslint.json rename to types/d3-dsv/v0/tslint.json diff --git a/d3-ease/d3-ease-tests.ts b/types/d3-ease/d3-ease-tests.ts similarity index 100% rename from d3-ease/d3-ease-tests.ts rename to types/d3-ease/d3-ease-tests.ts diff --git a/d3-ease/index.d.ts b/types/d3-ease/index.d.ts similarity index 100% rename from d3-ease/index.d.ts rename to types/d3-ease/index.d.ts diff --git a/d3-ease/tsconfig.json b/types/d3-ease/tsconfig.json similarity index 100% rename from d3-ease/tsconfig.json rename to types/d3-ease/tsconfig.json diff --git a/d3-ease/tslint.json b/types/d3-ease/tslint.json similarity index 100% rename from d3-ease/tslint.json rename to types/d3-ease/tslint.json diff --git a/d3-force/d3-force-tests.ts b/types/d3-force/d3-force-tests.ts similarity index 100% rename from d3-force/d3-force-tests.ts rename to types/d3-force/d3-force-tests.ts diff --git a/d3-force/index.d.ts b/types/d3-force/index.d.ts similarity index 100% rename from d3-force/index.d.ts rename to types/d3-force/index.d.ts diff --git a/d3-force/tsconfig.json b/types/d3-force/tsconfig.json similarity index 100% rename from d3-force/tsconfig.json rename to types/d3-force/tsconfig.json diff --git a/d3-force/tslint.json b/types/d3-force/tslint.json similarity index 100% rename from d3-force/tslint.json rename to types/d3-force/tslint.json diff --git a/d3-format/d3-format-tests.ts b/types/d3-format/d3-format-tests.ts similarity index 100% rename from d3-format/d3-format-tests.ts rename to types/d3-format/d3-format-tests.ts diff --git a/d3-format/index.d.ts b/types/d3-format/index.d.ts similarity index 100% rename from d3-format/index.d.ts rename to types/d3-format/index.d.ts diff --git a/d3-format/tsconfig.json b/types/d3-format/tsconfig.json similarity index 100% rename from d3-format/tsconfig.json rename to types/d3-format/tsconfig.json diff --git a/d3-geo/d3-geo-tests.ts b/types/d3-geo/d3-geo-tests.ts similarity index 80% rename from d3-geo/d3-geo-tests.ts rename to types/d3-geo/d3-geo-tests.ts index a29dce0e8b..b5ad28f3e2 100644 --- a/d3-geo/d3-geo-tests.ts +++ b/types/d3-geo/d3-geo-tests.ts @@ -144,7 +144,7 @@ contained = d3Geo.geoContains(sampleExtendedFeatureCollection, [0, 0]); // geoDistance(...) ======================================================= -let distance: number = d3Geo.geoDistance([54, 2], [53, 1]); +const distance: number = d3Geo.geoDistance([54, 2], [53, 1]); // geoLength(...) ========================================================= @@ -160,19 +160,19 @@ length = d3Geo.geoLength(sampleExtendedFeatureCollection); // geoInterpolate(...) ==================================================== -let interpolateFct: (t: number) => [number, number] = d3Geo.geoInterpolate([54, 2], [53, 1]); +const interpolateFct: (t: number) => [number, number] = d3Geo.geoInterpolate([54, 2], [53, 1]); // geoRotation(...) ======================================================= // create rotation ----------------------------------------------------- -let rotation: d3Geo.GeoRotation = d3Geo.geoRotation([90, 45]); -let rotation2: d3Geo.GeoRotation = d3Geo.geoRotation([90, 45, 27.5]); +const rotation: d3Geo.GeoRotation = d3Geo.geoRotation([90, 45]); +const rotation2: d3Geo.GeoRotation = d3Geo.geoRotation([90, 45, 27.5]); // use rotation -------------------------------------------------------- -let point: [number, number] = rotation([54, 2]); -let inverted: [number, number] = rotation.invert([54, 2]); +const point: [number, number] = rotation([54, 2]); +const inverted: [number, number] = rotation.invert([54, 2]); // ---------------------------------------------------------------------- // Spherical Shapes - geoCircle @@ -185,24 +185,23 @@ let circleGeneratorSimple: d3Geo.GeoCircleGenerator = d3Geo.geoCircle( // complex use as part of object class Circulator { - constructor(radius: number, precision: number) { this.r = radius; this.p = precision; this.circleGenerator = d3Geo.geoCircle() - .radius(function (datum) { - let t: Circulator = this; - let d: [number, number] | undefined = datum; + .radius(function(datum) { + const t: Circulator = this; + const d: [number, number] | undefined = datum; return this.r; }) - .precision(function (datum) { - let t: Circulator = this; - let d: [number, number] | undefined = datum; + .precision(function(datum) { + const t: Circulator = this; + const d: [number, number] | undefined = datum; return this.p; }) - .center(function (datum) { - let t: Circulator = this; - let d: [number, number] | undefined = datum; + .center(function(datum) { + const t: Circulator = this; + const d: [number, number] | undefined = datum; return d ? d : [0, 0]; }); } @@ -219,28 +218,28 @@ class Circulator { } } -let circulator = new Circulator(50, 2); +const circulator = new Circulator(50, 2); // Configure CircleGenerator ============================================ // center(...) ---------------------------------------------------------- -let centerFctSimple: ((this: any, d: any, ...args: any[]) => [number, number]) = circleGeneratorSimple.center(); +const centerFctSimple: ((this: any, d: any, ...args: any[]) => [number, number]) = circleGeneratorSimple.center(); -let c: [number, number] = [54, 2]; +const c: [number, number] = [54, 2]; circleGeneratorSimple = circleGeneratorSimple.center(() => c); circleGeneratorSimple = circleGeneratorSimple.center(c); // radius(...) ----------------------------------------------------------- -let radius: ((...args: any[]) => number) = circleGeneratorSimple.radius(); +const radius: ((...args: any[]) => number) = circleGeneratorSimple.radius(); circleGeneratorSimple = circleGeneratorSimple.radius(() => 5); circleGeneratorSimple = circleGeneratorSimple.radius(2); // precision(...) -------------------------------------------------------- -let precision: ((...args: any[]) => number) = circleGeneratorSimple.precision(); +const precision: ((...args: any[]) => number) = circleGeneratorSimple.precision(); circleGeneratorSimple = circleGeneratorSimple.precision(() => 5); circleGeneratorSimple = circleGeneratorSimple.precision(2); @@ -253,7 +252,6 @@ let circlePolygon: GeoJSON.Polygon = circleGeneratorSimple(); circlePolygon = circulator.getCirclePolygon([5, 5]); circlePolygon = circulator.getCirclePolygon(); - // ---------------------------------------------------------------------- // Spherical Shapes - geoGraticule // ---------------------------------------------------------------------- @@ -266,44 +264,44 @@ let graticuleGenerator: d3Geo.GeoGraticuleGenerator = d3Geo.geoGraticule(); // extent(...) ----------------------------------------------------------- -let extent: [[number, number], [number, number]] = graticuleGenerator.extent(); +const extent: [[number, number], [number, number]] = graticuleGenerator.extent(); graticuleGenerator = graticuleGenerator.extent([[-180, -80], [180, 80]]); // extentMajor(...) --------------------------------------------------------- -let extentMajor: [[number, number], [number, number]] = graticuleGenerator.extentMajor(); +const extentMajor: [[number, number], [number, number]] = graticuleGenerator.extentMajor(); graticuleGenerator = graticuleGenerator.extentMajor([[-180, -80], [180, 80]]); // extentMinor(...) --------------------------------------------------------- -let extentMinor: [[number, number], [number, number]] = graticuleGenerator.extentMinor(); +const extentMinor: [[number, number], [number, number]] = graticuleGenerator.extentMinor(); graticuleGenerator = graticuleGenerator.extentMinor([[-180, -80], [180, 80]]); // step(...) ---------------------------------------------------------------- -let step: [number, number] = graticuleGenerator.step(); +const step: [number, number] = graticuleGenerator.step(); graticuleGenerator = graticuleGenerator.step([10, 10]); // stepMajor(...) ----------------------------------------------------------- -let stepMajor: [number, number] = graticuleGenerator.stepMajor(); +const stepMajor: [number, number] = graticuleGenerator.stepMajor(); graticuleGenerator = graticuleGenerator.stepMajor([10, 10]); // stepMinor(...) ------------------------------------------------------------ -let stepMinor: [number, number] = graticuleGenerator.stepMinor(); +const stepMinor: [number, number] = graticuleGenerator.stepMinor(); graticuleGenerator = graticuleGenerator.stepMinor([10, 10]); // precision(...) ------------------------------------------------------------- -let precision1: number = graticuleGenerator.precision(); +const precision1: number = graticuleGenerator.precision(); graticuleGenerator = graticuleGenerator.precision(5); // Use GeoGraticuleGenerator ============================================ let multiString: GeoJSON.MultiLineString = graticuleGenerator(); -let lines: GeoJSON.LineString[] = graticuleGenerator.lines(); -let polygon2: GeoJSON.Polygon = graticuleGenerator.outline(); +const lines: GeoJSON.LineString[] = graticuleGenerator.lines(); +const polygon2: GeoJSON.Polygon = graticuleGenerator.outline(); // geoGraticule10() ===================================================== @@ -317,24 +315,22 @@ multiString = d3Geo.geoGraticule10(); // Pre-Defined Raw Projection Factories ================================= -let azimuthalEqualAreaRaw: d3Geo.GeoRawProjection = d3Geo.geoAzimuthalEqualAreaRaw(); -let azimuthalEquidistantRaw: d3Geo.GeoRawProjection = d3Geo.geoAzimuthalEquidistantRaw(); -let conicConformalRaw: d3Geo.GeoRawProjection = d3Geo.geoConicConformalRaw(0, 0); -let conicEqualAreaRaw: d3Geo.GeoRawProjection = d3Geo.geoConicEqualAreaRaw(0, 0); -let conicEquidistantRaw: d3Geo.GeoRawProjection = d3Geo.geoConicEquidistantRaw(0, 0); -let equirectangularRaw: d3Geo.GeoRawProjection = d3Geo.geoEquirectangularRaw(); -let gnomonicRaw: d3Geo.GeoRawProjection = d3Geo.geoGnomonicRaw(); -let mercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoMercatorRaw(); -let orthographicRaw: d3Geo.GeoRawProjection = d3Geo.geoOrthographicRaw(); -let stereographicRaw: d3Geo.GeoRawProjection = d3Geo.geoStereographicRaw(); -let transverseMercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoTransverseMercatorRaw(); +const azimuthalEqualAreaRaw: d3Geo.GeoRawProjection = d3Geo.geoAzimuthalEqualAreaRaw(); +const azimuthalEquidistantRaw: d3Geo.GeoRawProjection = d3Geo.geoAzimuthalEquidistantRaw(); +const conicConformalRaw: d3Geo.GeoRawProjection = d3Geo.geoConicConformalRaw(0, 0); +const conicEqualAreaRaw: d3Geo.GeoRawProjection = d3Geo.geoConicEqualAreaRaw(0, 0); +const conicEquidistantRaw: d3Geo.GeoRawProjection = d3Geo.geoConicEquidistantRaw(0, 0); +const equirectangularRaw: d3Geo.GeoRawProjection = d3Geo.geoEquirectangularRaw(); +const gnomonicRaw: d3Geo.GeoRawProjection = d3Geo.geoGnomonicRaw(); +const mercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoMercatorRaw(); +const orthographicRaw: d3Geo.GeoRawProjection = d3Geo.geoOrthographicRaw(); +const stereographicRaw: d3Geo.GeoRawProjection = d3Geo.geoStereographicRaw(); +const transverseMercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoTransverseMercatorRaw(); // Use Raw Projection ===================================================== -let rawProjectionPoint: [number, number] = azimuthalEqualAreaRaw(54, 2); -let rawProjectionInvertedPoint: [number, number] = azimuthalEqualAreaRaw.invert(180, 6); - - +const rawProjectionPoint: [number, number] = azimuthalEqualAreaRaw(54, 2); +const rawProjectionInvertedPoint: [number, number] = azimuthalEqualAreaRaw.invert(180, 6); // ---------------------------------------------------------------------- // Pre-Defined Projections @@ -342,39 +338,38 @@ let rawProjectionInvertedPoint: [number, number] = azimuthalEqualAreaRaw.invert( // Create predefined Projection from factory ============================= -let albers: d3Geo.GeoConicProjection = d3Geo.geoAlbers(); -let albersUsa: d3Geo.GeoProjection = d3Geo.geoAlbersUsa(); -let azimuthalEqualArea: d3Geo.GeoProjection = d3Geo.geoAzimuthalEqualArea(); -let azimuthalEquidistant: d3Geo.GeoProjection = d3Geo.geoAzimuthalEquidistant(); +const albers: d3Geo.GeoConicProjection = d3Geo.geoAlbers(); +const albersUsa: d3Geo.GeoProjection = d3Geo.geoAlbersUsa(); +const azimuthalEqualArea: d3Geo.GeoProjection = d3Geo.geoAzimuthalEqualArea(); +const azimuthalEquidistant: d3Geo.GeoProjection = d3Geo.geoAzimuthalEquidistant(); let conicConformal: d3Geo.GeoConicProjection = d3Geo.geoConicConformal(); -let conicEqualArea: d3Geo.GeoConicProjection = d3Geo.geoConicEqualArea(); -let conicEquidistant: d3Geo.GeoConicProjection = d3Geo.geoConicEquidistant(); -let cquirectangular: d3Geo.GeoProjection = d3Geo.geoEquirectangular(); -let gnomonic: d3Geo.GeoProjection = d3Geo.geoGnomonic(); -let mercator: d3Geo.GeoProjection = d3Geo.geoMercator(); -let orthographic: d3Geo.GeoProjection = d3Geo.geoOrthographic(); -let stereographic: d3Geo.GeoProjection = d3Geo.geoStereographic(); -let transverseMercator: d3Geo.GeoProjection = d3Geo.geoTransverseMercator(); +const conicEqualArea: d3Geo.GeoConicProjection = d3Geo.geoConicEqualArea(); +const conicEquidistant: d3Geo.GeoConicProjection = d3Geo.geoConicEquidistant(); +const cquirectangular: d3Geo.GeoProjection = d3Geo.geoEquirectangular(); +const gnomonic: d3Geo.GeoProjection = d3Geo.geoGnomonic(); +const mercator: d3Geo.GeoProjection = d3Geo.geoMercator(); +const orthographic: d3Geo.GeoProjection = d3Geo.geoOrthographic(); +const stereographic: d3Geo.GeoProjection = d3Geo.geoStereographic(); +const transverseMercator: d3Geo.GeoProjection = d3Geo.geoTransverseMercator(); // ---------------------------------------------------------------------- // Create New Projections // ---------------------------------------------------------------------- +const geoProjection: d3Geo.GeoProjection = d3Geo.geoProjection(azimuthalEqualAreaRaw); -let geoProjection: d3Geo.GeoProjection = d3Geo.geoProjection(azimuthalEqualAreaRaw); - -let mutate: () => d3Geo.GeoProjection = d3Geo.geoProjectionMutator(() => azimuthalEqualAreaRaw); +const mutate: () => d3Geo.GeoProjection = d3Geo.geoProjectionMutator(() => azimuthalEqualAreaRaw); let constructedProjection: d3Geo.GeoProjection = mutate(); // Use Projection ========================================================== -let projected: [number, number] = constructedProjection([54, 2]); -let inverted2: [number, number] = constructedProjection.invert([54, 2]); +const projected: [number, number] = constructedProjection([54, 2]); +const inverted2: [number, number] = constructedProjection.invert([54, 2]); // TODO ????? // let stream: d3Geo.Stream = constructedProjection.stream([54, 2]); -let clipAngle: number = constructedProjection.clipAngle(); +const clipAngle: number = constructedProjection.clipAngle(); constructedProjection = constructedProjection.clipAngle(null); constructedProjection = constructedProjection.clipAngle(45); @@ -388,14 +383,14 @@ constructedProjection = constructedProjection.scale(45); let translate: [number, number] = constructedProjection.translate(); constructedProjection = constructedProjection.translate([480, 250]); -let center: [number, number] = constructedProjection.center(); +const center: [number, number] = constructedProjection.center(); constructedProjection = constructedProjection.center([0, 0]); -let rotate: [number, number, number] = constructedProjection.rotate(); +const rotate: [number, number, number] = constructedProjection.rotate(); constructedProjection = constructedProjection.rotate([0, 0]); constructedProjection = constructedProjection.rotate([0, 0, 0]); -let precision2: number = constructedProjection.precision(); +const precision2: number = constructedProjection.precision(); constructedProjection = constructedProjection.precision(0.707); constructedProjection = constructedProjection.fitExtent([[0, 0], [960, 500]], samplePolygon); @@ -423,7 +418,7 @@ constructedProjection = constructedProjection.fitSize([960, 500], sampleExtended // ---------------------------------------------------------------------- // parallels(...) ------------------------------------------------------ -let parallels: [number, number] = conicConformal.parallels(); +const parallels: [number, number] = conicConformal.parallels(); conicConformal = conicConformal.parallels([20, 20]); // test method inheritance from GeoProjection --------------------------- @@ -434,7 +429,7 @@ conicConformal = conicConformal.fitSize([960, 500], samplePolygon); // inherited // GeoPath Generator // ---------------------------------------------------------------------- -let minimalRenderingContextMockUp: d3Geo.GeoContext = { +const minimalRenderingContextMockUp: d3Geo.GeoContext = { beginPath: () => { return; }, moveTo: (x: number, y: number) => { return; }, lineTo: (x: number, y: number) => { return; }, @@ -460,12 +455,12 @@ geoPathSVG = d3Geo.geoPath(); +const geoPathProjectionMinimal: d3Geo.GeoStreamWrapper = geoPathCanvas.projection(); +const geoPathProjectionUnion: d3Geo.GeoProjection | d3Geo.GeoConicProjection | d3Geo.GeoStreamWrapper = geoPathCanvas.projection(); +const geoPathProjection: d3Geo.GeoProjection = geoPathCanvas.projection(); geoPathSVG = geoPathSVG.projection(conicConformal); -let geoPathConicProjection: d3Geo.GeoConicProjection = geoPathSVG.projection(); +const geoPathConicProjection: d3Geo.GeoConicProjection = geoPathSVG.projection(); // geoPathConicProjection = geoPathSVG.projection(); // fails without casting to GeoConicProjection, or alternatively custom typeguard // geoPathConicProjection = geoPathSVG.projection(); // fails as SampleProperties does not extend minimal interface @@ -474,8 +469,7 @@ let geoPathConicProjection: d3Geo.GeoConicProjection = geoPathSVG.projection(); // pointRadius(...) ------------------------------------------------------ geoPathCanvas = geoPathCanvas.pointRadius(5); -let geoPathCanvasPointRadiusAccessor: ((this: any, d: d3Geo.GeoPermissibleObjects, ...args: any[]) => number) | number = geoPathCanvas.pointRadius(); +const geoPathCanvasPointRadiusAccessor: ((this: any, d: d3Geo.GeoPermissibleObjects, ...args: any[]) => number) | number = geoPathCanvas.pointRadius(); -geoPathSVG = geoPathSVG.pointRadius(function (datum) { - let that: SVGPathElement = this; - let d: d3Geo.ExtendedFeature = datum; +geoPathSVG = geoPathSVG.pointRadius(function(datum) { + const that: SVGPathElement = this; + const d: d3Geo.ExtendedFeature = datum; return datum.properties.name === 'Alabama' ? 10 : 15; }); -let geoPathSVGPointRadiusAccessor: number | ((this: SVGPathElement, d: d3Geo.ExtendedFeature, ...args: any[]) => number) = geoPathSVG.pointRadius(); +const geoPathSVGPointRadiusAccessor: number | ((this: SVGPathElement, d: d3Geo.ExtendedFeature, ...args: any[]) => number) = geoPathSVG.pointRadius(); // let geoPathSVGPointRadiusAccessorWrong1: number | ((this: SVGCircleElement, d: d3Geo.ExtendedFeature, ...args: any[]) => number) // = geoPathSVG.pointRadius(); // fails, mismatch in this context // let geoPathSVGPointRadiusAccessorWrong2: number | ((this: SVGPathElement, d: d3Geo.GeoGeometryObjects, ...args: any[]) => number) = geoPathSVG.pointRadius(); // fails, mismatch in object datum type @@ -521,7 +515,6 @@ geoPathArea = geoPathCanvas.area(sampleExtendedFeatureCollection); // geoPathArea = geoPathSVG.area(sampleExtendedFeatureCollection); // fails, wrong data object type - // bounds(...) ------------------------------------------------------ let geoPathBounds: [[number, number], [number, number]] = geoPathCanvas.bounds(samplePolygon); @@ -550,7 +543,6 @@ geoPathCentroid = geoPathCanvas.centroid(sampleExtendedFeatureCollection); // geoPathCentroid = geoPathSVG.centroid(sampleExtendedFeatureCollection); // fails, wrong data object type - // measure(...) ------------------------------------------------------ let geoPathMeasure: number = geoPathCanvas.measure(samplePolygon); @@ -579,22 +571,19 @@ geoPathCanvas(sampleExtendedFeatureCollection); // Use path string generator for SVGPathElement -let svgPath: Selection, any, any>; +declare const svgPath: Selection, any, any>; svgPath.attr('d', geoPathSVG); -let svgCircleWrong: Selection, any, any>; +declare const svgCircleWrong: Selection, any, any>; // svgCircleWrong.attr('d', geoPathSVG); // fails, mismatch in `this` context -let svgPathWrong: Selection; +declare const svgPathWrong: Selection; // svgPathWrong.attr('d', geoPathSVG); // fails, mismatch in datum type - - - // ---------------------------------------------------------------------- // Context interface // ---------------------------------------------------------------------- -let context: d3Geo.GeoContext = { +const context: d3Geo.GeoContext = { beginPath: () => { return; }, moveTo: (x: number, y: number) => { return; }, lineTo: (x: number, y: number) => { return; }, @@ -608,7 +597,7 @@ let context: d3Geo.GeoContext = { // geoTransform(...) ==================================================== -let transformFunction: { stream: (s: d3Geo.GeoStream) => {} } = d3Geo.geoTransform({}); +const transformFunction: { stream: (s: d3Geo.GeoStream) => {} } = d3Geo.geoTransform({}); interface CustomTranformProto extends d3Geo.GeoTransformPrototype { a: number; @@ -617,14 +606,13 @@ interface CustomTranformProto extends d3Geo.GeoTransformPrototype { let customTransformProto: CustomTranformProto; customTransformProto = { - point: function (x, y) { + point(x, y) { return this.stream.point(x + this.a, -y); }, a: 10 }; -let t: { stream: (s: d3Geo.GeoStream) => (CustomTranformProto & d3Geo.GeoStream) } = d3Geo.geoTransform(customTransformProto); - +const t: { stream: (s: d3Geo.GeoStream) => (CustomTranformProto & d3Geo.GeoStream) } = d3Geo.geoTransform(customTransformProto); // geoIdentity() ======================================================== @@ -675,7 +663,7 @@ reflecting = identityTransform.reflectY(); // ---------------------------------------------------------------------- // Stream interface // ---------------------------------------------------------------------- -let stream: d3Geo.GeoStream; +declare const stream: d3Geo.GeoStream; stream.point(0, 0); stream.point(0, 0, 0); @@ -696,4 +684,3 @@ d3Geo.geoStream(sampleExtendedFeature1, stream); d3Geo.geoStream(sampleExtendedFeature2, stream); d3Geo.geoStream(sampleFeatureCollection, stream); d3Geo.geoStream(sampleExtendedFeatureCollection, stream); - diff --git a/d3-geo/index.d.ts b/types/d3-geo/index.d.ts similarity index 99% rename from d3-geo/index.d.ts rename to types/d3-geo/index.d.ts index dfc58a5f9e..1e9fed9b92 100644 --- a/d3-geo/index.d.ts +++ b/types/d3-geo/index.d.ts @@ -274,7 +274,6 @@ export interface GeoRotation { */ export function geoRotation(angles: [number, number] | [number, number, number]): GeoRotation; - // ---------------------------------------------------------------------- // Spherical Shapes // ---------------------------------------------------------------------- @@ -535,8 +534,6 @@ export interface GeoStream { sphere?(): void; } - - // geoStream(...) ======================================================= /** @@ -575,15 +572,10 @@ export function geoStream(object: GeoGeometryObjects, stream: GeoStream): void; */ export function geoStream(object: ExtendedGeometryCollection, stream: GeoStream): void; - - // ---------------------------------------------------------------------- // Projections // ---------------------------------------------------------------------- - - - /** * Raw projections are point transformation functions that are used to implement custom projections; they typically passed to d3.geoProjection or d3.geoProjectionMutator. * They are exposed here to facilitate the derivation of related projections. @@ -737,7 +729,6 @@ export interface GeoProjection extends GeoStreamWrapper { */ fitExtent(extent: [[number, number], [number, number]], object: ExtendedGeometryCollection): this; - /** * Sets the projection’s scale and translate to fit the specified geographic feature in the center of an extent with the given size and top-left corner of [0, 0]. * Returns the projection. @@ -845,7 +836,6 @@ export interface GeoProjection extends GeoStreamWrapper { * A Conic Projection */ export interface GeoConicProjection extends GeoProjection { - /** * Return the standard parallels for the conic projection in degrees. */ @@ -856,10 +846,8 @@ export interface GeoConicProjection extends GeoProjection { * @param value A two-dimensional array representing the standard parallels in degrees. */ parallels(value: [number, number]): this; - } - // geoPath ============================================================== /** @@ -869,7 +857,6 @@ export interface GeoConicProjection extends GeoProjection { * For reference to the CanvasRenderingContext2D see https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D */ export interface GeoContext { - /** * Adds an arc to the path with center point (x, y) and radius r starting at startAngle and ending at endAngle. * The arc is drawn in clockwise directio by default. @@ -921,7 +908,6 @@ export interface GeoContext { * The second generic corresponds to the type of the DatumObject which will be passed into the geo path generator for rendering. */ export interface GeoPath { - /** * Renders the given object, which may be any GeoJSON feature or geometry object: * @@ -1084,7 +1070,6 @@ export interface GeoPath { * It is passed the object to be rendered, and any additional arguments which have been passed into the call to the render function of the path generator. */ pointRadius(value: (this: This, object: DatumObject, ...args: any[]) => number): this; - } /** @@ -1143,9 +1128,6 @@ export function geoPath(projection?: */ export function geoPath(projection?: GeoProjection | GeoStreamWrapper | null, context?: GeoContext | null): GeoPath; - - - // geoProjection ========================================================== /** @@ -1366,7 +1348,6 @@ export function geoTransform(methods: T): { str * Geo Identity Transform */ export interface GeoIdentityTranform extends GeoStreamWrapper { - /** * Returns the current viewport clip extent which defaults to null. */ @@ -1431,7 +1412,6 @@ export interface GeoIdentityTranform extends GeoStreamWrapper { */ fitExtent(extent: [[number, number], [number, number]], object: ExtendedGeometryCollection): this; - /** * Sets the projection’s scale and translate to fit the specified geographic feature in the center of an extent with the given size and top-left corner of [0, 0]. * Returns the projection. diff --git a/d3-geo/tsconfig.json b/types/d3-geo/tsconfig.json similarity index 100% rename from d3-geo/tsconfig.json rename to types/d3-geo/tsconfig.json diff --git a/d3-geo/tslint.json b/types/d3-geo/tslint.json similarity index 100% rename from d3-geo/tslint.json rename to types/d3-geo/tslint.json diff --git a/d3-hexbin/d3-hexbin-tests.ts b/types/d3-hexbin/d3-hexbin-tests.ts similarity index 100% rename from d3-hexbin/d3-hexbin-tests.ts rename to types/d3-hexbin/d3-hexbin-tests.ts diff --git a/d3-hexbin/index.d.ts b/types/d3-hexbin/index.d.ts similarity index 100% rename from d3-hexbin/index.d.ts rename to types/d3-hexbin/index.d.ts diff --git a/d3-hexbin/tsconfig.json b/types/d3-hexbin/tsconfig.json similarity index 100% rename from d3-hexbin/tsconfig.json rename to types/d3-hexbin/tsconfig.json diff --git a/d3-hierarchy/d3-hierarchy-tests.ts b/types/d3-hierarchy/d3-hierarchy-tests.ts similarity index 100% rename from d3-hierarchy/d3-hierarchy-tests.ts rename to types/d3-hierarchy/d3-hierarchy-tests.ts diff --git a/d3-hierarchy/index.d.ts b/types/d3-hierarchy/index.d.ts similarity index 100% rename from d3-hierarchy/index.d.ts rename to types/d3-hierarchy/index.d.ts diff --git a/d3-hierarchy/tsconfig.json b/types/d3-hierarchy/tsconfig.json similarity index 100% rename from d3-hierarchy/tsconfig.json rename to types/d3-hierarchy/tsconfig.json diff --git a/d3-hsv/d3-hsv-tests.ts b/types/d3-hsv/d3-hsv-tests.ts similarity index 100% rename from d3-hsv/d3-hsv-tests.ts rename to types/d3-hsv/d3-hsv-tests.ts diff --git a/d3-hsv/index.d.ts b/types/d3-hsv/index.d.ts similarity index 100% rename from d3-hsv/index.d.ts rename to types/d3-hsv/index.d.ts diff --git a/d3-hsv/tsconfig.json b/types/d3-hsv/tsconfig.json similarity index 100% rename from d3-hsv/tsconfig.json rename to types/d3-hsv/tsconfig.json diff --git a/d3-interpolate/d3-interpolate-tests.ts b/types/d3-interpolate/d3-interpolate-tests.ts similarity index 100% rename from d3-interpolate/d3-interpolate-tests.ts rename to types/d3-interpolate/d3-interpolate-tests.ts diff --git a/d3-interpolate/index.d.ts b/types/d3-interpolate/index.d.ts similarity index 100% rename from d3-interpolate/index.d.ts rename to types/d3-interpolate/index.d.ts diff --git a/d3-interpolate/tsconfig.json b/types/d3-interpolate/tsconfig.json similarity index 100% rename from d3-interpolate/tsconfig.json rename to types/d3-interpolate/tsconfig.json diff --git a/d3-path/d3-path-tests.ts b/types/d3-path/d3-path-tests.ts similarity index 100% rename from d3-path/d3-path-tests.ts rename to types/d3-path/d3-path-tests.ts diff --git a/d3-path/index.d.ts b/types/d3-path/index.d.ts similarity index 100% rename from d3-path/index.d.ts rename to types/d3-path/index.d.ts diff --git a/d3-path/tsconfig.json b/types/d3-path/tsconfig.json similarity index 100% rename from d3-path/tsconfig.json rename to types/d3-path/tsconfig.json diff --git a/d3-polygon/d3-polygon-tests.ts b/types/d3-polygon/d3-polygon-tests.ts similarity index 100% rename from d3-polygon/d3-polygon-tests.ts rename to types/d3-polygon/d3-polygon-tests.ts diff --git a/d3-polygon/index.d.ts b/types/d3-polygon/index.d.ts similarity index 100% rename from d3-polygon/index.d.ts rename to types/d3-polygon/index.d.ts diff --git a/d3-polygon/tsconfig.json b/types/d3-polygon/tsconfig.json similarity index 100% rename from d3-polygon/tsconfig.json rename to types/d3-polygon/tsconfig.json diff --git a/d3-quadtree/d3-quadtree-tests.ts b/types/d3-quadtree/d3-quadtree-tests.ts similarity index 100% rename from d3-quadtree/d3-quadtree-tests.ts rename to types/d3-quadtree/d3-quadtree-tests.ts diff --git a/d3-quadtree/index.d.ts b/types/d3-quadtree/index.d.ts similarity index 100% rename from d3-quadtree/index.d.ts rename to types/d3-quadtree/index.d.ts diff --git a/d3-quadtree/tsconfig.json b/types/d3-quadtree/tsconfig.json similarity index 100% rename from d3-quadtree/tsconfig.json rename to types/d3-quadtree/tsconfig.json diff --git a/d3-queue/d3-queue-tests.ts b/types/d3-queue/d3-queue-tests.ts similarity index 100% rename from d3-queue/d3-queue-tests.ts rename to types/d3-queue/d3-queue-tests.ts diff --git a/d3-queue/index.d.ts b/types/d3-queue/index.d.ts similarity index 100% rename from d3-queue/index.d.ts rename to types/d3-queue/index.d.ts diff --git a/d3-queue/tsconfig.json b/types/d3-queue/tsconfig.json similarity index 100% rename from d3-queue/tsconfig.json rename to types/d3-queue/tsconfig.json diff --git a/d3-random/d3-random-tests.ts b/types/d3-random/d3-random-tests.ts similarity index 100% rename from d3-random/d3-random-tests.ts rename to types/d3-random/d3-random-tests.ts diff --git a/d3-random/index.d.ts b/types/d3-random/index.d.ts similarity index 100% rename from d3-random/index.d.ts rename to types/d3-random/index.d.ts diff --git a/d3-random/tsconfig.json b/types/d3-random/tsconfig.json similarity index 100% rename from d3-random/tsconfig.json rename to types/d3-random/tsconfig.json diff --git a/d3-request/d3-request-tests.ts b/types/d3-request/d3-request-tests.ts similarity index 100% rename from d3-request/d3-request-tests.ts rename to types/d3-request/d3-request-tests.ts diff --git a/d3-request/index.d.ts b/types/d3-request/index.d.ts similarity index 100% rename from d3-request/index.d.ts rename to types/d3-request/index.d.ts diff --git a/d3-request/tsconfig.json b/types/d3-request/tsconfig.json similarity index 100% rename from d3-request/tsconfig.json rename to types/d3-request/tsconfig.json diff --git a/d3-scale-chromatic/d3-scale-chromatic-tests.ts b/types/d3-scale-chromatic/d3-scale-chromatic-tests.ts similarity index 100% rename from d3-scale-chromatic/d3-scale-chromatic-tests.ts rename to types/d3-scale-chromatic/d3-scale-chromatic-tests.ts diff --git a/d3-scale-chromatic/index.d.ts b/types/d3-scale-chromatic/index.d.ts similarity index 100% rename from d3-scale-chromatic/index.d.ts rename to types/d3-scale-chromatic/index.d.ts diff --git a/d3-scale-chromatic/tsconfig.json b/types/d3-scale-chromatic/tsconfig.json similarity index 100% rename from d3-scale-chromatic/tsconfig.json rename to types/d3-scale-chromatic/tsconfig.json diff --git a/d3-scale/d3-scale-tests.ts b/types/d3-scale/d3-scale-tests.ts similarity index 100% rename from d3-scale/d3-scale-tests.ts rename to types/d3-scale/d3-scale-tests.ts diff --git a/d3-scale/index.d.ts b/types/d3-scale/index.d.ts similarity index 100% rename from d3-scale/index.d.ts rename to types/d3-scale/index.d.ts diff --git a/d3-scale/tsconfig.json b/types/d3-scale/tsconfig.json similarity index 100% rename from d3-scale/tsconfig.json rename to types/d3-scale/tsconfig.json diff --git a/d3-scale/tslint.json b/types/d3-scale/tslint.json similarity index 100% rename from d3-scale/tslint.json rename to types/d3-scale/tslint.json diff --git a/d3-selection-multi/d3-selection-multi-tests.ts b/types/d3-selection-multi/d3-selection-multi-tests.ts similarity index 100% rename from d3-selection-multi/d3-selection-multi-tests.ts rename to types/d3-selection-multi/d3-selection-multi-tests.ts diff --git a/d3-selection-multi/index.d.ts b/types/d3-selection-multi/index.d.ts similarity index 96% rename from d3-selection-multi/index.d.ts rename to types/d3-selection-multi/index.d.ts index 30268ad3aa..da3c64e5e3 100644 --- a/d3-selection-multi/index.d.ts +++ b/types/d3-selection-multi/index.d.ts @@ -8,7 +8,6 @@ import {Selection, BaseType, ArrayLike, ValueFn} from 'd3-selection'; import {Transition} from 'd3-transition'; - /** * An object mapping attribute (or style or property) names to value accessors * @@ -29,7 +28,7 @@ declare module 'd3-selection' { * The third generic "PElement" refers to the type of the parent element(s) in the D3 selection. * The fourth generic "PDatum" refers to the type of the datum of the parent element(s). */ - export interface Selection { + interface Selection { /** * Set multiple attributes on the given selection. Attribute values may be constant or derived from each node and its bound data. * @@ -85,7 +84,7 @@ declare module 'd3-transition' { * The third generic "PElement" refers to the type of the parent element(s) in the D3 selection in the Transition. * The fourth generic "PDatum" refers to the type of the datum of the parent element(s) in the Transition. */ - export interface Transition { + interface Transition { /** * Set multiple attribute values. The transition will animate from the present value to the new value. Attribute values may be constant or derived from each node and its bound data. * diff --git a/d3-selection-multi/tsconfig.json b/types/d3-selection-multi/tsconfig.json similarity index 100% rename from d3-selection-multi/tsconfig.json rename to types/d3-selection-multi/tsconfig.json diff --git a/d3-selection-multi/tslint.json b/types/d3-selection-multi/tslint.json similarity index 100% rename from d3-selection-multi/tslint.json rename to types/d3-selection-multi/tslint.json diff --git a/d3-selection/d3-selection-tests.ts b/types/d3-selection/d3-selection-tests.ts similarity index 100% rename from d3-selection/d3-selection-tests.ts rename to types/d3-selection/d3-selection-tests.ts diff --git a/d3-selection/index.d.ts b/types/d3-selection/index.d.ts similarity index 100% rename from d3-selection/index.d.ts rename to types/d3-selection/index.d.ts diff --git a/d3-selection/tsconfig.json b/types/d3-selection/tsconfig.json similarity index 100% rename from d3-selection/tsconfig.json rename to types/d3-selection/tsconfig.json diff --git a/d3-selection/tslint.json b/types/d3-selection/tslint.json similarity index 100% rename from d3-selection/tslint.json rename to types/d3-selection/tslint.json diff --git a/d3-shape/d3-shape-tests.ts b/types/d3-shape/d3-shape-tests.ts similarity index 99% rename from d3-shape/d3-shape-tests.ts rename to types/d3-shape/d3-shape-tests.ts index 204f1e7eb1..3ac854df2b 100644 --- a/d3-shape/d3-shape-tests.ts +++ b/types/d3-shape/d3-shape-tests.ts @@ -147,7 +147,6 @@ svgArc = svgArc.padRadius(null); accessorArcDatumNumberOrNull = svgArc.padRadius(); - // use Arc(...) generator ============================================================ // centroid(...) --------------------------------------------------------------------- @@ -160,7 +159,6 @@ const centroid: [number, number] = svgArc.centroid(arcDatum); // use with canvas canvasArc(arcDefaultDatum); - // use with svg const pArc: Selection = select('.arc-paths'); // mock @@ -171,7 +169,6 @@ pArc.attr('d', svgArc); // wrongArc1.attr('d', svgArc); // fails, incompatible this contexts // wrongArc2.attr('d', svgArc); // fails, incompatible datum types - // pathStringMaybe = svgArc(arcDatum); // fails, wrong this type for invocation // Use with custom object @@ -230,12 +227,10 @@ interface PieDatum { name: string; } - let accessorPieDatumNumber: (this: any, data: PieDatum[], ...args: any[]) => number; // PieArcDatum interface ============================================================= - const pieArcObject: d3Shape.PieArcDatum = { data: { val: 10, @@ -280,7 +275,6 @@ pie = pie.value((d, i, data) => { pieValueAccessor = pie.value(); - // sort(...) --------------------------------------------------------------------------- let pieSorter: ((a: PieDatum, b: PieDatum) => number) | null; @@ -332,7 +326,6 @@ defaultPie = defaultPie.padAngle(0.03); pie = pie.padAngle(d => { console.log(d.length > 0 ? d[0].val : 'no data'); // data type is Array return 0.03; - }); accessorPieDatumNumber = pie.padAngle(); @@ -351,7 +344,6 @@ let pieChart: Array>; pieChart = pie(pieData); - // ----------------------------------------------------------------------------------- // Test Line Generators // ----------------------------------------------------------------------------------- @@ -519,7 +511,6 @@ const radialLineData: RadialLineDatum[] = [ const radialLinePathStringMaybe: string | null = radialLine(radialLineData); - // ----------------------------------------------------------------------------------- // Test Area Generators // ----------------------------------------------------------------------------------- @@ -808,7 +799,6 @@ areaRadialLineGenerator = radialArea.lineInnerRadius(); areaRadialLineGenerator = radialArea.lineEndAngle(); areaRadialLineGenerator = radialArea.lineOuterRadius(); - // ----------------------------------------------------------------------------------- // Test Curve Factories // ----------------------------------------------------------------------------------- @@ -1002,7 +992,6 @@ pSymbol.attr('d', svgSymbol); // wrongSymbol1.attr('d', svgSymbol); // fails, incompatible this contexts // wrongSymbol2.attr('d', svgSymbol); // fails, incompatible datum types - // pathStringMaybe = svgSymbol(symbolDatum); // fails, wrong this type for invocation // Use with custom object @@ -1056,7 +1045,6 @@ const sym = new Symbolizer(100, 'square'); pathStringMaybe = sym.getPathString(); pathStringMaybe = sym.getPathString({ size: 10, type: 'circle' }); - // Test pre-fab symbols =============================================================== const symbolArray: d3Shape.SymbolType[] = d3Shape.symbols; @@ -1099,7 +1087,6 @@ const stackData: StackDatum[] = [ { values: { bananas: 12, apples: 10, oranges: 50 } } ]; - // Create stack generator ========================================================== let defaultStack: d3Shape.Stack; @@ -1110,7 +1097,6 @@ let overlyComplicatedStack: d3Shape.Stack; overlyComplicatedStack = d3Shape.stack(); - // Configure stack generator ======================================================= // keys(...) ---------------------------------------------------------------------- @@ -1181,8 +1167,6 @@ num = seriesPoint[0]; num = seriesPoint[1]; seriesDatum = seriesPoint.data; - - // Test stack orders =============================================================== let order: number[]; diff --git a/d3-shape/index.d.ts b/types/d3-shape/index.d.ts similarity index 99% rename from d3-shape/index.d.ts rename to types/d3-shape/index.d.ts index 367a9dee2b..e1d80b6786 100644 --- a/d3-shape/index.d.ts +++ b/types/d3-shape/index.d.ts @@ -790,7 +790,6 @@ export function line(): Line<[number, number]>; */ export function line(): Line; - /** * The radial line generator produces a spline or polyline, as in a line chart. * @@ -1285,7 +1284,6 @@ export function area(): Area; * The generic refers to the data type of an element in the input array passed into the area generator. */ export interface RadialArea { - /** * Generates a radial area for the given array of data. * @@ -1670,7 +1668,7 @@ export interface CurveFactory { * The first and last points are triplicated such that the spline starts at the first point and ends at the last point, * and is tangent to the line between the first and second points, and to the line between the penultimate and last points. */ -export var curveBasis: CurveFactory; +export const curveBasis: CurveFactory; /** * A curve factory for closed cubic basis spline generators. @@ -1678,7 +1676,7 @@ export var curveBasis: CurveFactory; * The curve generators produce a closed cubic basis spline using the specified control points. * When a line segment ends, the first three control points are repeated, producing a closed loop with C2 continuity. */ -export var curveBasisClosed: CurveFactory; +export const curveBasisClosed: CurveFactory; /** * A curve factory for open cubic basis spline generators. @@ -1686,7 +1684,7 @@ export var curveBasisClosed: CurveFactory; * The curve generators produce a cubic basis spline using the specified control points. * Unlike basis, the first and last points are not repeated, and thus the curve typically does not intersect these points. */ -export var curveBasisOpen: CurveFactory; +export const curveBasisOpen: CurveFactory; /** * A curve factory for straightened cubic basis spline generators. @@ -1719,8 +1717,7 @@ export interface CurveBundleFactory extends CurveFactoryLineOnly { * * This curve does not implement curve.areaStart and curve.areaEnd; it is intended to work with d3.line, not d3.area. */ -export var curveBundle: CurveBundleFactory; - +export const curveBundle: CurveBundleFactory; /** * A curve factory for cubic cardinal spline generators. @@ -1741,7 +1738,7 @@ export interface CurveCardinalFactory extends CurveFactory { * The curve generators produce a cubic cardinal spline using the specified control points, with one-sided differences used for the first and last piece. * The default tension is 0. */ -export var curveCardinal: CurveCardinalFactory; +export const curveCardinal: CurveCardinalFactory; /** * A curve factory for closed cubic cardinal spline generators. @@ -1750,7 +1747,7 @@ export var curveCardinal: CurveCardinalFactory; * When a line segment ends, the first three control points are repeated, producing a closed loop. * The default tension is 0. */ -export var curveCardinalClosed: CurveCardinalFactory; +export const curveCardinalClosed: CurveCardinalFactory; /** * A curve factory for open cubic cardinal spline generators. @@ -1760,7 +1757,7 @@ export var curveCardinalClosed: CurveCardinalFactory; * and thus the curve starts at the second point and ends at the penultimate point. * The default tension is 0. */ -export var curveCardinalOpen: CurveCardinalFactory; +export const curveCardinalOpen: CurveCardinalFactory; /** * A curve factory for cubic Catmull–Rom spline generators. @@ -1784,7 +1781,7 @@ export interface CurveCatmullRomFactory extends CurveFactory { * which defaults to 0.5, as proposed by Yuksel et al. in On the Parameterization of Catmull–Rom Curves, * with one-sided differences used for the first and last piece. */ -export var curveCatmullRom: CurveCatmullRomFactory; +export const curveCatmullRom: CurveCatmullRomFactory; /** * A curve factory for cubic Catmull–Rom spline generators. @@ -1793,7 +1790,7 @@ export var curveCatmullRom: CurveCatmullRomFactory; * which defaults to 0.5, as proposed by Yuksel et al. When a line segment ends, * the first three control points are repeated, producing a closed loop. */ -export var curveCatmullRomClosed: CurveCatmullRomFactory; +export const curveCatmullRomClosed: CurveCatmullRomFactory; /** * A curve factory for cubic Catmull–Rom spline generators. @@ -1802,22 +1799,21 @@ export var curveCatmullRomClosed: CurveCatmullRomFactory; * which defaults to 0.5, as proposed by Yuksel et al. Unlike curveCatmullRom, one-sided differences are not used for the first and last piece, * and thus the curve starts at the second point and ends at the penultimate point. */ -export var curveCatmullRomOpen: CurveCatmullRomFactory; - +export const curveCatmullRomOpen: CurveCatmullRomFactory; /** * A curve factory for polyline generators. * * The curve generators produce a polyline through the specified points. */ -export var curveLinear: CurveFactory; +export const curveLinear: CurveFactory; /** * A curve factory for closed polyline generators. * * The curve generators produce a closed polyline through the specified points by repeating the first point when the line segment ends. */ -export var curveLinearClosed: CurveFactory; +export const curveLinearClosed: CurveFactory; /** * A curve factory for cubic spline generators preserving monotonicity in y. @@ -1826,7 +1822,7 @@ export var curveLinearClosed: CurveFactory; * “a smooth curve with continuous first-order derivatives that passes through any given set of data points without spurious oscillations. * Local extrema can occur only at grid points where they are given by the data, but not in between two adjacent grid points.” */ -export var curveMonotoneX: CurveFactory; +export const curveMonotoneX: CurveFactory; /** * A curve factory for cubic spline generators preserving monotonicity in x. @@ -1835,14 +1831,14 @@ export var curveMonotoneX: CurveFactory; * “a smooth curve with continuous first-order derivatives that passes through any given set of data points without spurious oscillations. * Local extrema can occur only at grid points where they are given by the data, but not in between two adjacent grid points.” */ -export var curveMonotoneY: CurveFactory; +export const curveMonotoneY: CurveFactory; /** * A curve factory for natural cubic spline generators. * * The curve generators produce a natural cubic spline with the second derivative of the spline set to zero at the endpoints. */ -export var curveNatural: CurveFactory; +export const curveNatural: CurveFactory; /** * A curve factory for step function (midpoint) generators. @@ -1850,7 +1846,7 @@ export var curveNatural: CurveFactory; * The curve generators produce a piecewise constant function (a step function) consisting of alternating horizontal and vertical lines. * The y-value changes at the midpoint of each pair of adjacent x-values. */ -export var curveStep: CurveFactory; +export const curveStep: CurveFactory; /** * A curve factory for step function (after) generators. @@ -1858,7 +1854,7 @@ export var curveStep: CurveFactory; * The curve generators produce a piecewise constant function (a step function) consisting of alternating horizontal and vertical lines. * The y-value changes after the x-value. */ -export var curveStepAfter: CurveFactory; +export const curveStepAfter: CurveFactory; /** * A curve factory for step function (before) generators. @@ -1866,8 +1862,7 @@ export var curveStepAfter: CurveFactory; * The curve generators produce a piecewise constant function (a step function) consisting of alternating horizontal and vertical lines. * The y-value changes before the x-value. */ -export var curveStepBefore: CurveFactory; - +export const curveStepBefore: CurveFactory; // ----------------------------------------------------------------------------------- // SYMBOLS @@ -1990,7 +1985,6 @@ export interface Symbol { * @param context null, to remove rendering context. */ context(context: null): this; - } /** @@ -2017,43 +2011,42 @@ export function symbol(): Symbol; * An array containing the set of all built-in symbol types: circle, cross, diamond, square, star, triangle, and wye. * Useful for constructing the range of an ordinal scale should you wish to use a shape encoding for categorical data. */ -export var symbols: SymbolType[]; +export const symbols: SymbolType[]; /** * The circle symbol type. */ -export var symbolCircle: SymbolType; +export const symbolCircle: SymbolType; /** * The Greek cross symbol type, with arms of equal length. */ -export var symbolCross: SymbolType; +export const symbolCross: SymbolType; /** * The rhombus symbol type. */ -export var symbolDiamond: SymbolType; +export const symbolDiamond: SymbolType; /** * The square symbol type. */ -export var symbolSquare: SymbolType; +export const symbolSquare: SymbolType; /** * The pentagonal star (pentagram) symbol type. */ -export var symbolStar: SymbolType; +export const symbolStar: SymbolType; /** * he up-pointing triangle symbol type. */ -export var symbolTriangle: SymbolType; +export const symbolTriangle: SymbolType; /** * The Y-shape symbol type. */ -export var symbolWye: SymbolType; - +export const symbolWye: SymbolType; // ----------------------------------------------------------------------------------- // STACKS @@ -2221,7 +2214,6 @@ export interface Stack { * The offset function is then responsible for updating the lower and upper values in the series array to layout the stack. */ offset(offset: (series: Series, order: number[]) => void): this; - } /** diff --git a/d3-shape/tsconfig.json b/types/d3-shape/tsconfig.json similarity index 100% rename from d3-shape/tsconfig.json rename to types/d3-shape/tsconfig.json diff --git a/d3-shape/tslint.json b/types/d3-shape/tslint.json similarity index 100% rename from d3-shape/tslint.json rename to types/d3-shape/tslint.json diff --git a/d3-time-format/d3-time-format-tests.ts b/types/d3-time-format/d3-time-format-tests.ts similarity index 100% rename from d3-time-format/d3-time-format-tests.ts rename to types/d3-time-format/d3-time-format-tests.ts diff --git a/d3-time-format/index.d.ts b/types/d3-time-format/index.d.ts similarity index 100% rename from d3-time-format/index.d.ts rename to types/d3-time-format/index.d.ts diff --git a/d3-time-format/tsconfig.json b/types/d3-time-format/tsconfig.json similarity index 100% rename from d3-time-format/tsconfig.json rename to types/d3-time-format/tsconfig.json diff --git a/d3-time/d3-time-tests.ts b/types/d3-time/d3-time-tests.ts similarity index 100% rename from d3-time/d3-time-tests.ts rename to types/d3-time/d3-time-tests.ts diff --git a/d3-time/index.d.ts b/types/d3-time/index.d.ts similarity index 100% rename from d3-time/index.d.ts rename to types/d3-time/index.d.ts diff --git a/d3-time/tsconfig.json b/types/d3-time/tsconfig.json similarity index 100% rename from d3-time/tsconfig.json rename to types/d3-time/tsconfig.json diff --git a/d3-timer/d3-timer-tests.ts b/types/d3-timer/d3-timer-tests.ts similarity index 100% rename from d3-timer/d3-timer-tests.ts rename to types/d3-timer/d3-timer-tests.ts diff --git a/d3-timer/index.d.ts b/types/d3-timer/index.d.ts similarity index 100% rename from d3-timer/index.d.ts rename to types/d3-timer/index.d.ts diff --git a/d3-timer/tsconfig.json b/types/d3-timer/tsconfig.json similarity index 100% rename from d3-timer/tsconfig.json rename to types/d3-timer/tsconfig.json diff --git a/d3-tip/d3-tip-tests.ts b/types/d3-tip/d3-tip-tests.ts similarity index 100% rename from d3-tip/d3-tip-tests.ts rename to types/d3-tip/d3-tip-tests.ts diff --git a/d3-tip/index.d.ts b/types/d3-tip/index.d.ts similarity index 100% rename from d3-tip/index.d.ts rename to types/d3-tip/index.d.ts diff --git a/d3-tip/tsconfig.json b/types/d3-tip/tsconfig.json similarity index 100% rename from d3-tip/tsconfig.json rename to types/d3-tip/tsconfig.json diff --git a/d3-transition/d3-transition-tests.ts b/types/d3-transition/d3-transition-tests.ts similarity index 99% rename from d3-transition/d3-transition-tests.ts rename to types/d3-transition/d3-transition-tests.ts index c2917aaf94..ba0ae99750 100644 --- a/d3-transition/d3-transition-tests.ts +++ b/types/d3-transition/d3-transition-tests.ts @@ -122,7 +122,6 @@ const enterCircles = circles .style('stroke', d => d.color) .style('fill', d => d.color); - const exitCircles = circles.exit(); // Note: need to re-type datum type, as the exit selection elements have the 'old data' // -------------------------------------------------------------------------- @@ -166,7 +165,6 @@ const duration: number = enterTransition.duration(); enterTransition = enterTransition.delay(500); // settable and chainable const delay: number = enterTransition.delay(); - // ease() --------------------------------------------------------------- let easingFn: (normalizedTime: number) => number; @@ -207,8 +205,6 @@ firstDivTransition = bodyTransition.select(function(d, i, g) { return this.querySelector('div')!; // 'this' type is HTMLElement, return type is HTMLDivElement }); - - // selectAll() --------------------------------------------------------------- // assume paragraphs were previously selected and their data were set to ParagraphDatum type @@ -323,7 +319,6 @@ select('body') .transition().duration(100) .text(d => d.test); // selection datum type - // test, when it is not certain, whether an element of the type to be selected exists let maybeG1: d3Transition.Transition; @@ -343,7 +338,6 @@ maybeG1 = selectAll('svg') } else { return null; } - }); // Tweening Function Use ===================================================== @@ -366,7 +360,6 @@ exitTransition = exitTransition.styleTween('fill', function(d, i, group) { let tweenFnAccessor: undefined | ((this: SVGCircleElement, datum?: CircleDatum, i?: number, group?: SVGCircleElement[] | ArrayLike) => ((t: number) => void)); - // chainable updateTransition = updateTransition.tween('fillColor', null); // remove named tween @@ -407,7 +400,6 @@ exitTransition.remove(); let listener: undefined | ((this: SVGCircleElement, datum: CircleDatum, index: number, group: SVGCircleElement[] | ArrayLike) => void); - enterTransition = enterTransition.on('end', function(d, i, g) { const that: SVGCircleElement = this; // const that2: HTMLElement = this; // fails, type mismatch @@ -433,7 +425,6 @@ enterTransition = enterTransition.on('end', null); // check chaining return type // Test Control Flow // -------------------------------------------------------------------------- - // each() ------------------------------------------------------------------------------- // each(valueFn: (this: GElement, datum?: Datum, index?: number, group?: Array | ArrayLike) => void): Transition; @@ -524,7 +515,3 @@ updateTransitionActive = d3Transition.active { + interface Selection { /** * Interrupts the active transition of the specified name on the selected elements, and cancels any pending transitions with the specified name, if any. * If a name is not specified, null is used. @@ -88,7 +88,6 @@ export function interrupt(node: BaseType, name?: string): void; * The fourth generic "PDatum" refers to the type of the datum of the parent element(s) in the Transition. */ export interface Transition { - // Sub-selection ------------------------- /** diff --git a/d3-transition/tsconfig.json b/types/d3-transition/tsconfig.json similarity index 100% rename from d3-transition/tsconfig.json rename to types/d3-transition/tsconfig.json diff --git a/d3-transition/tslint.json b/types/d3-transition/tslint.json similarity index 100% rename from d3-transition/tslint.json rename to types/d3-transition/tslint.json diff --git a/d3-voronoi/d3-voronoi-tests.ts b/types/d3-voronoi/d3-voronoi-tests.ts similarity index 100% rename from d3-voronoi/d3-voronoi-tests.ts rename to types/d3-voronoi/d3-voronoi-tests.ts diff --git a/d3-voronoi/index.d.ts b/types/d3-voronoi/index.d.ts similarity index 100% rename from d3-voronoi/index.d.ts rename to types/d3-voronoi/index.d.ts diff --git a/d3-voronoi/tsconfig.json b/types/d3-voronoi/tsconfig.json similarity index 100% rename from d3-voronoi/tsconfig.json rename to types/d3-voronoi/tsconfig.json diff --git a/d3-zoom/d3-zoom-tests.ts b/types/d3-zoom/d3-zoom-tests.ts similarity index 99% rename from d3-zoom/d3-zoom-tests.ts rename to types/d3-zoom/d3-zoom-tests.ts index f4a1c0944e..b583bfc8b6 100644 --- a/d3-zoom/d3-zoom-tests.ts +++ b/types/d3-zoom/d3-zoom-tests.ts @@ -52,7 +52,6 @@ function drawPointOnCanvas(radius: number) { }; } - // SVG Prep ------------------------------------------------------------------- interface SVGDatum { @@ -66,7 +65,6 @@ const svg = select('svg') .attr('width', d => d.width) .attr('height', d => d.height); - const g = svg.append('g'); g.selectAll() @@ -85,7 +83,6 @@ interface GroupDatum { toK: number; } - // -------------------------------------------------------------------------- // Test Define ZoomBehaviour // -------------------------------------------------------------------------- @@ -93,7 +90,6 @@ interface GroupDatum { // Canvas Example ----------------------------------------------------------- function zoomedCanvas(this: HTMLCanvasElement, d: CanvasDatum) { - // Cast d3 event to D3ZoomEvent to be used in zoom event handler const e = > event; if (context) { @@ -115,7 +111,6 @@ canvasZoom = d3Zoom.zoom() // SVG Example -------------------------------------------------------------- function zoomedSVGOverlay(this: SVGRectElement) { - // Cast d3 event to D3ZoomEvent to be used in zoom event handler const e = > event; @@ -126,7 +121,6 @@ let svgZoom: d3Zoom.ZoomBehavior; svgZoom = d3Zoom.zoom(); - // filter() ---------------------------------------------------------------- // chainable @@ -141,7 +135,6 @@ svgZoom = svgZoom.filter(function(d, i, group) { let filterFn: (this: SVGRectElement, d: SVGDatum, index: number, group: SVGRectElement[]) => boolean; filterFn = svgZoom.filter(); - // extent() --------------------------------------------------------------- let extentAccessor: (this: SVGRectElement, d: SVGDatum, index: number, group: SVGRectElement[]) => [[number, number], [number, number]]; @@ -172,7 +165,6 @@ svgZoom = svgZoom.translateExtent([[-500, -500], [500, 500]]); let translateExtent: [[number, number], [number, number]]; translateExtent = svgZoom.translateExtent(); - // duration() -------------------------------------------------------------- // chainable @@ -187,7 +179,6 @@ svgZoom = svgZoom.interpolate(interpolateZoom); svgZoom = svgZoom.interpolate(interpolate); svgZoom = svgZoom.interpolate(interpolateArray); - // getter let basicInterpolatorFactory: (a: ZoomView, b: ZoomView) => ((t: number) => ZoomView); @@ -220,7 +211,6 @@ if (zoomHandler) { // Test Attach ZoomBehaviour // -------------------------------------------------------------------------- - // Canvas Example ----------------------------------------------------------- // attach the zoom behavior to the canvas element diff --git a/d3-zoom/index.d.ts b/types/d3-zoom/index.d.ts similarity index 99% rename from d3-zoom/index.d.ts rename to types/d3-zoom/index.d.ts index 87a55e9b2a..904f7b8e62 100644 --- a/d3-zoom/index.d.ts +++ b/types/d3-zoom/index.d.ts @@ -8,7 +8,6 @@ import { ArrayLike, Selection, TransitionLike, ValueFn } from 'd3-selection'; import { ZoomView, ZoomInterpolator } from 'd3-interpolate'; - // -------------------------------------------------------------------------- // Shared Type Definitions and Interfaces // -------------------------------------------------------------------------- diff --git a/d3-zoom/tsconfig.json b/types/d3-zoom/tsconfig.json similarity index 100% rename from d3-zoom/tsconfig.json rename to types/d3-zoom/tsconfig.json diff --git a/d3-zoom/tslint.json b/types/d3-zoom/tslint.json similarity index 100% rename from d3-zoom/tslint.json rename to types/d3-zoom/tslint.json diff --git a/d3.cloud.layout/d3.cloud.layout-tests.ts b/types/d3.cloud.layout/d3.cloud.layout-tests.ts similarity index 100% rename from d3.cloud.layout/d3.cloud.layout-tests.ts rename to types/d3.cloud.layout/d3.cloud.layout-tests.ts diff --git a/d3.cloud.layout/index.d.ts b/types/d3.cloud.layout/index.d.ts similarity index 100% rename from d3.cloud.layout/index.d.ts rename to types/d3.cloud.layout/index.d.ts diff --git a/d3.cloud.layout/tsconfig.json b/types/d3.cloud.layout/tsconfig.json similarity index 100% rename from d3.cloud.layout/tsconfig.json rename to types/d3.cloud.layout/tsconfig.json diff --git a/d3.slider/d3.slider-tests.ts b/types/d3.slider/d3.slider-tests.ts similarity index 100% rename from d3.slider/d3.slider-tests.ts rename to types/d3.slider/d3.slider-tests.ts diff --git a/d3.slider/index.d.ts b/types/d3.slider/index.d.ts similarity index 100% rename from d3.slider/index.d.ts rename to types/d3.slider/index.d.ts diff --git a/d3.slider/tsconfig.json b/types/d3.slider/tsconfig.json similarity index 100% rename from d3.slider/tsconfig.json rename to types/d3.slider/tsconfig.json diff --git a/d3/d3-tests.ts b/types/d3/d3-tests.ts similarity index 99% rename from d3/d3-tests.ts rename to types/d3/d3-tests.ts index ca4932d27c..1efb46be8e 100644 --- a/d3/d3-tests.ts +++ b/types/d3/d3-tests.ts @@ -1,6 +1,5 @@ import * as d3 from 'd3'; - // TODO: complete tests. Note the tests here should be limited to // testing existence of re-exported members of the // constituent modules comprising the D3 version 4 standard bundle @@ -8,5 +7,3 @@ import * as d3 from 'd3'; // Ability to access d3-select related properties const d: d3.Selection = d3.selection(); - - diff --git a/d3/index.d.ts b/types/d3/index.d.ts similarity index 100% rename from d3/index.d.ts rename to types/d3/index.d.ts diff --git a/d3/tsconfig.json b/types/d3/tsconfig.json similarity index 100% rename from d3/tsconfig.json rename to types/d3/tsconfig.json diff --git a/d3/tslint.json b/types/d3/tslint.json similarity index 100% rename from d3/tslint.json rename to types/d3/tslint.json diff --git a/d3/v3/d3-tests.ts b/types/d3/v3/d3-tests.ts similarity index 100% rename from d3/v3/d3-tests.ts rename to types/d3/v3/d3-tests.ts diff --git a/d3/v3/index.d.ts b/types/d3/v3/index.d.ts similarity index 100% rename from d3/v3/index.d.ts rename to types/d3/v3/index.d.ts diff --git a/d3/v3/tsconfig.json b/types/d3/v3/tsconfig.json similarity index 100% rename from d3/v3/tsconfig.json rename to types/d3/v3/tsconfig.json diff --git a/d3kit/d3kit-tests.ts b/types/d3kit/d3kit-tests.ts similarity index 100% rename from d3kit/d3kit-tests.ts rename to types/d3kit/d3kit-tests.ts diff --git a/d3kit/index.d.ts b/types/d3kit/index.d.ts similarity index 100% rename from d3kit/index.d.ts rename to types/d3kit/index.d.ts diff --git a/d3kit/tsconfig.json b/types/d3kit/tsconfig.json similarity index 100% rename from d3kit/tsconfig.json rename to types/d3kit/tsconfig.json diff --git a/d3kit/v1/d3kit-tests.ts b/types/d3kit/v1/d3kit-tests.ts similarity index 100% rename from d3kit/v1/d3kit-tests.ts rename to types/d3kit/v1/d3kit-tests.ts diff --git a/d3kit/v1/index.d.ts b/types/d3kit/v1/index.d.ts similarity index 100% rename from d3kit/v1/index.d.ts rename to types/d3kit/v1/index.d.ts diff --git a/d3kit/v1/tsconfig.json b/types/d3kit/v1/tsconfig.json similarity index 100% rename from d3kit/v1/tsconfig.json rename to types/d3kit/v1/tsconfig.json diff --git a/d3pie/d3pie-tests.ts b/types/d3pie/d3pie-tests.ts similarity index 100% rename from d3pie/d3pie-tests.ts rename to types/d3pie/d3pie-tests.ts diff --git a/d3pie/index.d.ts b/types/d3pie/index.d.ts similarity index 100% rename from d3pie/index.d.ts rename to types/d3pie/index.d.ts diff --git a/d3pie/tsconfig.json b/types/d3pie/tsconfig.json similarity index 100% rename from d3pie/tsconfig.json rename to types/d3pie/tsconfig.json diff --git a/dagre-d3/dagre-d3-tests.ts b/types/dagre-d3/dagre-d3-tests.ts similarity index 100% rename from dagre-d3/dagre-d3-tests.ts rename to types/dagre-d3/dagre-d3-tests.ts diff --git a/dagre-d3/index.d.ts b/types/dagre-d3/index.d.ts similarity index 100% rename from dagre-d3/index.d.ts rename to types/dagre-d3/index.d.ts diff --git a/dagre-d3/tsconfig.json b/types/dagre-d3/tsconfig.json similarity index 100% rename from dagre-d3/tsconfig.json rename to types/dagre-d3/tsconfig.json diff --git a/dagre-d3/tslint.json b/types/dagre-d3/tslint.json similarity index 100% rename from dagre-d3/tslint.json rename to types/dagre-d3/tslint.json diff --git a/dagre/dagre-tests.ts b/types/dagre/dagre-tests.ts similarity index 100% rename from dagre/dagre-tests.ts rename to types/dagre/dagre-tests.ts diff --git a/dagre/index.d.ts b/types/dagre/index.d.ts similarity index 100% rename from dagre/index.d.ts rename to types/dagre/index.d.ts diff --git a/dagre/tsconfig.json b/types/dagre/tsconfig.json similarity index 100% rename from dagre/tsconfig.json rename to types/dagre/tsconfig.json diff --git a/dagre/tslint.json b/types/dagre/tslint.json similarity index 100% rename from dagre/tslint.json rename to types/dagre/tslint.json diff --git a/dat-gui/dat-gui-tests.ts b/types/dat-gui/dat-gui-tests.ts similarity index 100% rename from dat-gui/dat-gui-tests.ts rename to types/dat-gui/dat-gui-tests.ts diff --git a/dat-gui/index.d.ts b/types/dat-gui/index.d.ts similarity index 100% rename from dat-gui/index.d.ts rename to types/dat-gui/index.d.ts diff --git a/dat-gui/tsconfig.json b/types/dat-gui/tsconfig.json similarity index 100% rename from dat-gui/tsconfig.json rename to types/dat-gui/tsconfig.json diff --git a/data-driven/data-driven-tests.ts b/types/data-driven/data-driven-tests.ts similarity index 100% rename from data-driven/data-driven-tests.ts rename to types/data-driven/data-driven-tests.ts diff --git a/data-driven/index.d.ts b/types/data-driven/index.d.ts similarity index 100% rename from data-driven/index.d.ts rename to types/data-driven/index.d.ts diff --git a/data-driven/tsconfig.json b/types/data-driven/tsconfig.json similarity index 100% rename from data-driven/tsconfig.json rename to types/data-driven/tsconfig.json diff --git a/datatables.net-buttons/datatables.net-buttons-tests.ts b/types/datatables.net-buttons/datatables.net-buttons-tests.ts similarity index 100% rename from datatables.net-buttons/datatables.net-buttons-tests.ts rename to types/datatables.net-buttons/datatables.net-buttons-tests.ts diff --git a/datatables.net-buttons/index.d.ts b/types/datatables.net-buttons/index.d.ts similarity index 100% rename from datatables.net-buttons/index.d.ts rename to types/datatables.net-buttons/index.d.ts diff --git a/datatables.net-buttons/tsconfig.json b/types/datatables.net-buttons/tsconfig.json similarity index 100% rename from datatables.net-buttons/tsconfig.json rename to types/datatables.net-buttons/tsconfig.json diff --git a/datatables.net-fixedheader/datatables.net-fixedheader-tests.ts b/types/datatables.net-fixedheader/datatables.net-fixedheader-tests.ts similarity index 83% rename from datatables.net-fixedheader/datatables.net-fixedheader-tests.ts rename to types/datatables.net-fixedheader/datatables.net-fixedheader-tests.ts index 561b968ba9..72d8665838 100644 --- a/datatables.net-fixedheader/datatables.net-fixedheader-tests.ts +++ b/types/datatables.net-fixedheader/datatables.net-fixedheader-tests.ts @@ -1,5 +1,5 @@ $(document).ready(() => { - var config: DataTables.Settings = { + const config: DataTables.Settings = { // FixedHeader extension options fixedHeader: { footer: true, diff --git a/datatables.net-fixedheader/index.d.ts b/types/datatables.net-fixedheader/index.d.ts similarity index 96% rename from datatables.net-fixedheader/index.d.ts rename to types/datatables.net-fixedheader/index.d.ts index caf3987d35..cb0b363b65 100644 --- a/datatables.net-fixedheader/index.d.ts +++ b/types/datatables.net-fixedheader/index.d.ts @@ -6,7 +6,7 @@ /// declare namespace DataTables { - export interface Settings { + interface Settings { /* * FixedHeader extension options */ diff --git a/datatables.net-fixedheader/tsconfig.json b/types/datatables.net-fixedheader/tsconfig.json similarity index 100% rename from datatables.net-fixedheader/tsconfig.json rename to types/datatables.net-fixedheader/tsconfig.json diff --git a/datatables.net-fixedheader/tslint.json b/types/datatables.net-fixedheader/tslint.json similarity index 100% rename from datatables.net-fixedheader/tslint.json rename to types/datatables.net-fixedheader/tslint.json diff --git a/datatables.net-select/datatables.net-select-tests.ts b/types/datatables.net-select/datatables.net-select-tests.ts similarity index 86% rename from datatables.net-select/datatables.net-select-tests.ts rename to types/datatables.net-select/datatables.net-select-tests.ts index 5d8fdd8dc6..9b7eb24c2a 100644 --- a/datatables.net-select/datatables.net-select-tests.ts +++ b/types/datatables.net-select/datatables.net-select-tests.ts @@ -1,5 +1,5 @@ $(document).ready(() => { - var config: DataTables.Settings = { + const config: DataTables.Settings = { // Select extension options select: { blurable: true, diff --git a/datatables.net-select/index.d.ts b/types/datatables.net-select/index.d.ts similarity index 97% rename from datatables.net-select/index.d.ts rename to types/datatables.net-select/index.d.ts index 96529a10c1..201d00ba27 100644 --- a/datatables.net-select/index.d.ts +++ b/types/datatables.net-select/index.d.ts @@ -6,7 +6,7 @@ /// declare namespace DataTables { - export interface Settings { + interface Settings { /* * Select extension options */ diff --git a/datatables.net-select/tsconfig.json b/types/datatables.net-select/tsconfig.json similarity index 100% rename from datatables.net-select/tsconfig.json rename to types/datatables.net-select/tsconfig.json diff --git a/datatables.net-select/tslint.json b/types/datatables.net-select/tslint.json similarity index 100% rename from datatables.net-select/tslint.json rename to types/datatables.net-select/tslint.json diff --git a/datatables.net/datatables.net-tests.ts b/types/datatables.net/datatables.net-tests.ts similarity index 100% rename from datatables.net/datatables.net-tests.ts rename to types/datatables.net/datatables.net-tests.ts diff --git a/datatables.net/index.d.ts b/types/datatables.net/index.d.ts similarity index 100% rename from datatables.net/index.d.ts rename to types/datatables.net/index.d.ts diff --git a/datatables.net/tsconfig.json b/types/datatables.net/tsconfig.json similarity index 100% rename from datatables.net/tsconfig.json rename to types/datatables.net/tsconfig.json diff --git a/date.format.js/date.format.js-tests.ts b/types/date.format.js/date.format.js-tests.ts similarity index 100% rename from date.format.js/date.format.js-tests.ts rename to types/date.format.js/date.format.js-tests.ts diff --git a/date.format.js/index.d.ts b/types/date.format.js/index.d.ts similarity index 100% rename from date.format.js/index.d.ts rename to types/date.format.js/index.d.ts diff --git a/date.format.js/tsconfig.json b/types/date.format.js/tsconfig.json similarity index 100% rename from date.format.js/tsconfig.json rename to types/date.format.js/tsconfig.json diff --git a/dateformat/dateformat-tests.ts b/types/dateformat/dateformat-tests.ts similarity index 100% rename from dateformat/dateformat-tests.ts rename to types/dateformat/dateformat-tests.ts diff --git a/dateformat/index.d.ts b/types/dateformat/index.d.ts similarity index 100% rename from dateformat/index.d.ts rename to types/dateformat/index.d.ts diff --git a/dateformat/tsconfig.json b/types/dateformat/tsconfig.json similarity index 100% rename from dateformat/tsconfig.json rename to types/dateformat/tsconfig.json diff --git a/datejs/datejs-tests.ts b/types/datejs/datejs-tests.ts similarity index 100% rename from datejs/datejs-tests.ts rename to types/datejs/datejs-tests.ts diff --git a/datejs/index.d.ts b/types/datejs/index.d.ts similarity index 100% rename from datejs/index.d.ts rename to types/datejs/index.d.ts diff --git a/datejs/sugarpak.d.ts b/types/datejs/sugarpak.d.ts similarity index 100% rename from datejs/sugarpak.d.ts rename to types/datejs/sugarpak.d.ts diff --git a/datejs/tsconfig.json b/types/datejs/tsconfig.json similarity index 100% rename from datejs/tsconfig.json rename to types/datejs/tsconfig.json diff --git a/daterangepicker/daterangepicker-tests.ts b/types/daterangepicker/daterangepicker-tests.ts similarity index 100% rename from daterangepicker/daterangepicker-tests.ts rename to types/daterangepicker/daterangepicker-tests.ts diff --git a/daterangepicker/index.d.ts b/types/daterangepicker/index.d.ts similarity index 100% rename from daterangepicker/index.d.ts rename to types/daterangepicker/index.d.ts diff --git a/daterangepicker/package.json b/types/daterangepicker/package.json similarity index 100% rename from daterangepicker/package.json rename to types/daterangepicker/package.json diff --git a/daterangepicker/tsconfig.json b/types/daterangepicker/tsconfig.json similarity index 100% rename from daterangepicker/tsconfig.json rename to types/daterangepicker/tsconfig.json diff --git a/db-migrate-base/db-migrate-base-tests.ts b/types/db-migrate-base/db-migrate-base-tests.ts similarity index 100% rename from db-migrate-base/db-migrate-base-tests.ts rename to types/db-migrate-base/db-migrate-base-tests.ts diff --git a/db-migrate-base/index.d.ts b/types/db-migrate-base/index.d.ts similarity index 100% rename from db-migrate-base/index.d.ts rename to types/db-migrate-base/index.d.ts diff --git a/db-migrate-base/tsconfig.json b/types/db-migrate-base/tsconfig.json similarity index 100% rename from db-migrate-base/tsconfig.json rename to types/db-migrate-base/tsconfig.json diff --git a/db-migrate-pg/db-migrate-pg-tests.ts b/types/db-migrate-pg/db-migrate-pg-tests.ts similarity index 100% rename from db-migrate-pg/db-migrate-pg-tests.ts rename to types/db-migrate-pg/db-migrate-pg-tests.ts diff --git a/db-migrate-pg/index.d.ts b/types/db-migrate-pg/index.d.ts similarity index 100% rename from db-migrate-pg/index.d.ts rename to types/db-migrate-pg/index.d.ts diff --git a/db-migrate-pg/tsconfig.json b/types/db-migrate-pg/tsconfig.json similarity index 100% rename from db-migrate-pg/tsconfig.json rename to types/db-migrate-pg/tsconfig.json diff --git a/db.js/db.js-tests.ts b/types/db.js/db.js-tests.ts similarity index 100% rename from db.js/db.js-tests.ts rename to types/db.js/db.js-tests.ts diff --git a/db.js/index.d.ts b/types/db.js/index.d.ts similarity index 100% rename from db.js/index.d.ts rename to types/db.js/index.d.ts diff --git a/db.js/tsconfig.json b/types/db.js/tsconfig.json similarity index 100% rename from db.js/tsconfig.json rename to types/db.js/tsconfig.json diff --git a/dc/dc-tests.ts b/types/dc/dc-tests.ts similarity index 100% rename from dc/dc-tests.ts rename to types/dc/dc-tests.ts diff --git a/dc/index.d.ts b/types/dc/index.d.ts similarity index 100% rename from dc/index.d.ts rename to types/dc/index.d.ts diff --git a/dc/tsconfig.json b/types/dc/tsconfig.json similarity index 100% rename from dc/tsconfig.json rename to types/dc/tsconfig.json diff --git a/debounce/debounce-tests.ts b/types/debounce/debounce-tests.ts similarity index 100% rename from debounce/debounce-tests.ts rename to types/debounce/debounce-tests.ts diff --git a/debounce/index.d.ts b/types/debounce/index.d.ts similarity index 100% rename from debounce/index.d.ts rename to types/debounce/index.d.ts diff --git a/debounce/tsconfig.json b/types/debounce/tsconfig.json similarity index 100% rename from debounce/tsconfig.json rename to types/debounce/tsconfig.json diff --git a/debug/debug-tests.ts b/types/debug/debug-tests.ts similarity index 100% rename from debug/debug-tests.ts rename to types/debug/debug-tests.ts diff --git a/debug/index.d.ts b/types/debug/index.d.ts similarity index 100% rename from debug/index.d.ts rename to types/debug/index.d.ts diff --git a/debug/tsconfig.json b/types/debug/tsconfig.json similarity index 100% rename from debug/tsconfig.json rename to types/debug/tsconfig.json diff --git a/decamelize/decamelize-tests.ts b/types/decamelize/decamelize-tests.ts similarity index 100% rename from decamelize/decamelize-tests.ts rename to types/decamelize/decamelize-tests.ts diff --git a/decamelize/index.d.ts b/types/decamelize/index.d.ts similarity index 100% rename from decamelize/index.d.ts rename to types/decamelize/index.d.ts diff --git a/decamelize/tsconfig.json b/types/decamelize/tsconfig.json similarity index 100% rename from decamelize/tsconfig.json rename to types/decamelize/tsconfig.json diff --git a/decay/decay-tests.ts b/types/decay/decay-tests.ts similarity index 100% rename from decay/decay-tests.ts rename to types/decay/decay-tests.ts diff --git a/decay/index.d.ts b/types/decay/index.d.ts similarity index 100% rename from decay/index.d.ts rename to types/decay/index.d.ts diff --git a/decay/tsconfig.json b/types/decay/tsconfig.json similarity index 100% rename from decay/tsconfig.json rename to types/decay/tsconfig.json diff --git a/decay/tslint.json b/types/decay/tslint.json similarity index 100% rename from decay/tslint.json rename to types/decay/tslint.json diff --git a/decimal.js/decimal.js-tests.ts b/types/decimal.js/decimal.js-tests.ts similarity index 100% rename from decimal.js/decimal.js-tests.ts rename to types/decimal.js/decimal.js-tests.ts diff --git a/decimal.js/index.d.ts b/types/decimal.js/index.d.ts similarity index 100% rename from decimal.js/index.d.ts rename to types/decimal.js/index.d.ts diff --git a/decimal.js/tsconfig.json b/types/decimal.js/tsconfig.json similarity index 100% rename from decimal.js/tsconfig.json rename to types/decimal.js/tsconfig.json diff --git a/decorum/decorum-tests.ts b/types/decorum/decorum-tests.ts similarity index 100% rename from decorum/decorum-tests.ts rename to types/decorum/decorum-tests.ts diff --git a/decorum/index.d.ts b/types/decorum/index.d.ts similarity index 100% rename from decorum/index.d.ts rename to types/decorum/index.d.ts diff --git a/decorum/tsconfig.json b/types/decorum/tsconfig.json similarity index 100% rename from decorum/tsconfig.json rename to types/decorum/tsconfig.json diff --git a/deep-assign/deep-assign-tests.ts b/types/deep-assign/deep-assign-tests.ts similarity index 100% rename from deep-assign/deep-assign-tests.ts rename to types/deep-assign/deep-assign-tests.ts diff --git a/deep-assign/index.d.ts b/types/deep-assign/index.d.ts similarity index 100% rename from deep-assign/index.d.ts rename to types/deep-assign/index.d.ts diff --git a/deep-assign/tsconfig.json b/types/deep-assign/tsconfig.json similarity index 100% rename from deep-assign/tsconfig.json rename to types/deep-assign/tsconfig.json diff --git a/deep-diff/deep-diff-tests.ts b/types/deep-diff/deep-diff-tests.ts similarity index 100% rename from deep-diff/deep-diff-tests.ts rename to types/deep-diff/deep-diff-tests.ts diff --git a/deep-diff/index.d.ts b/types/deep-diff/index.d.ts similarity index 100% rename from deep-diff/index.d.ts rename to types/deep-diff/index.d.ts diff --git a/deep-diff/tsconfig.json b/types/deep-diff/tsconfig.json similarity index 100% rename from deep-diff/tsconfig.json rename to types/deep-diff/tsconfig.json diff --git a/deep-equal/deep-equal-tests.ts b/types/deep-equal/deep-equal-tests.ts similarity index 100% rename from deep-equal/deep-equal-tests.ts rename to types/deep-equal/deep-equal-tests.ts diff --git a/deep-equal/index.d.ts b/types/deep-equal/index.d.ts similarity index 100% rename from deep-equal/index.d.ts rename to types/deep-equal/index.d.ts diff --git a/deep-equal/tsconfig.json b/types/deep-equal/tsconfig.json similarity index 100% rename from deep-equal/tsconfig.json rename to types/deep-equal/tsconfig.json diff --git a/deep-equal/tslint.json b/types/deep-equal/tslint.json similarity index 100% rename from deep-equal/tslint.json rename to types/deep-equal/tslint.json diff --git a/deep-extend/deep-extend-tests.ts b/types/deep-extend/deep-extend-tests.ts similarity index 100% rename from deep-extend/deep-extend-tests.ts rename to types/deep-extend/deep-extend-tests.ts diff --git a/deep-extend/index.d.ts b/types/deep-extend/index.d.ts similarity index 100% rename from deep-extend/index.d.ts rename to types/deep-extend/index.d.ts diff --git a/deep-extend/tsconfig.json b/types/deep-extend/tsconfig.json similarity index 100% rename from deep-extend/tsconfig.json rename to types/deep-extend/tsconfig.json diff --git a/deep-freeze-strict/index.d.ts b/types/deep-freeze-strict/index.d.ts similarity index 100% rename from deep-freeze-strict/index.d.ts rename to types/deep-freeze-strict/index.d.ts diff --git a/deep-freeze-strict/tsconfig.json b/types/deep-freeze-strict/tsconfig.json similarity index 100% rename from deep-freeze-strict/tsconfig.json rename to types/deep-freeze-strict/tsconfig.json diff --git a/deep-freeze-strict/tslint.json b/types/deep-freeze-strict/tslint.json similarity index 100% rename from deep-freeze-strict/tslint.json rename to types/deep-freeze-strict/tslint.json diff --git a/deep-freeze/deep-freeze-tests.ts b/types/deep-freeze/deep-freeze-tests.ts similarity index 100% rename from deep-freeze/deep-freeze-tests.ts rename to types/deep-freeze/deep-freeze-tests.ts diff --git a/deep-freeze/index.d.ts b/types/deep-freeze/index.d.ts similarity index 100% rename from deep-freeze/index.d.ts rename to types/deep-freeze/index.d.ts diff --git a/deep-freeze/tsconfig.json b/types/deep-freeze/tsconfig.json similarity index 100% rename from deep-freeze/tsconfig.json rename to types/deep-freeze/tsconfig.json diff --git a/deepmerge/deepmerge-tests.ts b/types/deepmerge/deepmerge-tests.ts similarity index 100% rename from deepmerge/deepmerge-tests.ts rename to types/deepmerge/deepmerge-tests.ts diff --git a/deepmerge/index.d.ts b/types/deepmerge/index.d.ts similarity index 100% rename from deepmerge/index.d.ts rename to types/deepmerge/index.d.ts diff --git a/deepmerge/tsconfig.json b/types/deepmerge/tsconfig.json similarity index 100% rename from deepmerge/tsconfig.json rename to types/deepmerge/tsconfig.json diff --git a/deepmerge/tslint.json b/types/deepmerge/tslint.json similarity index 100% rename from deepmerge/tslint.json rename to types/deepmerge/tslint.json diff --git a/defaults/defaults-tests.ts b/types/defaults/defaults-tests.ts similarity index 100% rename from defaults/defaults-tests.ts rename to types/defaults/defaults-tests.ts diff --git a/defaults/index.d.ts b/types/defaults/index.d.ts similarity index 100% rename from defaults/index.d.ts rename to types/defaults/index.d.ts diff --git a/defaults/tsconfig.json b/types/defaults/tsconfig.json similarity index 100% rename from defaults/tsconfig.json rename to types/defaults/tsconfig.json diff --git a/deku/deku-tests.ts b/types/deku/deku-tests.ts similarity index 100% rename from deku/deku-tests.ts rename to types/deku/deku-tests.ts diff --git a/deku/index.d.ts b/types/deku/index.d.ts similarity index 100% rename from deku/index.d.ts rename to types/deku/index.d.ts diff --git a/deku/tsconfig.json b/types/deku/tsconfig.json similarity index 100% rename from deku/tsconfig.json rename to types/deku/tsconfig.json diff --git a/del/del-tests.ts b/types/del/del-tests.ts similarity index 100% rename from del/del-tests.ts rename to types/del/del-tests.ts diff --git a/del/index.d.ts b/types/del/index.d.ts similarity index 100% rename from del/index.d.ts rename to types/del/index.d.ts diff --git a/del/tsconfig.json b/types/del/tsconfig.json similarity index 100% rename from del/tsconfig.json rename to types/del/tsconfig.json diff --git a/del/tslint.json b/types/del/tslint.json similarity index 100% rename from del/tslint.json rename to types/del/tslint.json diff --git a/denodeify/denodeify-tests.ts b/types/denodeify/denodeify-tests.ts similarity index 100% rename from denodeify/denodeify-tests.ts rename to types/denodeify/denodeify-tests.ts diff --git a/denodeify/index.d.ts b/types/denodeify/index.d.ts similarity index 100% rename from denodeify/index.d.ts rename to types/denodeify/index.d.ts diff --git a/denodeify/tsconfig.json b/types/denodeify/tsconfig.json similarity index 100% rename from denodeify/tsconfig.json rename to types/denodeify/tsconfig.json diff --git a/deoxxa-content-type/deoxxa-content-type-tests.ts b/types/deoxxa-content-type/deoxxa-content-type-tests.ts similarity index 100% rename from deoxxa-content-type/deoxxa-content-type-tests.ts rename to types/deoxxa-content-type/deoxxa-content-type-tests.ts diff --git a/deoxxa-content-type/index.d.ts b/types/deoxxa-content-type/index.d.ts similarity index 100% rename from deoxxa-content-type/index.d.ts rename to types/deoxxa-content-type/index.d.ts diff --git a/deoxxa-content-type/tsconfig.json b/types/deoxxa-content-type/tsconfig.json similarity index 100% rename from deoxxa-content-type/tsconfig.json rename to types/deoxxa-content-type/tsconfig.json diff --git a/depd/depd-tests.ts b/types/depd/depd-tests.ts similarity index 100% rename from depd/depd-tests.ts rename to types/depd/depd-tests.ts diff --git a/depd/index.d.ts b/types/depd/index.d.ts similarity index 100% rename from depd/index.d.ts rename to types/depd/index.d.ts diff --git a/depd/tsconfig.json b/types/depd/tsconfig.json similarity index 100% rename from depd/tsconfig.json rename to types/depd/tsconfig.json diff --git a/deployjava/deployjava-tests.ts b/types/deployjava/deployjava-tests.ts similarity index 100% rename from deployjava/deployjava-tests.ts rename to types/deployjava/deployjava-tests.ts diff --git a/deployjava/index.d.ts b/types/deployjava/index.d.ts similarity index 100% rename from deployjava/index.d.ts rename to types/deployjava/index.d.ts diff --git a/deployjava/tsconfig.json b/types/deployjava/tsconfig.json similarity index 100% rename from deployjava/tsconfig.json rename to types/deployjava/tsconfig.json diff --git a/detect-browser/detect-browser-tests.ts b/types/detect-browser/detect-browser-tests.ts similarity index 100% rename from detect-browser/detect-browser-tests.ts rename to types/detect-browser/detect-browser-tests.ts diff --git a/detect-browser/index.d.ts b/types/detect-browser/index.d.ts similarity index 100% rename from detect-browser/index.d.ts rename to types/detect-browser/index.d.ts diff --git a/detect-browser/tsconfig.json b/types/detect-browser/tsconfig.json similarity index 100% rename from detect-browser/tsconfig.json rename to types/detect-browser/tsconfig.json diff --git a/detect-indent/detect-indent-tests.ts b/types/detect-indent/detect-indent-tests.ts similarity index 100% rename from detect-indent/detect-indent-tests.ts rename to types/detect-indent/detect-indent-tests.ts diff --git a/detect-indent/index.d.ts b/types/detect-indent/index.d.ts similarity index 100% rename from detect-indent/index.d.ts rename to types/detect-indent/index.d.ts diff --git a/detect-indent/tsconfig.json b/types/detect-indent/tsconfig.json similarity index 100% rename from detect-indent/tsconfig.json rename to types/detect-indent/tsconfig.json diff --git a/devexpress-web/README.md b/types/devexpress-web/README.md similarity index 100% rename from devexpress-web/README.md rename to types/devexpress-web/README.md diff --git a/devexpress-web/devexpress-web-tests.ts b/types/devexpress-web/devexpress-web-tests.ts similarity index 100% rename from devexpress-web/devexpress-web-tests.ts rename to types/devexpress-web/devexpress-web-tests.ts diff --git a/devexpress-web/index.d.ts b/types/devexpress-web/index.d.ts similarity index 100% rename from devexpress-web/index.d.ts rename to types/devexpress-web/index.d.ts diff --git a/devexpress-web/tsconfig.json b/types/devexpress-web/tsconfig.json similarity index 100% rename from devexpress-web/tsconfig.json rename to types/devexpress-web/tsconfig.json diff --git a/devextreme/README.md b/types/devextreme/README.md similarity index 100% rename from devextreme/README.md rename to types/devextreme/README.md diff --git a/devextreme/devextreme-tests.ts b/types/devextreme/devextreme-tests.ts similarity index 100% rename from devextreme/devextreme-tests.ts rename to types/devextreme/devextreme-tests.ts diff --git a/devextreme/index.d.ts b/types/devextreme/index.d.ts similarity index 100% rename from devextreme/index.d.ts rename to types/devextreme/index.d.ts diff --git a/devextreme/tsconfig.json b/types/devextreme/tsconfig.json similarity index 100% rename from devextreme/tsconfig.json rename to types/devextreme/tsconfig.json diff --git a/devextreme/v15/devextreme-tests.ts b/types/devextreme/v15/devextreme-tests.ts similarity index 100% rename from devextreme/v15/devextreme-tests.ts rename to types/devextreme/v15/devextreme-tests.ts diff --git a/devextreme/v15/index.d.ts b/types/devextreme/v15/index.d.ts similarity index 100% rename from devextreme/v15/index.d.ts rename to types/devextreme/v15/index.d.ts diff --git a/devextreme/v15/tsconfig.json b/types/devextreme/v15/tsconfig.json similarity index 100% rename from devextreme/v15/tsconfig.json rename to types/devextreme/v15/tsconfig.json diff --git a/devtools-detect/devtools-detect-tests.ts b/types/devtools-detect/devtools-detect-tests.ts similarity index 100% rename from devtools-detect/devtools-detect-tests.ts rename to types/devtools-detect/devtools-detect-tests.ts diff --git a/devtools-detect/index.d.ts b/types/devtools-detect/index.d.ts similarity index 100% rename from devtools-detect/index.d.ts rename to types/devtools-detect/index.d.ts diff --git a/devtools-detect/tsconfig.json b/types/devtools-detect/tsconfig.json similarity index 100% rename from devtools-detect/tsconfig.json rename to types/devtools-detect/tsconfig.json diff --git a/df-visible/df-visible-tests.ts b/types/df-visible/df-visible-tests.ts similarity index 100% rename from df-visible/df-visible-tests.ts rename to types/df-visible/df-visible-tests.ts diff --git a/df-visible/index.d.ts b/types/df-visible/index.d.ts similarity index 100% rename from df-visible/index.d.ts rename to types/df-visible/index.d.ts diff --git a/df-visible/tsconfig.json b/types/df-visible/tsconfig.json similarity index 100% rename from df-visible/tsconfig.json rename to types/df-visible/tsconfig.json diff --git a/dhtmlxgantt/dhtmlxgantt-tests.ts b/types/dhtmlxgantt/dhtmlxgantt-tests.ts similarity index 100% rename from dhtmlxgantt/dhtmlxgantt-tests.ts rename to types/dhtmlxgantt/dhtmlxgantt-tests.ts diff --git a/dhtmlxgantt/index.d.ts b/types/dhtmlxgantt/index.d.ts similarity index 100% rename from dhtmlxgantt/index.d.ts rename to types/dhtmlxgantt/index.d.ts diff --git a/dhtmlxgantt/tsconfig.json b/types/dhtmlxgantt/tsconfig.json similarity index 100% rename from dhtmlxgantt/tsconfig.json rename to types/dhtmlxgantt/tsconfig.json diff --git a/dhtmlxscheduler/dhtmlxscheduler-tests.ts b/types/dhtmlxscheduler/dhtmlxscheduler-tests.ts similarity index 100% rename from dhtmlxscheduler/dhtmlxscheduler-tests.ts rename to types/dhtmlxscheduler/dhtmlxscheduler-tests.ts diff --git a/dhtmlxscheduler/index.d.ts b/types/dhtmlxscheduler/index.d.ts similarity index 100% rename from dhtmlxscheduler/index.d.ts rename to types/dhtmlxscheduler/index.d.ts diff --git a/dhtmlxscheduler/tsconfig.json b/types/dhtmlxscheduler/tsconfig.json similarity index 100% rename from dhtmlxscheduler/tsconfig.json rename to types/dhtmlxscheduler/tsconfig.json diff --git a/di-lite/di-lite-tests.ts b/types/di-lite/di-lite-tests.ts similarity index 100% rename from di-lite/di-lite-tests.ts rename to types/di-lite/di-lite-tests.ts diff --git a/di-lite/index.d.ts b/types/di-lite/index.d.ts similarity index 100% rename from di-lite/index.d.ts rename to types/di-lite/index.d.ts diff --git a/di-lite/tsconfig.json b/types/di-lite/tsconfig.json similarity index 100% rename from di-lite/tsconfig.json rename to types/di-lite/tsconfig.json diff --git a/diff-match-patch/diff-match-patch-tests.ts b/types/diff-match-patch/diff-match-patch-tests.ts similarity index 100% rename from diff-match-patch/diff-match-patch-tests.ts rename to types/diff-match-patch/diff-match-patch-tests.ts diff --git a/diff-match-patch/index.d.ts b/types/diff-match-patch/index.d.ts similarity index 100% rename from diff-match-patch/index.d.ts rename to types/diff-match-patch/index.d.ts diff --git a/diff-match-patch/tsconfig.json b/types/diff-match-patch/tsconfig.json similarity index 100% rename from diff-match-patch/tsconfig.json rename to types/diff-match-patch/tsconfig.json diff --git a/diff/diff-tests.ts b/types/diff/diff-tests.ts similarity index 100% rename from diff/diff-tests.ts rename to types/diff/diff-tests.ts diff --git a/diff/index.d.ts b/types/diff/index.d.ts similarity index 100% rename from diff/index.d.ts rename to types/diff/index.d.ts diff --git a/diff/tsconfig.json b/types/diff/tsconfig.json similarity index 100% rename from diff/tsconfig.json rename to types/diff/tsconfig.json diff --git a/diff2html/diff2html-tests.ts b/types/diff2html/diff2html-tests.ts similarity index 100% rename from diff2html/diff2html-tests.ts rename to types/diff2html/diff2html-tests.ts diff --git a/diff2html/index.d.ts b/types/diff2html/index.d.ts similarity index 100% rename from diff2html/index.d.ts rename to types/diff2html/index.d.ts diff --git a/diff2html/tsconfig.json b/types/diff2html/tsconfig.json similarity index 100% rename from diff2html/tsconfig.json rename to types/diff2html/tsconfig.json diff --git a/dir-resolve/dir-resolve-tests.ts b/types/dir-resolve/dir-resolve-tests.ts similarity index 100% rename from dir-resolve/dir-resolve-tests.ts rename to types/dir-resolve/dir-resolve-tests.ts diff --git a/dir-resolve/index.d.ts b/types/dir-resolve/index.d.ts similarity index 100% rename from dir-resolve/index.d.ts rename to types/dir-resolve/index.d.ts diff --git a/dir-resolve/tsconfig.json b/types/dir-resolve/tsconfig.json similarity index 100% rename from dir-resolve/tsconfig.json rename to types/dir-resolve/tsconfig.json diff --git a/dir-resolve/tslint.json b/types/dir-resolve/tslint.json similarity index 100% rename from dir-resolve/tslint.json rename to types/dir-resolve/tslint.json diff --git a/discontinuous-range/discontinuous-range-tests.ts b/types/discontinuous-range/discontinuous-range-tests.ts similarity index 100% rename from discontinuous-range/discontinuous-range-tests.ts rename to types/discontinuous-range/discontinuous-range-tests.ts diff --git a/discontinuous-range/index.d.ts b/types/discontinuous-range/index.d.ts similarity index 100% rename from discontinuous-range/index.d.ts rename to types/discontinuous-range/index.d.ts diff --git a/discontinuous-range/tsconfig.json b/types/discontinuous-range/tsconfig.json similarity index 100% rename from discontinuous-range/tsconfig.json rename to types/discontinuous-range/tsconfig.json diff --git a/discontinuous-range/tslint.json b/types/discontinuous-range/tslint.json similarity index 100% rename from discontinuous-range/tslint.json rename to types/discontinuous-range/tslint.json diff --git a/disposable-email-domains/disposable-email-domains-tests.ts b/types/disposable-email-domains/disposable-email-domains-tests.ts similarity index 100% rename from disposable-email-domains/disposable-email-domains-tests.ts rename to types/disposable-email-domains/disposable-email-domains-tests.ts diff --git a/disposable-email-domains/index.d.ts b/types/disposable-email-domains/index.d.ts similarity index 100% rename from disposable-email-domains/index.d.ts rename to types/disposable-email-domains/index.d.ts diff --git a/disposable-email-domains/tsconfig.json b/types/disposable-email-domains/tsconfig.json similarity index 100% rename from disposable-email-domains/tsconfig.json rename to types/disposable-email-domains/tsconfig.json diff --git a/doccookies/doccookies-tests.ts b/types/doccookies/doccookies-tests.ts similarity index 100% rename from doccookies/doccookies-tests.ts rename to types/doccookies/doccookies-tests.ts diff --git a/doccookies/index.d.ts b/types/doccookies/index.d.ts similarity index 100% rename from doccookies/index.d.ts rename to types/doccookies/index.d.ts diff --git a/doccookies/tsconfig.json b/types/doccookies/tsconfig.json similarity index 100% rename from doccookies/tsconfig.json rename to types/doccookies/tsconfig.json diff --git a/dock-spawn/dock-spawn-tests.ts b/types/dock-spawn/dock-spawn-tests.ts similarity index 100% rename from dock-spawn/dock-spawn-tests.ts rename to types/dock-spawn/dock-spawn-tests.ts diff --git a/dock-spawn/index.d.ts b/types/dock-spawn/index.d.ts similarity index 100% rename from dock-spawn/index.d.ts rename to types/dock-spawn/index.d.ts diff --git a/dock-spawn/tsconfig.json b/types/dock-spawn/tsconfig.json similarity index 100% rename from dock-spawn/tsconfig.json rename to types/dock-spawn/tsconfig.json diff --git a/dockerode/dockerode-tests.ts b/types/dockerode/dockerode-tests.ts similarity index 100% rename from dockerode/dockerode-tests.ts rename to types/dockerode/dockerode-tests.ts diff --git a/dockerode/index.d.ts b/types/dockerode/index.d.ts similarity index 100% rename from dockerode/index.d.ts rename to types/dockerode/index.d.ts diff --git a/dockerode/tsconfig.json b/types/dockerode/tsconfig.json similarity index 100% rename from dockerode/tsconfig.json rename to types/dockerode/tsconfig.json diff --git a/dockerode/tslint.json b/types/dockerode/tslint.json similarity index 100% rename from dockerode/tslint.json rename to types/dockerode/tslint.json diff --git a/docopt/docopt-tests.ts b/types/docopt/docopt-tests.ts similarity index 100% rename from docopt/docopt-tests.ts rename to types/docopt/docopt-tests.ts diff --git a/docopt/index.d.ts b/types/docopt/index.d.ts similarity index 100% rename from docopt/index.d.ts rename to types/docopt/index.d.ts diff --git a/docopt/tsconfig.json b/types/docopt/tsconfig.json similarity index 100% rename from docopt/tsconfig.json rename to types/docopt/tsconfig.json diff --git a/doctrine/doctrine-tests.ts b/types/doctrine/doctrine-tests.ts similarity index 100% rename from doctrine/doctrine-tests.ts rename to types/doctrine/doctrine-tests.ts diff --git a/doctrine/index.d.ts b/types/doctrine/index.d.ts similarity index 100% rename from doctrine/index.d.ts rename to types/doctrine/index.d.ts diff --git a/doctrine/tsconfig.json b/types/doctrine/tsconfig.json similarity index 100% rename from doctrine/tsconfig.json rename to types/doctrine/tsconfig.json diff --git a/documentdb-server/documentdb-server-tests.ts b/types/documentdb-server/documentdb-server-tests.ts similarity index 100% rename from documentdb-server/documentdb-server-tests.ts rename to types/documentdb-server/documentdb-server-tests.ts diff --git a/documentdb-server/index.d.ts b/types/documentdb-server/index.d.ts similarity index 100% rename from documentdb-server/index.d.ts rename to types/documentdb-server/index.d.ts diff --git a/documentdb-server/tsconfig.json b/types/documentdb-server/tsconfig.json similarity index 100% rename from documentdb-server/tsconfig.json rename to types/documentdb-server/tsconfig.json diff --git a/documentdb/documentdb-tests.ts b/types/documentdb/documentdb-tests.ts similarity index 100% rename from documentdb/documentdb-tests.ts rename to types/documentdb/documentdb-tests.ts diff --git a/documentdb/index.d.ts b/types/documentdb/index.d.ts similarity index 100% rename from documentdb/index.d.ts rename to types/documentdb/index.d.ts diff --git a/documentdb/tsconfig.json b/types/documentdb/tsconfig.json similarity index 100% rename from documentdb/tsconfig.json rename to types/documentdb/tsconfig.json diff --git a/dojo/README.md b/types/dojo/README.md similarity index 100% rename from dojo/README.md rename to types/dojo/README.md diff --git a/dojo/dijit.d.ts b/types/dojo/dijit.d.ts similarity index 100% rename from dojo/dijit.d.ts rename to types/dojo/dijit.d.ts diff --git a/dojo/doh.d.ts b/types/dojo/doh.d.ts similarity index 100% rename from dojo/doh.d.ts rename to types/dojo/doh.d.ts diff --git a/dojo/dojox.NodeList.d.ts b/types/dojo/dojox.NodeList.d.ts similarity index 100% rename from dojo/dojox.NodeList.d.ts rename to types/dojo/dojox.NodeList.d.ts diff --git a/dojo/dojox.analytics.d.ts b/types/dojo/dojox.analytics.d.ts similarity index 100% rename from dojo/dojox.analytics.d.ts rename to types/dojo/dojox.analytics.d.ts diff --git a/dojo/dojox.app.d.ts b/types/dojo/dojox.app.d.ts similarity index 100% rename from dojo/dojox.app.d.ts rename to types/dojo/dojox.app.d.ts diff --git a/dojo/dojox.atom.d.ts b/types/dojo/dojox.atom.d.ts similarity index 100% rename from dojo/dojox.atom.d.ts rename to types/dojo/dojox.atom.d.ts diff --git a/dojo/dojox.av.d.ts b/types/dojo/dojox.av.d.ts similarity index 100% rename from dojo/dojox.av.d.ts rename to types/dojo/dojox.av.d.ts diff --git a/dojo/dojox.calc.d.ts b/types/dojo/dojox.calc.d.ts similarity index 100% rename from dojo/dojox.calc.d.ts rename to types/dojo/dojox.calc.d.ts diff --git a/dojo/dojox.calendar.d.ts b/types/dojo/dojox.calendar.d.ts similarity index 100% rename from dojo/dojox.calendar.d.ts rename to types/dojo/dojox.calendar.d.ts diff --git a/dojo/dojox.charting.d.ts b/types/dojo/dojox.charting.d.ts similarity index 100% rename from dojo/dojox.charting.d.ts rename to types/dojo/dojox.charting.d.ts diff --git a/dojo/dojox.collections.d.ts b/types/dojo/dojox.collections.d.ts similarity index 100% rename from dojo/dojox.collections.d.ts rename to types/dojo/dojox.collections.d.ts diff --git a/dojo/dojox.color.d.ts b/types/dojo/dojox.color.d.ts similarity index 100% rename from dojo/dojox.color.d.ts rename to types/dojo/dojox.color.d.ts diff --git a/dojo/dojox.css3.d.ts b/types/dojo/dojox.css3.d.ts similarity index 100% rename from dojo/dojox.css3.d.ts rename to types/dojo/dojox.css3.d.ts diff --git a/dojo/dojox.data.d.ts b/types/dojo/dojox.data.d.ts similarity index 100% rename from dojo/dojox.data.d.ts rename to types/dojo/dojox.data.d.ts diff --git a/dojo/dojox.date.d.ts b/types/dojo/dojox.date.d.ts similarity index 100% rename from dojo/dojox.date.d.ts rename to types/dojo/dojox.date.d.ts diff --git a/dojo/dojox.dgauges.d.ts b/types/dojo/dojox.dgauges.d.ts similarity index 100% rename from dojo/dojox.dgauges.d.ts rename to types/dojo/dojox.dgauges.d.ts diff --git a/dojo/dojox.dnd.d.ts b/types/dojo/dojox.dnd.d.ts similarity index 100% rename from dojo/dojox.dnd.d.ts rename to types/dojo/dojox.dnd.d.ts diff --git a/dojo/dojox.drawing.d.ts b/types/dojo/dojox.drawing.d.ts similarity index 100% rename from dojo/dojox.drawing.d.ts rename to types/dojo/dojox.drawing.d.ts diff --git a/dojo/dojox.dtl.d.ts b/types/dojo/dojox.dtl.d.ts similarity index 100% rename from dojo/dojox.dtl.d.ts rename to types/dojo/dojox.dtl.d.ts diff --git a/dojo/dojox.editor.d.ts b/types/dojo/dojox.editor.d.ts similarity index 100% rename from dojo/dojox.editor.d.ts rename to types/dojo/dojox.editor.d.ts diff --git a/dojo/dojox.embed.d.ts b/types/dojo/dojox.embed.d.ts similarity index 100% rename from dojo/dojox.embed.d.ts rename to types/dojo/dojox.embed.d.ts diff --git a/dojo/dojox.encoding.d.ts b/types/dojo/dojox.encoding.d.ts similarity index 100% rename from dojo/dojox.encoding.d.ts rename to types/dojo/dojox.encoding.d.ts diff --git a/dojo/dojox.flash.d.ts b/types/dojo/dojox.flash.d.ts similarity index 100% rename from dojo/dojox.flash.d.ts rename to types/dojo/dojox.flash.d.ts diff --git a/dojo/dojox.form.d.ts b/types/dojo/dojox.form.d.ts similarity index 100% rename from dojo/dojox.form.d.ts rename to types/dojo/dojox.form.d.ts diff --git a/dojo/dojox.fx.d.ts b/types/dojo/dojox.fx.d.ts similarity index 100% rename from dojo/dojox.fx.d.ts rename to types/dojo/dojox.fx.d.ts diff --git a/dojo/dojox.gantt.d.ts b/types/dojo/dojox.gantt.d.ts similarity index 100% rename from dojo/dojox.gantt.d.ts rename to types/dojo/dojox.gantt.d.ts diff --git a/dojo/dojox.gauges.d.ts b/types/dojo/dojox.gauges.d.ts similarity index 100% rename from dojo/dojox.gauges.d.ts rename to types/dojo/dojox.gauges.d.ts diff --git a/dojo/dojox.geo.d.ts b/types/dojo/dojox.geo.d.ts similarity index 100% rename from dojo/dojox.geo.d.ts rename to types/dojo/dojox.geo.d.ts diff --git a/dojo/dojox.gesture.d.ts b/types/dojo/dojox.gesture.d.ts similarity index 100% rename from dojo/dojox.gesture.d.ts rename to types/dojo/dojox.gesture.d.ts diff --git a/dojo/dojox.gfx.d.ts b/types/dojo/dojox.gfx.d.ts similarity index 100% rename from dojo/dojox.gfx.d.ts rename to types/dojo/dojox.gfx.d.ts diff --git a/dojo/dojox.gfx3d.d.ts b/types/dojo/dojox.gfx3d.d.ts similarity index 100% rename from dojo/dojox.gfx3d.d.ts rename to types/dojo/dojox.gfx3d.d.ts diff --git a/dojo/dojox.grid.d.ts b/types/dojo/dojox.grid.d.ts similarity index 100% rename from dojo/dojox.grid.d.ts rename to types/dojo/dojox.grid.d.ts diff --git a/dojo/dojox.help.d.ts b/types/dojo/dojox.help.d.ts similarity index 100% rename from dojo/dojox.help.d.ts rename to types/dojo/dojox.help.d.ts diff --git a/dojo/dojox.highlight.d.ts b/types/dojo/dojox.highlight.d.ts similarity index 100% rename from dojo/dojox.highlight.d.ts rename to types/dojo/dojox.highlight.d.ts diff --git a/dojo/dojox.html.d.ts b/types/dojo/dojox.html.d.ts similarity index 100% rename from dojo/dojox.html.d.ts rename to types/dojo/dojox.html.d.ts diff --git a/dojo/dojox.image.d.ts b/types/dojo/dojox.image.d.ts similarity index 100% rename from dojo/dojox.image.d.ts rename to types/dojo/dojox.image.d.ts diff --git a/dojo/dojox.io.d.ts b/types/dojo/dojox.io.d.ts similarity index 100% rename from dojo/dojox.io.d.ts rename to types/dojo/dojox.io.d.ts diff --git a/dojo/dojox.jq.d.ts b/types/dojo/dojox.jq.d.ts similarity index 100% rename from dojo/dojox.jq.d.ts rename to types/dojo/dojox.jq.d.ts diff --git a/dojo/dojox.json.d.ts b/types/dojo/dojox.json.d.ts similarity index 100% rename from dojo/dojox.json.d.ts rename to types/dojo/dojox.json.d.ts diff --git a/dojo/dojox.jsonPath.d.ts b/types/dojo/dojox.jsonPath.d.ts similarity index 100% rename from dojo/dojox.jsonPath.d.ts rename to types/dojo/dojox.jsonPath.d.ts diff --git a/dojo/dojox.lang.d.ts b/types/dojo/dojox.lang.d.ts similarity index 100% rename from dojo/dojox.lang.d.ts rename to types/dojo/dojox.lang.d.ts diff --git a/dojo/dojox.layout.d.ts b/types/dojo/dojox.layout.d.ts similarity index 100% rename from dojo/dojox.layout.d.ts rename to types/dojo/dojox.layout.d.ts diff --git a/dojo/dojox.main.d.ts b/types/dojo/dojox.main.d.ts similarity index 100% rename from dojo/dojox.main.d.ts rename to types/dojo/dojox.main.d.ts diff --git a/dojo/dojox.math.d.ts b/types/dojo/dojox.math.d.ts similarity index 100% rename from dojo/dojox.math.d.ts rename to types/dojo/dojox.math.d.ts diff --git a/dojo/dojox.mdnd.d.ts b/types/dojo/dojox.mdnd.d.ts similarity index 100% rename from dojo/dojox.mdnd.d.ts rename to types/dojo/dojox.mdnd.d.ts diff --git a/dojo/dojox.mobile.d.ts b/types/dojo/dojox.mobile.d.ts similarity index 100% rename from dojo/dojox.mobile.d.ts rename to types/dojo/dojox.mobile.d.ts diff --git a/dojo/dojox.mvc.d.ts b/types/dojo/dojox.mvc.d.ts similarity index 100% rename from dojo/dojox.mvc.d.ts rename to types/dojo/dojox.mvc.d.ts diff --git a/dojo/dojox.rails.d.ts b/types/dojo/dojox.rails.d.ts similarity index 100% rename from dojo/dojox.rails.d.ts rename to types/dojo/dojox.rails.d.ts diff --git a/dojo/dojox.robot.d.ts b/types/dojo/dojox.robot.d.ts similarity index 100% rename from dojo/dojox.robot.d.ts rename to types/dojo/dojox.robot.d.ts diff --git a/dojo/dojox.rpc.d.ts b/types/dojo/dojox.rpc.d.ts similarity index 100% rename from dojo/dojox.rpc.d.ts rename to types/dojo/dojox.rpc.d.ts diff --git a/dojo/dojox.secure.d.ts b/types/dojo/dojox.secure.d.ts similarity index 100% rename from dojo/dojox.secure.d.ts rename to types/dojo/dojox.secure.d.ts diff --git a/dojo/dojox.sketch.d.ts b/types/dojo/dojox.sketch.d.ts similarity index 100% rename from dojo/dojox.sketch.d.ts rename to types/dojo/dojox.sketch.d.ts diff --git a/dojo/dojox.socket.d.ts b/types/dojo/dojox.socket.d.ts similarity index 100% rename from dojo/dojox.socket.d.ts rename to types/dojo/dojox.socket.d.ts diff --git a/dojo/dojox.sql.d.ts b/types/dojo/dojox.sql.d.ts similarity index 100% rename from dojo/dojox.sql.d.ts rename to types/dojo/dojox.sql.d.ts diff --git a/dojo/dojox.storage.d.ts b/types/dojo/dojox.storage.d.ts similarity index 100% rename from dojo/dojox.storage.d.ts rename to types/dojo/dojox.storage.d.ts diff --git a/dojo/dojox.string.d.ts b/types/dojo/dojox.string.d.ts similarity index 100% rename from dojo/dojox.string.d.ts rename to types/dojo/dojox.string.d.ts diff --git a/dojo/dojox.testing.d.ts b/types/dojo/dojox.testing.d.ts similarity index 100% rename from dojo/dojox.testing.d.ts rename to types/dojo/dojox.testing.d.ts diff --git a/dojo/dojox.timing.d.ts b/types/dojo/dojox.timing.d.ts similarity index 100% rename from dojo/dojox.timing.d.ts rename to types/dojo/dojox.timing.d.ts diff --git a/dojo/dojox.treemap.d.ts b/types/dojo/dojox.treemap.d.ts similarity index 100% rename from dojo/dojox.treemap.d.ts rename to types/dojo/dojox.treemap.d.ts diff --git a/dojo/dojox.uuid.d.ts b/types/dojo/dojox.uuid.d.ts similarity index 100% rename from dojo/dojox.uuid.d.ts rename to types/dojo/dojox.uuid.d.ts diff --git a/dojo/dojox.validate.d.ts b/types/dojo/dojox.validate.d.ts similarity index 100% rename from dojo/dojox.validate.d.ts rename to types/dojo/dojox.validate.d.ts diff --git a/dojo/dojox.widget.d.ts b/types/dojo/dojox.widget.d.ts similarity index 100% rename from dojo/dojox.widget.d.ts rename to types/dojo/dojox.widget.d.ts diff --git a/dojo/dojox.xml.d.ts b/types/dojo/dojox.xml.d.ts similarity index 100% rename from dojo/dojox.xml.d.ts rename to types/dojo/dojox.xml.d.ts diff --git a/dojo/index.d.ts b/types/dojo/index.d.ts similarity index 100% rename from dojo/index.d.ts rename to types/dojo/index.d.ts diff --git a/dojo/tsconfig.json b/types/dojo/tsconfig.json similarity index 100% rename from dojo/tsconfig.json rename to types/dojo/tsconfig.json diff --git a/dom4/dom4-tests.ts b/types/dom4/dom4-tests.ts similarity index 100% rename from dom4/dom4-tests.ts rename to types/dom4/dom4-tests.ts diff --git a/dom4/index.d.ts b/types/dom4/index.d.ts similarity index 100% rename from dom4/index.d.ts rename to types/dom4/index.d.ts diff --git a/dom4/tsconfig.json b/types/dom4/tsconfig.json similarity index 100% rename from dom4/tsconfig.json rename to types/dom4/tsconfig.json diff --git a/domo/domo-tests.ts b/types/domo/domo-tests.ts similarity index 100% rename from domo/domo-tests.ts rename to types/domo/domo-tests.ts diff --git a/domo/index.d.ts b/types/domo/index.d.ts similarity index 100% rename from domo/index.d.ts rename to types/domo/index.d.ts diff --git a/domo/tsconfig.json b/types/domo/tsconfig.json similarity index 100% rename from domo/tsconfig.json rename to types/domo/tsconfig.json diff --git a/dompurify/dompurify-tests.ts b/types/dompurify/dompurify-tests.ts similarity index 100% rename from dompurify/dompurify-tests.ts rename to types/dompurify/dompurify-tests.ts diff --git a/dompurify/index.d.ts b/types/dompurify/index.d.ts similarity index 100% rename from dompurify/index.d.ts rename to types/dompurify/index.d.ts diff --git a/dompurify/tsconfig.json b/types/dompurify/tsconfig.json similarity index 100% rename from dompurify/tsconfig.json rename to types/dompurify/tsconfig.json diff --git a/domready/domready-tests.ts b/types/domready/domready-tests.ts similarity index 100% rename from domready/domready-tests.ts rename to types/domready/domready-tests.ts diff --git a/domready/index.d.ts b/types/domready/index.d.ts similarity index 100% rename from domready/index.d.ts rename to types/domready/index.d.ts diff --git a/domready/tsconfig.json b/types/domready/tsconfig.json similarity index 100% rename from domready/tsconfig.json rename to types/domready/tsconfig.json diff --git a/domurl/domurl-tests.ts b/types/domurl/domurl-tests.ts similarity index 100% rename from domurl/domurl-tests.ts rename to types/domurl/domurl-tests.ts diff --git a/domurl/index.d.ts b/types/domurl/index.d.ts similarity index 100% rename from domurl/index.d.ts rename to types/domurl/index.d.ts diff --git a/domurl/tsconfig.json b/types/domurl/tsconfig.json similarity index 100% rename from domurl/tsconfig.json rename to types/domurl/tsconfig.json diff --git a/donna/donna-tests.ts b/types/donna/donna-tests.ts similarity index 100% rename from donna/donna-tests.ts rename to types/donna/donna-tests.ts diff --git a/donna/index.d.ts b/types/donna/index.d.ts similarity index 100% rename from donna/index.d.ts rename to types/donna/index.d.ts diff --git a/donna/tsconfig.json b/types/donna/tsconfig.json similarity index 100% rename from donna/tsconfig.json rename to types/donna/tsconfig.json diff --git a/dookie/dookie-tests.ts b/types/dookie/dookie-tests.ts similarity index 71% rename from dookie/dookie-tests.ts rename to types/dookie/dookie-tests.ts index 44cd6ec7ac..476538b8de 100644 --- a/dookie/dookie-tests.ts +++ b/types/dookie/dookie-tests.ts @@ -1,8 +1,5 @@ - -import {push, pull} from './index'; +import {push, pull} from 'dookie'; (async () => { - await push('mongodb://localhost:27017/test', {test: [{ok: 1}, {ok: 2}]}); - })(); diff --git a/dookie/index.d.ts b/types/dookie/index.d.ts similarity index 100% rename from dookie/index.d.ts rename to types/dookie/index.d.ts diff --git a/dookie/tsconfig.json b/types/dookie/tsconfig.json similarity index 100% rename from dookie/tsconfig.json rename to types/dookie/tsconfig.json diff --git a/dookie/tslint.json b/types/dookie/tslint.json similarity index 100% rename from dookie/tslint.json rename to types/dookie/tslint.json diff --git a/dot-object/dot-object-tests.ts b/types/dot-object/dot-object-tests.ts similarity index 100% rename from dot-object/dot-object-tests.ts rename to types/dot-object/dot-object-tests.ts diff --git a/dot-object/index.d.ts b/types/dot-object/index.d.ts similarity index 100% rename from dot-object/index.d.ts rename to types/dot-object/index.d.ts diff --git a/dot-object/tsconfig.json b/types/dot-object/tsconfig.json similarity index 100% rename from dot-object/tsconfig.json rename to types/dot-object/tsconfig.json diff --git a/dot-prop/dot-prop-tests.ts b/types/dot-prop/dot-prop-tests.ts similarity index 100% rename from dot-prop/dot-prop-tests.ts rename to types/dot-prop/dot-prop-tests.ts diff --git a/dot-prop/index.d.ts b/types/dot-prop/index.d.ts similarity index 100% rename from dot-prop/index.d.ts rename to types/dot-prop/index.d.ts diff --git a/dot-prop/tsconfig.json b/types/dot-prop/tsconfig.json similarity index 100% rename from dot-prop/tsconfig.json rename to types/dot-prop/tsconfig.json diff --git a/dot/dot-tests.ts b/types/dot/dot-tests.ts similarity index 100% rename from dot/dot-tests.ts rename to types/dot/dot-tests.ts diff --git a/dot/index.d.ts b/types/dot/index.d.ts similarity index 100% rename from dot/index.d.ts rename to types/dot/index.d.ts diff --git a/dot/tsconfig.json b/types/dot/tsconfig.json similarity index 100% rename from dot/tsconfig.json rename to types/dot/tsconfig.json diff --git a/dot/tslint.json b/types/dot/tslint.json similarity index 100% rename from dot/tslint.json rename to types/dot/tslint.json diff --git a/dotdotdot/dotdotdot-tests.ts b/types/dotdotdot/dotdotdot-tests.ts similarity index 100% rename from dotdotdot/dotdotdot-tests.ts rename to types/dotdotdot/dotdotdot-tests.ts diff --git a/dotdotdot/index.d.ts b/types/dotdotdot/index.d.ts similarity index 100% rename from dotdotdot/index.d.ts rename to types/dotdotdot/index.d.ts diff --git a/dotdotdot/tsconfig.json b/types/dotdotdot/tsconfig.json similarity index 100% rename from dotdotdot/tsconfig.json rename to types/dotdotdot/tsconfig.json diff --git a/dotenv/dotenv-tests.ts b/types/dotenv/dotenv-tests.ts similarity index 100% rename from dotenv/dotenv-tests.ts rename to types/dotenv/dotenv-tests.ts diff --git a/dotenv/index.d.ts b/types/dotenv/index.d.ts similarity index 100% rename from dotenv/index.d.ts rename to types/dotenv/index.d.ts diff --git a/dotenv/tsconfig.json b/types/dotenv/tsconfig.json similarity index 100% rename from dotenv/tsconfig.json rename to types/dotenv/tsconfig.json diff --git a/dotenv/tslint.json b/types/dotenv/tslint.json similarity index 100% rename from dotenv/tslint.json rename to types/dotenv/tslint.json diff --git a/doublearray/doublearray-tests.ts b/types/doublearray/doublearray-tests.ts similarity index 100% rename from doublearray/doublearray-tests.ts rename to types/doublearray/doublearray-tests.ts diff --git a/doublearray/index.d.ts b/types/doublearray/index.d.ts similarity index 100% rename from doublearray/index.d.ts rename to types/doublearray/index.d.ts diff --git a/doublearray/tsconfig.json b/types/doublearray/tsconfig.json similarity index 100% rename from doublearray/tsconfig.json rename to types/doublearray/tsconfig.json diff --git a/doubleclick-gpt/doubleclick-gpt-tests.ts b/types/doubleclick-gpt/doubleclick-gpt-tests.ts similarity index 100% rename from doubleclick-gpt/doubleclick-gpt-tests.ts rename to types/doubleclick-gpt/doubleclick-gpt-tests.ts diff --git a/doubleclick-gpt/index.d.ts b/types/doubleclick-gpt/index.d.ts similarity index 100% rename from doubleclick-gpt/index.d.ts rename to types/doubleclick-gpt/index.d.ts diff --git a/doubleclick-gpt/tsconfig.json b/types/doubleclick-gpt/tsconfig.json similarity index 100% rename from doubleclick-gpt/tsconfig.json rename to types/doubleclick-gpt/tsconfig.json diff --git a/draft-js/draft-js-tests.tsx b/types/draft-js/draft-js-tests.tsx similarity index 100% rename from draft-js/draft-js-tests.tsx rename to types/draft-js/draft-js-tests.tsx diff --git a/draft-js/index.d.ts b/types/draft-js/index.d.ts similarity index 100% rename from draft-js/index.d.ts rename to types/draft-js/index.d.ts diff --git a/draft-js/package.json b/types/draft-js/package.json similarity index 100% rename from draft-js/package.json rename to types/draft-js/package.json diff --git a/draft-js/tsconfig.json b/types/draft-js/tsconfig.json similarity index 100% rename from draft-js/tsconfig.json rename to types/draft-js/tsconfig.json diff --git a/dragster/dragster-tests.ts b/types/dragster/dragster-tests.ts similarity index 100% rename from dragster/dragster-tests.ts rename to types/dragster/dragster-tests.ts diff --git a/dragster/index.d.ts b/types/dragster/index.d.ts similarity index 100% rename from dragster/index.d.ts rename to types/dragster/index.d.ts diff --git a/dragster/tsconfig.json b/types/dragster/tsconfig.json similarity index 100% rename from dragster/tsconfig.json rename to types/dragster/tsconfig.json diff --git a/dragster/tslint.json b/types/dragster/tslint.json similarity index 100% rename from dragster/tslint.json rename to types/dragster/tslint.json diff --git a/dragula/dragula-tests.ts b/types/dragula/dragula-tests.ts similarity index 100% rename from dragula/dragula-tests.ts rename to types/dragula/dragula-tests.ts diff --git a/dragula/index.d.ts b/types/dragula/index.d.ts similarity index 100% rename from dragula/index.d.ts rename to types/dragula/index.d.ts diff --git a/dragula/tsconfig.json b/types/dragula/tsconfig.json similarity index 100% rename from dragula/tsconfig.json rename to types/dragula/tsconfig.json diff --git a/dropboxjs/dropboxjs-tests.ts b/types/dropboxjs/dropboxjs-tests.ts similarity index 100% rename from dropboxjs/dropboxjs-tests.ts rename to types/dropboxjs/dropboxjs-tests.ts diff --git a/dropboxjs/index.d.ts b/types/dropboxjs/index.d.ts similarity index 100% rename from dropboxjs/index.d.ts rename to types/dropboxjs/index.d.ts diff --git a/dropboxjs/tsconfig.json b/types/dropboxjs/tsconfig.json similarity index 100% rename from dropboxjs/tsconfig.json rename to types/dropboxjs/tsconfig.json diff --git a/dropkickjs/dropkickjs-tests.ts b/types/dropkickjs/dropkickjs-tests.ts similarity index 100% rename from dropkickjs/dropkickjs-tests.ts rename to types/dropkickjs/dropkickjs-tests.ts diff --git a/dropkickjs/index.d.ts b/types/dropkickjs/index.d.ts similarity index 100% rename from dropkickjs/index.d.ts rename to types/dropkickjs/index.d.ts diff --git a/dropkickjs/tsconfig.json b/types/dropkickjs/tsconfig.json similarity index 100% rename from dropkickjs/tsconfig.json rename to types/dropkickjs/tsconfig.json diff --git a/dropkickjs/tslint.json b/types/dropkickjs/tslint.json similarity index 100% rename from dropkickjs/tslint.json rename to types/dropkickjs/tslint.json diff --git a/dropzone/dropzone-tests.ts b/types/dropzone/dropzone-tests.ts old mode 100755 new mode 100644 similarity index 100% rename from dropzone/dropzone-tests.ts rename to types/dropzone/dropzone-tests.ts diff --git a/dropzone/index.d.ts b/types/dropzone/index.d.ts old mode 100755 new mode 100644 similarity index 100% rename from dropzone/index.d.ts rename to types/dropzone/index.d.ts diff --git a/dropzone/tsconfig.json b/types/dropzone/tsconfig.json similarity index 100% rename from dropzone/tsconfig.json rename to types/dropzone/tsconfig.json diff --git a/dsv/dsv-tests.ts b/types/dsv/dsv-tests.ts similarity index 100% rename from dsv/dsv-tests.ts rename to types/dsv/dsv-tests.ts diff --git a/dsv/index.d.ts b/types/dsv/index.d.ts similarity index 100% rename from dsv/index.d.ts rename to types/dsv/index.d.ts diff --git a/dsv/tsconfig.json b/types/dsv/tsconfig.json similarity index 100% rename from dsv/tsconfig.json rename to types/dsv/tsconfig.json diff --git a/dts-bundle/dts-bundle-tests.ts b/types/dts-bundle/dts-bundle-tests.ts similarity index 100% rename from dts-bundle/dts-bundle-tests.ts rename to types/dts-bundle/dts-bundle-tests.ts diff --git a/dts-bundle/index.d.ts b/types/dts-bundle/index.d.ts similarity index 100% rename from dts-bundle/index.d.ts rename to types/dts-bundle/index.d.ts diff --git a/dts-bundle/tsconfig.json b/types/dts-bundle/tsconfig.json similarity index 100% rename from dts-bundle/tsconfig.json rename to types/dts-bundle/tsconfig.json diff --git a/duplexer2/duplexer2-tests.ts b/types/duplexer2/duplexer2-tests.ts similarity index 100% rename from duplexer2/duplexer2-tests.ts rename to types/duplexer2/duplexer2-tests.ts diff --git a/duplexer2/index.d.ts b/types/duplexer2/index.d.ts similarity index 100% rename from duplexer2/index.d.ts rename to types/duplexer2/index.d.ts diff --git a/duplexer2/tsconfig.json b/types/duplexer2/tsconfig.json similarity index 100% rename from duplexer2/tsconfig.json rename to types/duplexer2/tsconfig.json diff --git a/duplexer2/tslint.json b/types/duplexer2/tslint.json similarity index 100% rename from duplexer2/tslint.json rename to types/duplexer2/tslint.json diff --git a/durandal/index.d.ts b/types/durandal/index.d.ts similarity index 100% rename from durandal/index.d.ts rename to types/durandal/index.d.ts diff --git a/durandal/tsconfig.json b/types/durandal/tsconfig.json similarity index 100% rename from durandal/tsconfig.json rename to types/durandal/tsconfig.json diff --git a/durandal/v1/index.d.ts b/types/durandal/v1/index.d.ts similarity index 100% rename from durandal/v1/index.d.ts rename to types/durandal/v1/index.d.ts diff --git a/durandal/v1/tsconfig.json b/types/durandal/v1/tsconfig.json similarity index 100% rename from durandal/v1/tsconfig.json rename to types/durandal/v1/tsconfig.json diff --git a/dustjs-linkedin/dustjs-linkedin-tests.ts b/types/dustjs-linkedin/dustjs-linkedin-tests.ts similarity index 100% rename from dustjs-linkedin/dustjs-linkedin-tests.ts rename to types/dustjs-linkedin/dustjs-linkedin-tests.ts diff --git a/dustjs-linkedin/index.d.ts b/types/dustjs-linkedin/index.d.ts similarity index 100% rename from dustjs-linkedin/index.d.ts rename to types/dustjs-linkedin/index.d.ts diff --git a/dustjs-linkedin/tsconfig.json b/types/dustjs-linkedin/tsconfig.json similarity index 100% rename from dustjs-linkedin/tsconfig.json rename to types/dustjs-linkedin/tsconfig.json diff --git a/dw-bxslider-4/dw-bxslider-4-tests.ts b/types/dw-bxslider-4/dw-bxslider-4-tests.ts similarity index 100% rename from dw-bxslider-4/dw-bxslider-4-tests.ts rename to types/dw-bxslider-4/dw-bxslider-4-tests.ts diff --git a/dw-bxslider-4/index.d.ts b/types/dw-bxslider-4/index.d.ts similarity index 100% rename from dw-bxslider-4/index.d.ts rename to types/dw-bxslider-4/index.d.ts diff --git a/dw-bxslider-4/tsconfig.json b/types/dw-bxslider-4/tsconfig.json similarity index 100% rename from dw-bxslider-4/tsconfig.json rename to types/dw-bxslider-4/tsconfig.json diff --git a/dygraphs/dygraphs-tests.ts b/types/dygraphs/dygraphs-tests.ts similarity index 100% rename from dygraphs/dygraphs-tests.ts rename to types/dygraphs/dygraphs-tests.ts diff --git a/dygraphs/index.d.ts b/types/dygraphs/index.d.ts similarity index 100% rename from dygraphs/index.d.ts rename to types/dygraphs/index.d.ts diff --git a/dygraphs/tsconfig.json b/types/dygraphs/tsconfig.json similarity index 100% rename from dygraphs/tsconfig.json rename to types/dygraphs/tsconfig.json diff --git a/dymo-label-framework/dymo-label-framework-tests.ts b/types/dymo-label-framework/dymo-label-framework-tests.ts similarity index 100% rename from dymo-label-framework/dymo-label-framework-tests.ts rename to types/dymo-label-framework/dymo-label-framework-tests.ts diff --git a/dymo-label-framework/index.d.ts b/types/dymo-label-framework/index.d.ts similarity index 100% rename from dymo-label-framework/index.d.ts rename to types/dymo-label-framework/index.d.ts diff --git a/dymo-label-framework/tsconfig.json b/types/dymo-label-framework/tsconfig.json similarity index 100% rename from dymo-label-framework/tsconfig.json rename to types/dymo-label-framework/tsconfig.json diff --git a/dynatable/dynatable-tests.ts b/types/dynatable/dynatable-tests.ts similarity index 100% rename from dynatable/dynatable-tests.ts rename to types/dynatable/dynatable-tests.ts diff --git a/dynatable/index.d.ts b/types/dynatable/index.d.ts similarity index 100% rename from dynatable/index.d.ts rename to types/dynatable/index.d.ts diff --git a/dynatable/tsconfig.json b/types/dynatable/tsconfig.json similarity index 100% rename from dynatable/tsconfig.json rename to types/dynatable/tsconfig.json diff --git a/each/each-tests.ts b/types/each/each-tests.ts similarity index 100% rename from each/each-tests.ts rename to types/each/each-tests.ts diff --git a/each/index.d.ts b/types/each/index.d.ts similarity index 100% rename from each/index.d.ts rename to types/each/index.d.ts diff --git a/each/tsconfig.json b/types/each/tsconfig.json similarity index 100% rename from each/tsconfig.json rename to types/each/tsconfig.json diff --git a/easeljs/easeljs-tests.ts b/types/easeljs/easeljs-tests.ts similarity index 100% rename from easeljs/easeljs-tests.ts rename to types/easeljs/easeljs-tests.ts diff --git a/easeljs/index.d.ts b/types/easeljs/index.d.ts similarity index 100% rename from easeljs/index.d.ts rename to types/easeljs/index.d.ts diff --git a/easeljs/tsconfig.json b/types/easeljs/tsconfig.json similarity index 100% rename from easeljs/tsconfig.json rename to types/easeljs/tsconfig.json diff --git a/easy-api-request/easy-api-request-tests.ts b/types/easy-api-request/easy-api-request-tests.ts similarity index 100% rename from easy-api-request/easy-api-request-tests.ts rename to types/easy-api-request/easy-api-request-tests.ts diff --git a/easy-api-request/index.d.ts b/types/easy-api-request/index.d.ts similarity index 100% rename from easy-api-request/index.d.ts rename to types/easy-api-request/index.d.ts diff --git a/easy-api-request/tsconfig.json b/types/easy-api-request/tsconfig.json similarity index 100% rename from easy-api-request/tsconfig.json rename to types/easy-api-request/tsconfig.json diff --git a/easy-jsend/easy-jsend-tests.ts b/types/easy-jsend/easy-jsend-tests.ts similarity index 100% rename from easy-jsend/easy-jsend-tests.ts rename to types/easy-jsend/easy-jsend-tests.ts diff --git a/easy-jsend/index.d.ts b/types/easy-jsend/index.d.ts similarity index 100% rename from easy-jsend/index.d.ts rename to types/easy-jsend/index.d.ts diff --git a/easy-jsend/tsconfig.json b/types/easy-jsend/tsconfig.json similarity index 100% rename from easy-jsend/tsconfig.json rename to types/easy-jsend/tsconfig.json diff --git a/easy-session/easy-session-tests.ts b/types/easy-session/easy-session-tests.ts similarity index 100% rename from easy-session/easy-session-tests.ts rename to types/easy-session/easy-session-tests.ts diff --git a/easy-session/index.d.ts b/types/easy-session/index.d.ts similarity index 100% rename from easy-session/index.d.ts rename to types/easy-session/index.d.ts diff --git a/easy-session/tsconfig.json b/types/easy-session/tsconfig.json similarity index 100% rename from easy-session/tsconfig.json rename to types/easy-session/tsconfig.json diff --git a/easy-table/easy-table-tests.ts b/types/easy-table/easy-table-tests.ts similarity index 100% rename from easy-table/easy-table-tests.ts rename to types/easy-table/easy-table-tests.ts diff --git a/easy-table/index.d.ts b/types/easy-table/index.d.ts similarity index 100% rename from easy-table/index.d.ts rename to types/easy-table/index.d.ts diff --git a/easy-table/tsconfig.json b/types/easy-table/tsconfig.json similarity index 100% rename from easy-table/tsconfig.json rename to types/easy-table/tsconfig.json diff --git a/easy-x-headers/easy-x-headers-tests.ts b/types/easy-x-headers/easy-x-headers-tests.ts similarity index 100% rename from easy-x-headers/easy-x-headers-tests.ts rename to types/easy-x-headers/easy-x-headers-tests.ts diff --git a/easy-x-headers/index.d.ts b/types/easy-x-headers/index.d.ts similarity index 100% rename from easy-x-headers/index.d.ts rename to types/easy-x-headers/index.d.ts diff --git a/easy-x-headers/tsconfig.json b/types/easy-x-headers/tsconfig.json similarity index 100% rename from easy-x-headers/tsconfig.json rename to types/easy-x-headers/tsconfig.json diff --git a/easy-xapi-supertest/easy-xapi-supertest-tests.ts b/types/easy-xapi-supertest/easy-xapi-supertest-tests.ts similarity index 100% rename from easy-xapi-supertest/easy-xapi-supertest-tests.ts rename to types/easy-xapi-supertest/easy-xapi-supertest-tests.ts diff --git a/easy-xapi-supertest/index.d.ts b/types/easy-xapi-supertest/index.d.ts similarity index 100% rename from easy-xapi-supertest/index.d.ts rename to types/easy-xapi-supertest/index.d.ts diff --git a/easy-xapi-supertest/tsconfig.json b/types/easy-xapi-supertest/tsconfig.json similarity index 100% rename from easy-xapi-supertest/tsconfig.json rename to types/easy-xapi-supertest/tsconfig.json diff --git a/easy-xapi-utils/easy-xapi-utils-tests.ts b/types/easy-xapi-utils/easy-xapi-utils-tests.ts similarity index 100% rename from easy-xapi-utils/easy-xapi-utils-tests.ts rename to types/easy-xapi-utils/easy-xapi-utils-tests.ts diff --git a/easy-xapi-utils/index.d.ts b/types/easy-xapi-utils/index.d.ts similarity index 100% rename from easy-xapi-utils/index.d.ts rename to types/easy-xapi-utils/index.d.ts diff --git a/easy-xapi-utils/tsconfig.json b/types/easy-xapi-utils/tsconfig.json similarity index 100% rename from easy-xapi-utils/tsconfig.json rename to types/easy-xapi-utils/tsconfig.json diff --git a/easy-xapi/easy-xapi-tests.ts b/types/easy-xapi/easy-xapi-tests.ts similarity index 100% rename from easy-xapi/easy-xapi-tests.ts rename to types/easy-xapi/easy-xapi-tests.ts diff --git a/easy-xapi/index.d.ts b/types/easy-xapi/index.d.ts similarity index 100% rename from easy-xapi/index.d.ts rename to types/easy-xapi/index.d.ts diff --git a/easy-xapi/tsconfig.json b/types/easy-xapi/tsconfig.json similarity index 100% rename from easy-xapi/tsconfig.json rename to types/easy-xapi/tsconfig.json diff --git a/easystarjs/easystarjs-tests.ts b/types/easystarjs/easystarjs-tests.ts similarity index 100% rename from easystarjs/easystarjs-tests.ts rename to types/easystarjs/easystarjs-tests.ts diff --git a/easystarjs/index.d.ts b/types/easystarjs/index.d.ts similarity index 100% rename from easystarjs/index.d.ts rename to types/easystarjs/index.d.ts diff --git a/easystarjs/tsconfig.json b/types/easystarjs/tsconfig.json similarity index 100% rename from easystarjs/tsconfig.json rename to types/easystarjs/tsconfig.json diff --git a/echarts/index.d.ts b/types/echarts/index.d.ts similarity index 100% rename from echarts/index.d.ts rename to types/echarts/index.d.ts diff --git a/echarts/tsconfig.json b/types/echarts/tsconfig.json similarity index 100% rename from echarts/tsconfig.json rename to types/echarts/tsconfig.json diff --git a/ecurve/ecurve-tests.ts b/types/ecurve/ecurve-tests.ts similarity index 100% rename from ecurve/ecurve-tests.ts rename to types/ecurve/ecurve-tests.ts diff --git a/ecurve/index.d.ts b/types/ecurve/index.d.ts similarity index 100% rename from ecurve/index.d.ts rename to types/ecurve/index.d.ts diff --git a/ecurve/tsconfig.json b/types/ecurve/tsconfig.json similarity index 100% rename from ecurve/tsconfig.json rename to types/ecurve/tsconfig.json diff --git a/ecurve/tslint.json b/types/ecurve/tslint.json similarity index 100% rename from ecurve/tslint.json rename to types/ecurve/tslint.json diff --git a/egg.js/egg.js-tests.ts b/types/egg.js/egg.js-tests.ts similarity index 100% rename from egg.js/egg.js-tests.ts rename to types/egg.js/egg.js-tests.ts diff --git a/egg.js/index.d.ts b/types/egg.js/index.d.ts similarity index 100% rename from egg.js/index.d.ts rename to types/egg.js/index.d.ts diff --git a/egg.js/tsconfig.json b/types/egg.js/tsconfig.json similarity index 100% rename from egg.js/tsconfig.json rename to types/egg.js/tsconfig.json diff --git a/ej.web.all/ej.web.all-tests.ts b/types/ej.web.all/ej.web.all-tests.ts similarity index 100% rename from ej.web.all/ej.web.all-tests.ts rename to types/ej.web.all/ej.web.all-tests.ts diff --git a/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts similarity index 99% rename from ej.web.all/index.d.ts rename to types/ej.web.all/index.d.ts index b1c4261705..ca17c06c5a 100644 --- a/ej.web.all/index.d.ts +++ b/types/ej.web.all/index.d.ts @@ -65198,4 +65198,4 @@ data(key: "ejTreeMap"): ej.datavisualization.TreeMap; data(key: "ejTreeView"): ej.TreeView; data(key: "ejUploadbox"): ej.Uploadbox; data(key: "ejWaitingPopup"): ej.WaitingPopup; -} \ No newline at end of file +} diff --git a/ej.web.all/tsconfig.json b/types/ej.web.all/tsconfig.json similarity index 100% rename from ej.web.all/tsconfig.json rename to types/ej.web.all/tsconfig.json diff --git a/types/ej.web.all/tslint.json b/types/ej.web.all/tslint.json new file mode 100644 index 0000000000..845d9d8168 --- /dev/null +++ b/types/ej.web.all/tslint.json @@ -0,0 +1,9 @@ +{ + "extends": "../tslint.json", + "rules": { + "comment-format": false, + "no-consecutive-blank-lines": false, + "no-padding": false, + "no-redundant-modifiers": false + } +} diff --git a/ejs-locals/ejs-locals-tests.ts b/types/ejs-locals/ejs-locals-tests.ts similarity index 100% rename from ejs-locals/ejs-locals-tests.ts rename to types/ejs-locals/ejs-locals-tests.ts diff --git a/ejs-locals/index.d.ts b/types/ejs-locals/index.d.ts similarity index 100% rename from ejs-locals/index.d.ts rename to types/ejs-locals/index.d.ts diff --git a/ejs-locals/tsconfig.json b/types/ejs-locals/tsconfig.json similarity index 100% rename from ejs-locals/tsconfig.json rename to types/ejs-locals/tsconfig.json diff --git a/ejs/ejs-tests.ts b/types/ejs/ejs-tests.ts similarity index 100% rename from ejs/ejs-tests.ts rename to types/ejs/ejs-tests.ts diff --git a/ejs/index.d.ts b/types/ejs/index.d.ts similarity index 100% rename from ejs/index.d.ts rename to types/ejs/index.d.ts diff --git a/ejs/tsconfig.json b/types/ejs/tsconfig.json similarity index 100% rename from ejs/tsconfig.json rename to types/ejs/tsconfig.json diff --git a/ejson/ejson-tests.ts b/types/ejson/ejson-tests.ts similarity index 100% rename from ejson/ejson-tests.ts rename to types/ejson/ejson-tests.ts diff --git a/ejson/index.d.ts b/types/ejson/index.d.ts similarity index 100% rename from ejson/index.d.ts rename to types/ejson/index.d.ts diff --git a/ejson/tsconfig.json b/types/ejson/tsconfig.json similarity index 100% rename from ejson/tsconfig.json rename to types/ejson/tsconfig.json diff --git a/elastic.js/elastic.js-tests.ts b/types/elastic.js/elastic.js-tests.ts similarity index 100% rename from elastic.js/elastic.js-tests.ts rename to types/elastic.js/elastic.js-tests.ts diff --git a/elastic.js/index.d.ts b/types/elastic.js/index.d.ts similarity index 100% rename from elastic.js/index.d.ts rename to types/elastic.js/index.d.ts diff --git a/elastic.js/tsconfig.json b/types/elastic.js/tsconfig.json similarity index 100% rename from elastic.js/tsconfig.json rename to types/elastic.js/tsconfig.json diff --git a/elasticsearch/elasticsearch-tests.ts b/types/elasticsearch/elasticsearch-tests.ts similarity index 100% rename from elasticsearch/elasticsearch-tests.ts rename to types/elasticsearch/elasticsearch-tests.ts diff --git a/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts similarity index 100% rename from elasticsearch/index.d.ts rename to types/elasticsearch/index.d.ts diff --git a/elasticsearch/tsconfig.json b/types/elasticsearch/tsconfig.json similarity index 100% rename from elasticsearch/tsconfig.json rename to types/elasticsearch/tsconfig.json diff --git a/electron-builder/electron-builder-tests.ts b/types/electron-builder/electron-builder-tests.ts similarity index 100% rename from electron-builder/electron-builder-tests.ts rename to types/electron-builder/electron-builder-tests.ts diff --git a/electron-builder/index.d.ts b/types/electron-builder/index.d.ts similarity index 100% rename from electron-builder/index.d.ts rename to types/electron-builder/index.d.ts diff --git a/electron-builder/tsconfig.json b/types/electron-builder/tsconfig.json similarity index 100% rename from electron-builder/tsconfig.json rename to types/electron-builder/tsconfig.json diff --git a/electron-debug/electron-debug-tests.ts b/types/electron-debug/electron-debug-tests.ts similarity index 100% rename from electron-debug/electron-debug-tests.ts rename to types/electron-debug/electron-debug-tests.ts diff --git a/electron-debug/index.d.ts b/types/electron-debug/index.d.ts similarity index 100% rename from electron-debug/index.d.ts rename to types/electron-debug/index.d.ts diff --git a/electron-debug/tsconfig.json b/types/electron-debug/tsconfig.json similarity index 100% rename from electron-debug/tsconfig.json rename to types/electron-debug/tsconfig.json diff --git a/electron-devtools-installer/electron-devtools-installer-tests.ts b/types/electron-devtools-installer/electron-devtools-installer-tests.ts similarity index 100% rename from electron-devtools-installer/electron-devtools-installer-tests.ts rename to types/electron-devtools-installer/electron-devtools-installer-tests.ts diff --git a/electron-devtools-installer/index.d.ts b/types/electron-devtools-installer/index.d.ts similarity index 100% rename from electron-devtools-installer/index.d.ts rename to types/electron-devtools-installer/index.d.ts diff --git a/electron-devtools-installer/tsconfig.json b/types/electron-devtools-installer/tsconfig.json similarity index 100% rename from electron-devtools-installer/tsconfig.json rename to types/electron-devtools-installer/tsconfig.json diff --git a/electron-json-storage/electron-json-storage-tests.ts b/types/electron-json-storage/electron-json-storage-tests.ts similarity index 100% rename from electron-json-storage/electron-json-storage-tests.ts rename to types/electron-json-storage/electron-json-storage-tests.ts diff --git a/electron-json-storage/index.d.ts b/types/electron-json-storage/index.d.ts similarity index 100% rename from electron-json-storage/index.d.ts rename to types/electron-json-storage/index.d.ts diff --git a/electron-json-storage/tsconfig.json b/types/electron-json-storage/tsconfig.json similarity index 100% rename from electron-json-storage/tsconfig.json rename to types/electron-json-storage/tsconfig.json diff --git a/electron-notifications/electron-notifications-tests.ts b/types/electron-notifications/electron-notifications-tests.ts similarity index 100% rename from electron-notifications/electron-notifications-tests.ts rename to types/electron-notifications/electron-notifications-tests.ts diff --git a/electron-notifications/index.d.ts b/types/electron-notifications/index.d.ts similarity index 100% rename from electron-notifications/index.d.ts rename to types/electron-notifications/index.d.ts diff --git a/electron-notifications/tsconfig.json b/types/electron-notifications/tsconfig.json similarity index 100% rename from electron-notifications/tsconfig.json rename to types/electron-notifications/tsconfig.json diff --git a/electron-notify/electron-notify-tests.ts b/types/electron-notify/electron-notify-tests.ts similarity index 100% rename from electron-notify/electron-notify-tests.ts rename to types/electron-notify/electron-notify-tests.ts diff --git a/electron-notify/index.d.ts b/types/electron-notify/index.d.ts similarity index 100% rename from electron-notify/index.d.ts rename to types/electron-notify/index.d.ts diff --git a/electron-notify/tsconfig.json b/types/electron-notify/tsconfig.json similarity index 100% rename from electron-notify/tsconfig.json rename to types/electron-notify/tsconfig.json diff --git a/electron-packager/electron-packager-tests.ts b/types/electron-packager/electron-packager-tests.ts similarity index 100% rename from electron-packager/electron-packager-tests.ts rename to types/electron-packager/electron-packager-tests.ts diff --git a/electron-packager/index.d.ts b/types/electron-packager/index.d.ts similarity index 100% rename from electron-packager/index.d.ts rename to types/electron-packager/index.d.ts diff --git a/electron-packager/tsconfig.json b/types/electron-packager/tsconfig.json similarity index 100% rename from electron-packager/tsconfig.json rename to types/electron-packager/tsconfig.json diff --git a/electron-window-state/electron-window-state-tests.ts b/types/electron-window-state/electron-window-state-tests.ts similarity index 100% rename from electron-window-state/electron-window-state-tests.ts rename to types/electron-window-state/electron-window-state-tests.ts diff --git a/electron-window-state/index.d.ts b/types/electron-window-state/index.d.ts similarity index 100% rename from electron-window-state/index.d.ts rename to types/electron-window-state/index.d.ts diff --git a/electron-window-state/tsconfig.json b/types/electron-window-state/tsconfig.json similarity index 100% rename from electron-window-state/tsconfig.json rename to types/electron-window-state/tsconfig.json diff --git a/electron/.editorconfig b/types/electron/.editorconfig similarity index 100% rename from electron/.editorconfig rename to types/electron/.editorconfig diff --git a/electron/index.d.ts b/types/electron/index.d.ts similarity index 100% rename from electron/index.d.ts rename to types/electron/index.d.ts diff --git a/electron/test/index.ts b/types/electron/test/index.ts similarity index 100% rename from electron/test/index.ts rename to types/electron/test/index.ts diff --git a/electron/test/main.ts b/types/electron/test/main.ts similarity index 100% rename from electron/test/main.ts rename to types/electron/test/main.ts diff --git a/electron/test/renderer.ts b/types/electron/test/renderer.ts similarity index 100% rename from electron/test/renderer.ts rename to types/electron/test/renderer.ts diff --git a/electron/tsconfig.json b/types/electron/tsconfig.json similarity index 100% rename from electron/tsconfig.json rename to types/electron/tsconfig.json diff --git a/element-resize-event/element-resize-event-tests.ts b/types/element-resize-event/element-resize-event-tests.ts similarity index 100% rename from element-resize-event/element-resize-event-tests.ts rename to types/element-resize-event/element-resize-event-tests.ts diff --git a/element-resize-event/index.d.ts b/types/element-resize-event/index.d.ts similarity index 100% rename from element-resize-event/index.d.ts rename to types/element-resize-event/index.d.ts diff --git a/element-resize-event/tsconfig.json b/types/element-resize-event/tsconfig.json similarity index 100% rename from element-resize-event/tsconfig.json rename to types/element-resize-event/tsconfig.json diff --git a/elm/elm-tests.ts b/types/elm/elm-tests.ts similarity index 100% rename from elm/elm-tests.ts rename to types/elm/elm-tests.ts diff --git a/elm/index.d.ts b/types/elm/index.d.ts similarity index 100% rename from elm/index.d.ts rename to types/elm/index.d.ts diff --git a/elm/tsconfig.json b/types/elm/tsconfig.json similarity index 100% rename from elm/tsconfig.json rename to types/elm/tsconfig.json diff --git a/email-addresses/email-addresses-tests.ts b/types/email-addresses/email-addresses-tests.ts similarity index 100% rename from email-addresses/email-addresses-tests.ts rename to types/email-addresses/email-addresses-tests.ts diff --git a/email-addresses/index.d.ts b/types/email-addresses/index.d.ts similarity index 100% rename from email-addresses/index.d.ts rename to types/email-addresses/index.d.ts diff --git a/email-addresses/tsconfig.json b/types/email-addresses/tsconfig.json similarity index 100% rename from email-addresses/tsconfig.json rename to types/email-addresses/tsconfig.json diff --git a/email-templates/email-templates-tests.ts b/types/email-templates/email-templates-tests.ts similarity index 100% rename from email-templates/email-templates-tests.ts rename to types/email-templates/email-templates-tests.ts diff --git a/email-templates/index.d.ts b/types/email-templates/index.d.ts similarity index 100% rename from email-templates/index.d.ts rename to types/email-templates/index.d.ts diff --git a/email-templates/tsconfig.json b/types/email-templates/tsconfig.json similarity index 100% rename from email-templates/tsconfig.json rename to types/email-templates/tsconfig.json diff --git a/email-validator/email-validator-tests.ts b/types/email-validator/email-validator-tests.ts similarity index 100% rename from email-validator/email-validator-tests.ts rename to types/email-validator/email-validator-tests.ts diff --git a/email-validator/index.d.ts b/types/email-validator/index.d.ts similarity index 100% rename from email-validator/index.d.ts rename to types/email-validator/index.d.ts diff --git a/email-validator/tsconfig.json b/types/email-validator/tsconfig.json similarity index 100% rename from email-validator/tsconfig.json rename to types/email-validator/tsconfig.json diff --git a/ember/ember-tests.ts b/types/ember/ember-tests.ts similarity index 82% rename from ember/ember-tests.ts rename to types/ember/ember-tests.ts index 91e1f61f6f..99f00aae6f 100644 --- a/ember/ember-tests.ts +++ b/types/ember/ember-tests.ts @@ -1,4 +1,4 @@ -var App: any; +let App: any; App = Em.Application.create(); @@ -22,7 +22,7 @@ declare class MyPerson extends Em.Object { static createMan(): MyPerson; } -var Person1 = Em.Object.extend({ +const Person1 = Em.Object.extend({ say: (thing: string) => { alert(thing); } @@ -31,7 +31,7 @@ var Person1 = Em.Object.extend({ declare class MyPerson2 extends Em.Object { helloWorld(): void; } -var tom = Person1.create({ +const tom = Person1.create({ name: 'Tom Dale', helloWorld() { this.say('Hi my name is ' + this.get('name')); @@ -48,10 +48,9 @@ Person1.reopenClass({ } }); // ReSharper disable once DuplicatingLocalDeclaration -declare var Person1: typeof MyPerson; Person1.createMan().get('isMan'); -var person = Person1.create({ +const person = Person1.create({ firstName: 'Yehuda', lastName: 'Katz' }); @@ -63,13 +62,13 @@ App.todosController = Em.Object.create({ Em.Object.create({ isDone: false }) ], remaining: (function() { - var todos = this.get('todos'); + const todos = this.get('todos'); return todos.filterProperty('isDone', false).get('length'); }).property('todos.@each.isDone') }); -var todos = App.todosController.get('todos'); -var todo = todos.objectAt(0); +const todos = App.todosController.get('todos'); +let todo = todos.objectAt(0); todo.set('isDone', true); App.todosController.get('remaining'); todo = Em.Object.create({ isDone: false }); @@ -109,29 +108,29 @@ App.userController = Em.Object.create({ Handlebars.registerHelper('highlight', (property: string, options: any) => new Handlebars.SafeString('' + "some value" + '')); -var coolView = App.CoolView.create(); +const coolView = App.CoolView.create(); -var Person2 = Em.Object.extend({ +const Person2 = Em.Object.extend({ sayHello() { console.log('Hello from ' + this.get('name')); } }); -var people = [ +const people = [ Person2.create({ name: 'Juan' }), Person2.create({ name: 'Charles' }), Person2.create({ name: 'Majd' }) ]; people.invoke('sayHello'); -var arr = [Em.Object.create(), Em.Object.create()]; +const arr = [Em.Object.create(), Em.Object.create()]; arr.setEach('name', 'unknown'); arr.getEach('name'); -var Person3 = Em.Object.extend({ +const Person3 = Em.Object.extend({ name: null, isHappy: false }); -var people2 = [ +const people2 = [ Person3.create({ name: 'Yehuda', isHappy: true }), Person3.create({ name: 'Majd', isHappy: false }) ]; @@ -145,7 +144,7 @@ people2.everyProperty('isHappy', true); people2.someProperty('isHappy', true); // Examples taken from http://emberjs.com/api/classes/Em.RSVP.Promise.html -var promise = new Em.RSVP.Promise((resolve: Function, reject: Function) => { +const promise = new Em.RSVP.Promise((resolve: Function, reject: Function) => { // on success resolve('ok!'); @@ -159,15 +158,15 @@ promise.then((value: any) => { // on rejection }); -var mix1 = Ember.Mixin.create({ +const mix1 = Ember.Mixin.create({ foo: 1 }); -var mix2 = Ember.Mixin.create({ +const mix2 = Ember.Mixin.create({ bar: 2 }); -var component1 = Ember.Component.extend( mix1, mix2, { +const component1 = Ember.Component.extend( mix1, mix2, { lyft: Ember.inject.service(), cars: Ember.computed.readOnly('lyft.cars') }); diff --git a/ember/index.d.ts b/types/ember/index.d.ts similarity index 98% rename from ember/index.d.ts rename to types/ember/index.d.ts index dca7004163..1e014759cc 100644 --- a/ember/index.d.ts +++ b/types/ember/index.d.ts @@ -7,7 +7,6 @@ /// declare namespace EmberStates { - interface Transition { targetName: string; urlMethod: string; @@ -151,16 +150,13 @@ declare namespace EmberStates { */ followRedirects(): Ember.RSVP.Promise; } - } // Get an alias to the global Array type to use in inner scope below. type GlobalArray = T[]; declare namespace EmberTesting { - namespace Test { - class Adapter { asyncEnd(): void; asyncStart(): void; @@ -168,9 +164,7 @@ declare namespace EmberTesting { } class QUnitAdapter extends Adapter { } - } - } interface Function { @@ -349,13 +343,10 @@ interface EnumerableConfigurationOptions { type ItemIndexEnumerableCallbackTarget = (callback: ItemIndexEnumerableCallback, target?: any) => any[]; - type ItemIndexEnumerableCallback = (item: any, index: number, enumerable: Ember.Enumerable) => void; - type ReduceCallback = (previousValue: any, item: any, index: number, enumerable: Ember.Enumerable) => void; - interface TransitionsHash { contexts: any[]; exitStates: Ember.State[]; @@ -388,7 +379,7 @@ declare namespace Ember { Alias for jQuery. **/ // ReSharper disable once DuplicatingLocalDeclaration - var $: JQueryStatic; + const $: JQueryStatic; /** Creates an Ember.NativeArray from an Array like object. Does not modify the original object. Ember.A is not needed if Ember.EXTEND_PROTOTYPES is true (the default value). However, it is @@ -651,7 +642,7 @@ declare namespace Ember { removeObject(object: any): any; removeObjects(objects: Enumerable): MutableEnumberable; } - var BOOTED: boolean; + const BOOTED: boolean; /** Connects the properties of two objects so that whenever the value of one property changes, the other property will be changed also. @@ -967,17 +958,17 @@ declare namespace Ember { **/ class Descriptor { } namespace ENV { - export var EXTEND_PROTOTYPES: typeof Ember.EXTEND_PROTOTYPES; - export var LOG_BINDINGS: boolean; - export var LOG_STACKTRACE_ON_DEPRECATION: boolean; - export var LOG_VERSION: boolean; - export var MODEL_FACTORY_INJECTIONS: boolean; - export var RAISE_ON_DEPRECATION: boolean; + const EXTEND_PROTOTYPES: typeof Ember.EXTEND_PROTOTYPES; + const LOG_BINDINGS: boolean; + const LOG_STACKTRACE_ON_DEPRECATION: boolean; + const LOG_VERSION: boolean; + const MODEL_FACTORY_INJECTIONS: boolean; + const RAISE_ON_DEPRECATION: boolean; } namespace EXTEND_PROTOTYPES { - export var Array: boolean; - export var Function: boolean; - export var String: boolean; + const Array: boolean; + const Function: boolean; + const String: boolean; } /** This is the object instance returned when you get the @each property on an array. It uses @@ -1049,7 +1040,7 @@ declare namespace Ember { **/ // Restore this to 'typeof Error' when https://github.com/Microsoft/TypeScript/issues/983 is resolved // ReSharper disable once DuplicatingLocalDeclaration - var Error: any; // typeof Error; + const Error: any; // typeof Error; /** Handles delegating browser events to their corresponding Ember.Views. For example, when you click on a view, Ember.EventDispatcher ensures that that view's mouseDown method gets called. @@ -1082,12 +1073,12 @@ declare namespace Ember { one(name: string, target: any, method: Function): Evented; trigger(name: string, ...args: string[]): void; } - var FROZEN_ERROR: string; + const FROZEN_ERROR: string; class Freezable { freeze(): Freezable; isFrozen: boolean; } - var GUID_KEY: string; + const GUID_KEY: string; namespace Handlebars { function compile(string: string): Function; function compile(environment: any, options?: any, context?: any, asObject?: any): any; @@ -1104,7 +1095,7 @@ declare namespace Ember { } function parse(string: string): any; function print(ast: any): void; - var logger: typeof Ember.Logger; + const logger: typeof Ember.Logger; function log(level: string, str: string): void; } class HashLocation extends Object { @@ -1140,8 +1131,8 @@ declare namespace Ember { static isMethod: boolean; rootURL: string; } - var IS_BINDING: RegExp; - var inject: { + const IS_BINDING: RegExp; + const inject: { controller(name?: string): Controller; service(name?: string): Service; }; @@ -1158,15 +1149,15 @@ declare namespace Ember { subscribe(pattern: string, object: any): void; unsubscribe(subscriber: any): void; } - var K: Function; - var LOG_BINDINGS: boolean; - var LOG_STACKTRACE_ON_DEPRECATION: boolean; - var LOG_VERSION: boolean; + const K: Function; + const LOG_BINDINGS: boolean; + const LOG_STACKTRACE_ON_DEPRECATION: boolean; + const LOG_VERSION: boolean; class Location { create(options?: {}): any; registerImplementation(name: string, implementation: any): void; } - var Logger: { + const Logger: { assert(param: any): void; debug(...args: any[]): void; error(...args: any[]): void; @@ -1175,7 +1166,7 @@ declare namespace Ember { warn(...args: any[]): void; }; function MANDATORY_SETTER_FUNCTION(value: string): void; - var META_KEY: string; + const META_KEY: string; class Map { copy(): Map; static create(): Map; @@ -1305,7 +1296,7 @@ declare namespace Ember { hasEnumerableObservers: boolean; lastObject: any; } - var NAME_KEY: string; + const NAME_KEY: string; class Namespace extends Object { static detect(obj: any): boolean; static detectInstance(obj: any): boolean; @@ -1425,7 +1416,7 @@ declare namespace Ember { static isClass: boolean; static isMethod: boolean; } - var ORDER_DEFINITION: string[]; + const ORDER_DEFINITION: string[]; class Object extends CoreObject implements Observable { addObserver: ModifyObserver; beginPropertyChanges(): Observable; @@ -1530,7 +1521,6 @@ declare namespace Ember { } class Promise implements Thenable { - /** Promise objects represent the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its `then` method, which @@ -1591,7 +1581,6 @@ declare namespace Ember { the [routing guide](http://emberjs.com/guides/routing/) for documentation. */ class Route extends Object implements ActionHandlerMixin, Evented { - static isClass: boolean; static isMethod: boolean; @@ -1817,7 +1806,6 @@ declare namespace Ember { */ redirect(): EmberStates.Transition; - /** Refresh the model on this route and any child routes, firing the `beforeModel`, `model`, and `afterModel` hooks in a similar fashion @@ -2157,7 +2145,7 @@ declare namespace Ember { toggleProperty(keyName: string): boolean; /* /Observable */ } - var STRINGS: boolean; + const STRINGS: boolean; class State extends Object implements Evented { static detect(obj: any): boolean; static detectInstance(obj: any): boolean; @@ -2236,7 +2224,7 @@ declare namespace Ember { function underscore(str: string): string; function w(str: string): string[]; } - var TEMPLATES: {}; + const TEMPLATES: {}; class TargetActionSupport { triggerAction(opts: {}): boolean; } @@ -2253,8 +2241,8 @@ declare namespace Ember { function registerHelper(name: string, helperMethod: Function): void; function registerAsyncHelper(name: string, helperMethod: Function): void; - var adapter: Object; - var QUnitAdapter: Object; + const adapter: Object; + const QUnitAdapter: Object; function registerWaiter(callback: Function): void; function registerWaiter(context: any, callback: Function): void; @@ -2325,18 +2313,18 @@ declare namespace Ember { bubbles: boolean; onEvent: string; } - var VERSION: string; + const VERSION: string; class ViewTargetActionSupport extends Mixin { target: any; actionContext: any; } - var ViewUtils: {}; // TODO: define interface + const ViewUtils: {}; // TODO: define interface function addListener(obj: any, eventName: string, target: Function | any, method: Function | string, once?: boolean): void; - var addObserver: ModifyObserver; + const addObserver: ModifyObserver; /** Ember.alias is deprecated. Please use Ember.aliasMethod or Ember.computed.alias instead. **/ - var alias: typeof deprecateFunc; + const alias: typeof deprecateFunc; function aliasMethod(methodName: string): Descriptor; function assert(desc: string, test: boolean): void; function beginPropertyChanges(): void; @@ -2346,7 +2334,7 @@ declare namespace Ember { function changeProperties(callback: Function, binding?: any): void; function compare(v: any, w: any): number; // ReSharper disable once DuplicatingLocalDeclaration - var computed: { + const computed: { (...args: any[]): ComputedProperty; alias(dependentKey: string): ComputedProperty; and(...args: string[]): ComputedProperty; @@ -2385,7 +2373,7 @@ declare namespace Ember { Ember.empty is deprecated. Please use Ember.isEmpty instead. **/ // ReSharper disable once DuplicatingLocalDeclaration - var empty: typeof deprecateFunc; + const empty: typeof deprecateFunc; function endPropertyChanges(): void; function finishChains(obj: any): void; function generateController(container: Container, controllerName: string, context: any): Controller; @@ -2394,7 +2382,7 @@ declare namespace Ember { /** getPath is deprecated since get now supports paths. **/ - var getPath: typeof deprecateFunc; + const getPath: typeof deprecateFunc; function getWithDefault(root: string, key: string, defaultValue: any): any; function guidFor(obj: any): string; function handleErrors(func: Function, context: any): any; @@ -2407,7 +2395,7 @@ declare namespace Ember { function isEmpty(obj: any): boolean; function isEqual(a: any, b: any): boolean; function isGlobalPath(path: string): boolean; - var isNamespace: boolean; + const isNamespace: boolean; function isNone(obj: any): boolean; function isPrototypeOf(obj: {}): boolean; function isWatching(obj: any, key: string): boolean; @@ -2416,7 +2404,7 @@ declare namespace Ember { function listenersFor(obj: any, eventName: string): any[]; function listenersUnion(obj: any, eventName: string, otherActions: any[]): void; // ReSharper disable once DuplicatingLocalDeclaration - var lookup: {}; // TODO: define interface + const lookup: {}; // TODO: define interface function makeArray(obj: any): any[]; function merge(original: any, updates: any): any; function meta(obj: any): {}; @@ -2424,14 +2412,14 @@ declare namespace Ember { /** Ember.none is deprecated. Please use Ember.isNone instead. **/ - var none: typeof deprecateFunc; + const none: typeof deprecateFunc; function observer(...args: any[]): Function; function observersFor(obj: any, path: string): any[]; function onLoad(name: string, callback: Function): void; - var onError: Error; + const onError: Error; function overrideChains(obj: any, keyName: string, m: any): boolean; // ReSharper disable once DuplicatingLocalDeclaration - var platform: { + const platform: { defineProperty: boolean; hasPropertyAccessors: boolean; }; @@ -2443,7 +2431,7 @@ declare namespace Ember { function removeObserver(obj: any, path: string, target: any, method: Function): any; function required(): Descriptor; function rewatch(obj: any): void; - var run: { + const run: { (method: Function): void; (target: any, method: Function): void; begin(): void; @@ -2466,7 +2454,7 @@ declare namespace Ember { /** setPath is deprecated since set now supports paths. **/ - var setPath: typeof deprecateFunc; + const setPath: typeof deprecateFunc; function setProperties(self: any, hash: {}): any; function subscribe(pattern: string, object: any): void; function toLocaleString(): string; @@ -2477,13 +2465,13 @@ declare namespace Ember { /** trySetPath has been renamed to trySet. **/ - var trySetPath: typeof deprecateFunc; + const trySetPath: typeof deprecateFunc; function typeOf(item: any): string; function unwatch(obj: any, keyPath: string): void; function unwatchKey(obj: any, keyName: string): void; function unwatchPath(obj: any, keyPath: string): void; // ReSharper disable once DuplicatingLocalDeclaration - var uuid: number; + const uuid: number; function valueOf(): {}; function warn(message: string, test?: boolean): void; function watch(obj: any, keyPath: string): void; @@ -2491,18 +2479,17 @@ declare namespace Ember { function watchPath(obj: any, keyPath: string): void; function watchedEvents(obj: {}): any[]; function wrap(func: Function, superFunc: Function): Function; - var _ContainerProxyMixin: Mixin; - var _RegistryProxyMixin: Mixin; + const _ContainerProxyMixin: Mixin; + const _RegistryProxyMixin: Mixin; function getOwner(object: any): any; function setOwner(object: any, owner: any): void; - var testing: boolean; - var MODEL_FACTORY_INJECTIONS: boolean; + const testing: boolean; + const MODEL_FACTORY_INJECTIONS: boolean; function assign(original: any, ...sources: any[]): any; } import Em = Ember; - /** * External ambient module - to allow "import Ember from 'ember';" to work correctly */ diff --git a/ember/tsconfig.json b/types/ember/tsconfig.json similarity index 100% rename from ember/tsconfig.json rename to types/ember/tsconfig.json diff --git a/ember/tslint.json b/types/ember/tslint.json similarity index 100% rename from ember/tslint.json rename to types/ember/tslint.json diff --git a/ember/v1/ember-tests.ts b/types/ember/v1/ember-tests.ts similarity index 100% rename from ember/v1/ember-tests.ts rename to types/ember/v1/ember-tests.ts diff --git a/ember/v1/index.d.ts b/types/ember/v1/index.d.ts similarity index 100% rename from ember/v1/index.d.ts rename to types/ember/v1/index.d.ts diff --git a/ember/v1/tsconfig.json b/types/ember/v1/tsconfig.json similarity index 100% rename from ember/v1/tsconfig.json rename to types/ember/v1/tsconfig.json diff --git a/emissary/emissary-tests.ts b/types/emissary/emissary-tests.ts similarity index 100% rename from emissary/emissary-tests.ts rename to types/emissary/emissary-tests.ts diff --git a/emissary/index.d.ts b/types/emissary/index.d.ts similarity index 100% rename from emissary/index.d.ts rename to types/emissary/index.d.ts diff --git a/emissary/tsconfig.json b/types/emissary/tsconfig.json similarity index 100% rename from emissary/tsconfig.json rename to types/emissary/tsconfig.json diff --git a/emojione/emojione-tests.ts b/types/emojione/emojione-tests.ts similarity index 100% rename from emojione/emojione-tests.ts rename to types/emojione/emojione-tests.ts diff --git a/emojione/index.d.ts b/types/emojione/index.d.ts similarity index 100% rename from emojione/index.d.ts rename to types/emojione/index.d.ts diff --git a/emojione/tsconfig.json b/types/emojione/tsconfig.json similarity index 100% rename from emojione/tsconfig.json rename to types/emojione/tsconfig.json diff --git a/emojione/tslint.json b/types/emojione/tslint.json similarity index 100% rename from emojione/tslint.json rename to types/emojione/tslint.json diff --git a/empower/empower-tests.ts b/types/empower/empower-tests.ts similarity index 100% rename from empower/empower-tests.ts rename to types/empower/empower-tests.ts diff --git a/empower/index.d.ts b/types/empower/index.d.ts similarity index 100% rename from empower/index.d.ts rename to types/empower/index.d.ts diff --git a/empower/tsconfig.json b/types/empower/tsconfig.json similarity index 100% rename from empower/tsconfig.json rename to types/empower/tsconfig.json diff --git a/emscripten/emscripten-tests.ts b/types/emscripten/emscripten-tests.ts similarity index 100% rename from emscripten/emscripten-tests.ts rename to types/emscripten/emscripten-tests.ts diff --git a/emscripten/index.d.ts b/types/emscripten/index.d.ts similarity index 100% rename from emscripten/index.d.ts rename to types/emscripten/index.d.ts diff --git a/emscripten/tsconfig.json b/types/emscripten/tsconfig.json similarity index 100% rename from emscripten/tsconfig.json rename to types/emscripten/tsconfig.json diff --git a/encoding-japanese/encoding-japanese-tests.ts b/types/encoding-japanese/encoding-japanese-tests.ts similarity index 100% rename from encoding-japanese/encoding-japanese-tests.ts rename to types/encoding-japanese/encoding-japanese-tests.ts diff --git a/encoding-japanese/index.d.ts b/types/encoding-japanese/index.d.ts similarity index 100% rename from encoding-japanese/index.d.ts rename to types/encoding-japanese/index.d.ts diff --git a/encoding-japanese/tsconfig.json b/types/encoding-japanese/tsconfig.json similarity index 100% rename from encoding-japanese/tsconfig.json rename to types/encoding-japanese/tsconfig.json diff --git a/enhanced-resolve/index.d.ts b/types/enhanced-resolve/index.d.ts similarity index 100% rename from enhanced-resolve/index.d.ts rename to types/enhanced-resolve/index.d.ts diff --git a/enhanced-resolve/lib/AliasFieldPlugin.d.ts b/types/enhanced-resolve/lib/AliasFieldPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/AliasFieldPlugin.d.ts rename to types/enhanced-resolve/lib/AliasFieldPlugin.d.ts diff --git a/enhanced-resolve/lib/AliasPlugin.d.ts b/types/enhanced-resolve/lib/AliasPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/AliasPlugin.d.ts rename to types/enhanced-resolve/lib/AliasPlugin.d.ts diff --git a/enhanced-resolve/lib/AppendPlugin.d.ts b/types/enhanced-resolve/lib/AppendPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/AppendPlugin.d.ts rename to types/enhanced-resolve/lib/AppendPlugin.d.ts diff --git a/enhanced-resolve/lib/CloneBasenamePlugin.d.ts b/types/enhanced-resolve/lib/CloneBasenamePlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/CloneBasenamePlugin.d.ts rename to types/enhanced-resolve/lib/CloneBasenamePlugin.d.ts diff --git a/enhanced-resolve/lib/ConcordExtensionsPlugin.d.ts b/types/enhanced-resolve/lib/ConcordExtensionsPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ConcordExtensionsPlugin.d.ts rename to types/enhanced-resolve/lib/ConcordExtensionsPlugin.d.ts diff --git a/enhanced-resolve/lib/ConcordMainPlugin.d.ts b/types/enhanced-resolve/lib/ConcordMainPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ConcordMainPlugin.d.ts rename to types/enhanced-resolve/lib/ConcordMainPlugin.d.ts diff --git a/enhanced-resolve/lib/ConcordModulesPlugin.d.ts b/types/enhanced-resolve/lib/ConcordModulesPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ConcordModulesPlugin.d.ts rename to types/enhanced-resolve/lib/ConcordModulesPlugin.d.ts diff --git a/enhanced-resolve/lib/DescriptionFilePlugin.d.ts b/types/enhanced-resolve/lib/DescriptionFilePlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/DescriptionFilePlugin.d.ts rename to types/enhanced-resolve/lib/DescriptionFilePlugin.d.ts diff --git a/enhanced-resolve/lib/DescriptionFileUtils.d.ts b/types/enhanced-resolve/lib/DescriptionFileUtils.d.ts similarity index 100% rename from enhanced-resolve/lib/DescriptionFileUtils.d.ts rename to types/enhanced-resolve/lib/DescriptionFileUtils.d.ts diff --git a/enhanced-resolve/lib/DirectoryExistsPlugin.d.ts b/types/enhanced-resolve/lib/DirectoryExistsPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/DirectoryExistsPlugin.d.ts rename to types/enhanced-resolve/lib/DirectoryExistsPlugin.d.ts diff --git a/enhanced-resolve/lib/FileExistsPlugin.d.ts b/types/enhanced-resolve/lib/FileExistsPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/FileExistsPlugin.d.ts rename to types/enhanced-resolve/lib/FileExistsPlugin.d.ts diff --git a/enhanced-resolve/lib/FileKindPlugin.d.ts b/types/enhanced-resolve/lib/FileKindPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/FileKindPlugin.d.ts rename to types/enhanced-resolve/lib/FileKindPlugin.d.ts diff --git a/enhanced-resolve/lib/JoinRequestPlugin.d.ts b/types/enhanced-resolve/lib/JoinRequestPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/JoinRequestPlugin.d.ts rename to types/enhanced-resolve/lib/JoinRequestPlugin.d.ts diff --git a/enhanced-resolve/lib/LogInfoPlugin.d.ts b/types/enhanced-resolve/lib/LogInfoPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/LogInfoPlugin.d.ts rename to types/enhanced-resolve/lib/LogInfoPlugin.d.ts diff --git a/enhanced-resolve/lib/MainFieldPlugin.d.ts b/types/enhanced-resolve/lib/MainFieldPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/MainFieldPlugin.d.ts rename to types/enhanced-resolve/lib/MainFieldPlugin.d.ts diff --git a/enhanced-resolve/lib/ModuleAppendPlugin.d.ts b/types/enhanced-resolve/lib/ModuleAppendPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ModuleAppendPlugin.d.ts rename to types/enhanced-resolve/lib/ModuleAppendPlugin.d.ts diff --git a/enhanced-resolve/lib/ModuleKindPlugin.d.ts b/types/enhanced-resolve/lib/ModuleKindPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ModuleKindPlugin.d.ts rename to types/enhanced-resolve/lib/ModuleKindPlugin.d.ts diff --git a/enhanced-resolve/lib/ModulesInHierachicDirectoriesPlugin.d.ts b/types/enhanced-resolve/lib/ModulesInHierachicDirectoriesPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ModulesInHierachicDirectoriesPlugin.d.ts rename to types/enhanced-resolve/lib/ModulesInHierachicDirectoriesPlugin.d.ts diff --git a/enhanced-resolve/lib/ModulesInRootPlugin.d.ts b/types/enhanced-resolve/lib/ModulesInRootPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ModulesInRootPlugin.d.ts rename to types/enhanced-resolve/lib/ModulesInRootPlugin.d.ts diff --git a/enhanced-resolve/lib/NextPlugin.d.ts b/types/enhanced-resolve/lib/NextPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/NextPlugin.d.ts rename to types/enhanced-resolve/lib/NextPlugin.d.ts diff --git a/enhanced-resolve/lib/ParsePlugin.d.ts b/types/enhanced-resolve/lib/ParsePlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ParsePlugin.d.ts rename to types/enhanced-resolve/lib/ParsePlugin.d.ts diff --git a/enhanced-resolve/lib/Resolver.d.ts b/types/enhanced-resolve/lib/Resolver.d.ts similarity index 100% rename from enhanced-resolve/lib/Resolver.d.ts rename to types/enhanced-resolve/lib/Resolver.d.ts diff --git a/enhanced-resolve/lib/ResultPlugin.d.ts b/types/enhanced-resolve/lib/ResultPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/ResultPlugin.d.ts rename to types/enhanced-resolve/lib/ResultPlugin.d.ts diff --git a/enhanced-resolve/lib/Storage.d.ts b/types/enhanced-resolve/lib/Storage.d.ts similarity index 100% rename from enhanced-resolve/lib/Storage.d.ts rename to types/enhanced-resolve/lib/Storage.d.ts diff --git a/enhanced-resolve/lib/SymlinkPlugin.d.ts b/types/enhanced-resolve/lib/SymlinkPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/SymlinkPlugin.d.ts rename to types/enhanced-resolve/lib/SymlinkPlugin.d.ts diff --git a/enhanced-resolve/lib/SyncAsyncFileSystemDecorator.d.ts b/types/enhanced-resolve/lib/SyncAsyncFileSystemDecorator.d.ts similarity index 100% rename from enhanced-resolve/lib/SyncAsyncFileSystemDecorator.d.ts rename to types/enhanced-resolve/lib/SyncAsyncFileSystemDecorator.d.ts diff --git a/enhanced-resolve/lib/TryNextPlugin.d.ts b/types/enhanced-resolve/lib/TryNextPlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/TryNextPlugin.d.ts rename to types/enhanced-resolve/lib/TryNextPlugin.d.ts diff --git a/enhanced-resolve/lib/UnsafeCachePlugin.d.ts b/types/enhanced-resolve/lib/UnsafeCachePlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/UnsafeCachePlugin.d.ts rename to types/enhanced-resolve/lib/UnsafeCachePlugin.d.ts diff --git a/enhanced-resolve/lib/UseFilePlugin.d.ts b/types/enhanced-resolve/lib/UseFilePlugin.d.ts similarity index 100% rename from enhanced-resolve/lib/UseFilePlugin.d.ts rename to types/enhanced-resolve/lib/UseFilePlugin.d.ts diff --git a/enhanced-resolve/lib/common-types.d.ts b/types/enhanced-resolve/lib/common-types.d.ts similarity index 100% rename from enhanced-resolve/lib/common-types.d.ts rename to types/enhanced-resolve/lib/common-types.d.ts diff --git a/enhanced-resolve/lib/concord.d.ts b/types/enhanced-resolve/lib/concord.d.ts similarity index 100% rename from enhanced-resolve/lib/concord.d.ts rename to types/enhanced-resolve/lib/concord.d.ts diff --git a/enhanced-resolve/lib/getPaths.d.ts b/types/enhanced-resolve/lib/getPaths.d.ts similarity index 100% rename from enhanced-resolve/lib/getPaths.d.ts rename to types/enhanced-resolve/lib/getPaths.d.ts diff --git a/enhanced-resolve/lib/globToRegExp.d.ts b/types/enhanced-resolve/lib/globToRegExp.d.ts similarity index 100% rename from enhanced-resolve/lib/globToRegExp.d.ts rename to types/enhanced-resolve/lib/globToRegExp.d.ts diff --git a/enhanced-resolve/test/index.ts b/types/enhanced-resolve/test/index.ts similarity index 100% rename from enhanced-resolve/test/index.ts rename to types/enhanced-resolve/test/index.ts diff --git a/enhanced-resolve/test/lib.ts b/types/enhanced-resolve/test/lib.ts similarity index 100% rename from enhanced-resolve/test/lib.ts rename to types/enhanced-resolve/test/lib.ts diff --git a/enhanced-resolve/tsconfig.json b/types/enhanced-resolve/tsconfig.json similarity index 100% rename from enhanced-resolve/tsconfig.json rename to types/enhanced-resolve/tsconfig.json diff --git a/ent/ent-tests.ts b/types/ent/ent-tests.ts similarity index 100% rename from ent/ent-tests.ts rename to types/ent/ent-tests.ts diff --git a/ent/index.d.ts b/types/ent/index.d.ts similarity index 100% rename from ent/index.d.ts rename to types/ent/index.d.ts diff --git a/ent/tsconfig.json b/types/ent/tsconfig.json similarity index 100% rename from ent/tsconfig.json rename to types/ent/tsconfig.json diff --git a/env-to-object/env-to-object-tests.ts b/types/env-to-object/env-to-object-tests.ts similarity index 100% rename from env-to-object/env-to-object-tests.ts rename to types/env-to-object/env-to-object-tests.ts diff --git a/env-to-object/index.d.ts b/types/env-to-object/index.d.ts similarity index 75% rename from env-to-object/index.d.ts rename to types/env-to-object/index.d.ts index 1ec7a3c994..8bbca83f48 100644 --- a/env-to-object/index.d.ts +++ b/types/env-to-object/index.d.ts @@ -4,11 +4,11 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace env { - export interface Mappings { + interface Mappings { [enviromentVariableName: string]: Mapping; } - export type Mapping = IntegerMapping | BooleanMapping | GenericMapping; + type Mapping = IntegerMapping | BooleanMapping | GenericMapping; interface GenericMapping { keypath: string; @@ -26,14 +26,14 @@ declare namespace env { strict: boolean; } - export interface Parsers { + interface Parsers { [parserName: string]: (str: string, opts: any) => any; } - export interface Options { + interface Options { parsers: Parsers; } } -declare function env(map: env.Mappings, options?: env.Options): any; +declare function env(map: env.Mappings, options?: env.Options): any; export = env; diff --git a/env-to-object/tsconfig.json b/types/env-to-object/tsconfig.json similarity index 100% rename from env-to-object/tsconfig.json rename to types/env-to-object/tsconfig.json diff --git a/env-to-object/tslint.json b/types/env-to-object/tslint.json similarity index 100% rename from env-to-object/tslint.json rename to types/env-to-object/tslint.json diff --git a/envify/envify-tests.ts b/types/envify/envify-tests.ts similarity index 100% rename from envify/envify-tests.ts rename to types/envify/envify-tests.ts diff --git a/envify/index.d.ts b/types/envify/index.d.ts similarity index 100% rename from envify/index.d.ts rename to types/envify/index.d.ts diff --git a/envify/tsconfig.json b/types/envify/tsconfig.json similarity index 100% rename from envify/tsconfig.json rename to types/envify/tsconfig.json diff --git a/enzyme/enzyme-tests.tsx b/types/enzyme/enzyme-tests.tsx similarity index 100% rename from enzyme/enzyme-tests.tsx rename to types/enzyme/enzyme-tests.tsx diff --git a/enzyme/index.d.ts b/types/enzyme/index.d.ts similarity index 100% rename from enzyme/index.d.ts rename to types/enzyme/index.d.ts diff --git a/enzyme/tsconfig.json b/types/enzyme/tsconfig.json similarity index 100% rename from enzyme/tsconfig.json rename to types/enzyme/tsconfig.json diff --git a/enzyme/tslint.json b/types/enzyme/tslint.json similarity index 100% rename from enzyme/tslint.json rename to types/enzyme/tslint.json diff --git a/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts b/types/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts similarity index 100% rename from eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts rename to types/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts diff --git a/eonasdan-bootstrap-datetimepicker/index.d.ts b/types/eonasdan-bootstrap-datetimepicker/index.d.ts similarity index 100% rename from eonasdan-bootstrap-datetimepicker/index.d.ts rename to types/eonasdan-bootstrap-datetimepicker/index.d.ts diff --git a/eonasdan-bootstrap-datetimepicker/package.json b/types/eonasdan-bootstrap-datetimepicker/package.json similarity index 100% rename from eonasdan-bootstrap-datetimepicker/package.json rename to types/eonasdan-bootstrap-datetimepicker/package.json diff --git a/eonasdan-bootstrap-datetimepicker/tsconfig.json b/types/eonasdan-bootstrap-datetimepicker/tsconfig.json similarity index 100% rename from eonasdan-bootstrap-datetimepicker/tsconfig.json rename to types/eonasdan-bootstrap-datetimepicker/tsconfig.json diff --git a/epiceditor/epiceditor-tests.ts b/types/epiceditor/epiceditor-tests.ts similarity index 100% rename from epiceditor/epiceditor-tests.ts rename to types/epiceditor/epiceditor-tests.ts diff --git a/epiceditor/index.d.ts b/types/epiceditor/index.d.ts similarity index 100% rename from epiceditor/index.d.ts rename to types/epiceditor/index.d.ts diff --git a/epiceditor/tsconfig.json b/types/epiceditor/tsconfig.json similarity index 100% rename from epiceditor/tsconfig.json rename to types/epiceditor/tsconfig.json diff --git a/epub/epub-tests.ts b/types/epub/epub-tests.ts similarity index 100% rename from epub/epub-tests.ts rename to types/epub/epub-tests.ts diff --git a/epub/index.d.ts b/types/epub/index.d.ts similarity index 100% rename from epub/index.d.ts rename to types/epub/index.d.ts diff --git a/epub/tsconfig.json b/types/epub/tsconfig.json similarity index 100% rename from epub/tsconfig.json rename to types/epub/tsconfig.json diff --git a/eq.js/eq.js-tests.ts b/types/eq.js/eq.js-tests.ts similarity index 100% rename from eq.js/eq.js-tests.ts rename to types/eq.js/eq.js-tests.ts diff --git a/eq.js/index.d.ts b/types/eq.js/index.d.ts similarity index 100% rename from eq.js/index.d.ts rename to types/eq.js/index.d.ts diff --git a/eq.js/tsconfig.json b/types/eq.js/tsconfig.json similarity index 100% rename from eq.js/tsconfig.json rename to types/eq.js/tsconfig.json diff --git a/error-stack-parser/error-stack-parser-tests.ts b/types/error-stack-parser/error-stack-parser-tests.ts similarity index 100% rename from error-stack-parser/error-stack-parser-tests.ts rename to types/error-stack-parser/error-stack-parser-tests.ts diff --git a/error-stack-parser/index.d.ts b/types/error-stack-parser/index.d.ts similarity index 100% rename from error-stack-parser/index.d.ts rename to types/error-stack-parser/index.d.ts diff --git a/error-stack-parser/tsconfig.json b/types/error-stack-parser/tsconfig.json similarity index 100% rename from error-stack-parser/tsconfig.json rename to types/error-stack-parser/tsconfig.json diff --git a/errorhandler/errorhandler-tests.ts b/types/errorhandler/errorhandler-tests.ts similarity index 100% rename from errorhandler/errorhandler-tests.ts rename to types/errorhandler/errorhandler-tests.ts diff --git a/errorhandler/index.d.ts b/types/errorhandler/index.d.ts similarity index 100% rename from errorhandler/index.d.ts rename to types/errorhandler/index.d.ts diff --git a/errorhandler/tsconfig.json b/types/errorhandler/tsconfig.json similarity index 100% rename from errorhandler/tsconfig.json rename to types/errorhandler/tsconfig.json diff --git a/es6-collections/es6-collections-tests.ts b/types/es6-collections/es6-collections-tests.ts similarity index 100% rename from es6-collections/es6-collections-tests.ts rename to types/es6-collections/es6-collections-tests.ts diff --git a/es6-collections/index.d.ts b/types/es6-collections/index.d.ts similarity index 100% rename from es6-collections/index.d.ts rename to types/es6-collections/index.d.ts diff --git a/es6-collections/tsconfig.json b/types/es6-collections/tsconfig.json similarity index 100% rename from es6-collections/tsconfig.json rename to types/es6-collections/tsconfig.json diff --git a/es6-error/es6-error-tests.ts b/types/es6-error/es6-error-tests.ts similarity index 100% rename from es6-error/es6-error-tests.ts rename to types/es6-error/es6-error-tests.ts diff --git a/es6-error/index.d.ts b/types/es6-error/index.d.ts similarity index 100% rename from es6-error/index.d.ts rename to types/es6-error/index.d.ts diff --git a/es6-error/tsconfig.json b/types/es6-error/tsconfig.json similarity index 100% rename from es6-error/tsconfig.json rename to types/es6-error/tsconfig.json diff --git a/es6-promise/es6-promise-tests.ts b/types/es6-promise/es6-promise-tests.ts similarity index 100% rename from es6-promise/es6-promise-tests.ts rename to types/es6-promise/es6-promise-tests.ts diff --git a/es6-promise/index.d.ts b/types/es6-promise/index.d.ts similarity index 100% rename from es6-promise/index.d.ts rename to types/es6-promise/index.d.ts diff --git a/es6-promise/tsconfig.json b/types/es6-promise/tsconfig.json similarity index 100% rename from es6-promise/tsconfig.json rename to types/es6-promise/tsconfig.json diff --git a/es6-shim/es6-shim-tests.ts b/types/es6-shim/es6-shim-tests.ts similarity index 100% rename from es6-shim/es6-shim-tests.ts rename to types/es6-shim/es6-shim-tests.ts diff --git a/es6-shim/index.d.ts b/types/es6-shim/index.d.ts similarity index 100% rename from es6-shim/index.d.ts rename to types/es6-shim/index.d.ts diff --git a/es6-shim/tsconfig.json b/types/es6-shim/tsconfig.json similarity index 100% rename from es6-shim/tsconfig.json rename to types/es6-shim/tsconfig.json diff --git a/es6-weak-map/es6-weak-map-tests.ts b/types/es6-weak-map/es6-weak-map-tests.ts similarity index 100% rename from es6-weak-map/es6-weak-map-tests.ts rename to types/es6-weak-map/es6-weak-map-tests.ts diff --git a/es6-weak-map/index.d.ts b/types/es6-weak-map/index.d.ts similarity index 100% rename from es6-weak-map/index.d.ts rename to types/es6-weak-map/index.d.ts diff --git a/es6-weak-map/tsconfig.json b/types/es6-weak-map/tsconfig.json similarity index 100% rename from es6-weak-map/tsconfig.json rename to types/es6-weak-map/tsconfig.json diff --git a/es6-weak-map/tslint.json b/types/es6-weak-map/tslint.json similarity index 100% rename from es6-weak-map/tslint.json rename to types/es6-weak-map/tslint.json diff --git a/escape-html/escape-html-tests.ts b/types/escape-html/escape-html-tests.ts similarity index 100% rename from escape-html/escape-html-tests.ts rename to types/escape-html/escape-html-tests.ts diff --git a/escape-html/index.d.ts b/types/escape-html/index.d.ts similarity index 100% rename from escape-html/index.d.ts rename to types/escape-html/index.d.ts diff --git a/escape-html/tsconfig.json b/types/escape-html/tsconfig.json similarity index 100% rename from escape-html/tsconfig.json rename to types/escape-html/tsconfig.json diff --git a/escape-latex/escape-latex-tests.ts b/types/escape-latex/escape-latex-tests.ts similarity index 100% rename from escape-latex/escape-latex-tests.ts rename to types/escape-latex/escape-latex-tests.ts diff --git a/escape-latex/index.d.ts b/types/escape-latex/index.d.ts similarity index 100% rename from escape-latex/index.d.ts rename to types/escape-latex/index.d.ts diff --git a/escape-latex/tsconfig.json b/types/escape-latex/tsconfig.json similarity index 100% rename from escape-latex/tsconfig.json rename to types/escape-latex/tsconfig.json diff --git a/escape-string-regexp/escape-string-regexp-tests.ts b/types/escape-string-regexp/escape-string-regexp-tests.ts similarity index 100% rename from escape-string-regexp/escape-string-regexp-tests.ts rename to types/escape-string-regexp/escape-string-regexp-tests.ts diff --git a/escape-string-regexp/index.d.ts b/types/escape-string-regexp/index.d.ts similarity index 100% rename from escape-string-regexp/index.d.ts rename to types/escape-string-regexp/index.d.ts diff --git a/escape-string-regexp/tsconfig.json b/types/escape-string-regexp/tsconfig.json similarity index 100% rename from escape-string-regexp/tsconfig.json rename to types/escape-string-regexp/tsconfig.json diff --git a/escodegen/escodegen-tests.ts b/types/escodegen/escodegen-tests.ts similarity index 100% rename from escodegen/escodegen-tests.ts rename to types/escodegen/escodegen-tests.ts diff --git a/escodegen/index.d.ts b/types/escodegen/index.d.ts similarity index 100% rename from escodegen/index.d.ts rename to types/escodegen/index.d.ts diff --git a/escodegen/tsconfig.json b/types/escodegen/tsconfig.json similarity index 100% rename from escodegen/tsconfig.json rename to types/escodegen/tsconfig.json diff --git a/esprima-walk/esprima-walk-tests.ts b/types/esprima-walk/esprima-walk-tests.ts similarity index 100% rename from esprima-walk/esprima-walk-tests.ts rename to types/esprima-walk/esprima-walk-tests.ts diff --git a/esprima-walk/index.d.ts b/types/esprima-walk/index.d.ts similarity index 100% rename from esprima-walk/index.d.ts rename to types/esprima-walk/index.d.ts diff --git a/esprima-walk/tsconfig.json b/types/esprima-walk/tsconfig.json similarity index 100% rename from esprima-walk/tsconfig.json rename to types/esprima-walk/tsconfig.json diff --git a/esprima/esprima-tests.ts b/types/esprima/esprima-tests.ts similarity index 100% rename from esprima/esprima-tests.ts rename to types/esprima/esprima-tests.ts diff --git a/esprima/index.d.ts b/types/esprima/index.d.ts similarity index 100% rename from esprima/index.d.ts rename to types/esprima/index.d.ts diff --git a/esprima/tsconfig.json b/types/esprima/tsconfig.json similarity index 100% rename from esprima/tsconfig.json rename to types/esprima/tsconfig.json diff --git a/estraverse/estraverse-tests.ts b/types/estraverse/estraverse-tests.ts similarity index 100% rename from estraverse/estraverse-tests.ts rename to types/estraverse/estraverse-tests.ts diff --git a/estraverse/index.d.ts b/types/estraverse/index.d.ts similarity index 100% rename from estraverse/index.d.ts rename to types/estraverse/index.d.ts diff --git a/estraverse/tsconfig.json b/types/estraverse/tsconfig.json similarity index 100% rename from estraverse/tsconfig.json rename to types/estraverse/tsconfig.json diff --git a/estree/UNUSED_FILES.txt b/types/estree/UNUSED_FILES.txt similarity index 100% rename from estree/UNUSED_FILES.txt rename to types/estree/UNUSED_FILES.txt diff --git a/estree/estree-tests.ts b/types/estree/estree-tests.ts similarity index 100% rename from estree/estree-tests.ts rename to types/estree/estree-tests.ts diff --git a/estree/flow.d.ts b/types/estree/flow.d.ts similarity index 100% rename from estree/flow.d.ts rename to types/estree/flow.d.ts diff --git a/estree/index.d.ts b/types/estree/index.d.ts similarity index 100% rename from estree/index.d.ts rename to types/estree/index.d.ts diff --git a/estree/tsconfig.json b/types/estree/tsconfig.json similarity index 100% rename from estree/tsconfig.json rename to types/estree/tsconfig.json diff --git a/evaporate/evaporate-tests.ts b/types/evaporate/evaporate-tests.ts similarity index 100% rename from evaporate/evaporate-tests.ts rename to types/evaporate/evaporate-tests.ts diff --git a/evaporate/index.d.ts b/types/evaporate/index.d.ts similarity index 100% rename from evaporate/index.d.ts rename to types/evaporate/index.d.ts diff --git a/evaporate/tsconfig.json b/types/evaporate/tsconfig.json similarity index 100% rename from evaporate/tsconfig.json rename to types/evaporate/tsconfig.json diff --git a/event-kit/.editorconfig b/types/event-kit/.editorconfig similarity index 100% rename from event-kit/.editorconfig rename to types/event-kit/.editorconfig diff --git a/event-kit/event-kit-tests.ts b/types/event-kit/event-kit-tests.ts similarity index 100% rename from event-kit/event-kit-tests.ts rename to types/event-kit/event-kit-tests.ts diff --git a/event-kit/index.d.ts b/types/event-kit/index.d.ts similarity index 100% rename from event-kit/index.d.ts rename to types/event-kit/index.d.ts diff --git a/event-kit/tsconfig.json b/types/event-kit/tsconfig.json similarity index 100% rename from event-kit/tsconfig.json rename to types/event-kit/tsconfig.json diff --git a/event-loop-lag/event-loop-lag-tests.ts b/types/event-loop-lag/event-loop-lag-tests.ts similarity index 100% rename from event-loop-lag/event-loop-lag-tests.ts rename to types/event-loop-lag/event-loop-lag-tests.ts diff --git a/event-loop-lag/index.d.ts b/types/event-loop-lag/index.d.ts similarity index 100% rename from event-loop-lag/index.d.ts rename to types/event-loop-lag/index.d.ts diff --git a/event-loop-lag/tsconfig.json b/types/event-loop-lag/tsconfig.json similarity index 100% rename from event-loop-lag/tsconfig.json rename to types/event-loop-lag/tsconfig.json diff --git a/event-stream/event-stream-tests.ts b/types/event-stream/event-stream-tests.ts similarity index 100% rename from event-stream/event-stream-tests.ts rename to types/event-stream/event-stream-tests.ts diff --git a/event-stream/index.d.ts b/types/event-stream/index.d.ts similarity index 100% rename from event-stream/index.d.ts rename to types/event-stream/index.d.ts diff --git a/event-stream/tsconfig.json b/types/event-stream/tsconfig.json similarity index 100% rename from event-stream/tsconfig.json rename to types/event-stream/tsconfig.json diff --git a/event-to-promise/event-to-promise-tests.ts b/types/event-to-promise/event-to-promise-tests.ts similarity index 100% rename from event-to-promise/event-to-promise-tests.ts rename to types/event-to-promise/event-to-promise-tests.ts diff --git a/event-to-promise/index.d.ts b/types/event-to-promise/index.d.ts similarity index 100% rename from event-to-promise/index.d.ts rename to types/event-to-promise/index.d.ts diff --git a/event-to-promise/tsconfig.json b/types/event-to-promise/tsconfig.json similarity index 100% rename from event-to-promise/tsconfig.json rename to types/event-to-promise/tsconfig.json diff --git a/eventemitter2/eventemitter2-tests.ts b/types/eventemitter2/eventemitter2-tests.ts similarity index 100% rename from eventemitter2/eventemitter2-tests.ts rename to types/eventemitter2/eventemitter2-tests.ts diff --git a/eventemitter2/index.d.ts b/types/eventemitter2/index.d.ts similarity index 100% rename from eventemitter2/index.d.ts rename to types/eventemitter2/index.d.ts diff --git a/eventemitter2/tsconfig.json b/types/eventemitter2/tsconfig.json similarity index 100% rename from eventemitter2/tsconfig.json rename to types/eventemitter2/tsconfig.json diff --git a/eventemitter3/eventemitter3-tests.ts b/types/eventemitter3/eventemitter3-tests.ts similarity index 100% rename from eventemitter3/eventemitter3-tests.ts rename to types/eventemitter3/eventemitter3-tests.ts diff --git a/eventemitter3/index.d.ts b/types/eventemitter3/index.d.ts similarity index 100% rename from eventemitter3/index.d.ts rename to types/eventemitter3/index.d.ts diff --git a/eventemitter3/tsconfig.json b/types/eventemitter3/tsconfig.json similarity index 100% rename from eventemitter3/tsconfig.json rename to types/eventemitter3/tsconfig.json diff --git a/evernote/evernote-tests.ts b/types/evernote/evernote-tests.ts similarity index 100% rename from evernote/evernote-tests.ts rename to types/evernote/evernote-tests.ts diff --git a/evernote/index.d.ts b/types/evernote/index.d.ts similarity index 100% rename from evernote/index.d.ts rename to types/evernote/index.d.ts diff --git a/evernote/tsconfig.json b/types/evernote/tsconfig.json similarity index 100% rename from evernote/tsconfig.json rename to types/evernote/tsconfig.json diff --git a/exit/exit-tests.ts b/types/exit/exit-tests.ts similarity index 100% rename from exit/exit-tests.ts rename to types/exit/exit-tests.ts diff --git a/exit/index.d.ts b/types/exit/index.d.ts similarity index 100% rename from exit/index.d.ts rename to types/exit/index.d.ts diff --git a/exit/tsconfig.json b/types/exit/tsconfig.json similarity index 100% rename from exit/tsconfig.json rename to types/exit/tsconfig.json diff --git a/exorcist/exorcist-tests.ts b/types/exorcist/exorcist-tests.ts similarity index 100% rename from exorcist/exorcist-tests.ts rename to types/exorcist/exorcist-tests.ts diff --git a/exorcist/index.d.ts b/types/exorcist/index.d.ts similarity index 100% rename from exorcist/index.d.ts rename to types/exorcist/index.d.ts diff --git a/exorcist/tsconfig.json b/types/exorcist/tsconfig.json similarity index 100% rename from exorcist/tsconfig.json rename to types/exorcist/tsconfig.json diff --git a/expect.js/expect.js-tests.ts b/types/expect.js/expect.js-tests.ts similarity index 100% rename from expect.js/expect.js-tests.ts rename to types/expect.js/expect.js-tests.ts diff --git a/expect.js/index.d.ts b/types/expect.js/index.d.ts similarity index 100% rename from expect.js/index.d.ts rename to types/expect.js/index.d.ts diff --git a/expect.js/tsconfig.json b/types/expect.js/tsconfig.json similarity index 100% rename from expect.js/tsconfig.json rename to types/expect.js/tsconfig.json diff --git a/expect/expect-tests.ts b/types/expect/expect-tests.ts similarity index 99% rename from expect/expect-tests.ts rename to types/expect/expect-tests.ts index 3e08e0d747..c4312d1ada 100644 --- a/expect/expect-tests.ts +++ b/types/expect/expect-tests.ts @@ -1,4 +1,3 @@ - /// import {Expectation, Extension, Spy, createSpy, isSpy, assert, spyOn, extend, restoreSpies} from 'expect'; diff --git a/expect/index.d.ts b/types/expect/index.d.ts similarity index 85% rename from expect/index.d.ts rename to types/expect/index.d.ts index 7b4e95e2b5..8e3422a4d9 100644 --- a/expect/index.d.ts +++ b/types/expect/index.d.ts @@ -4,11 +4,11 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace expect { - export type CompareValues = (a: T, b: T) => boolean; - export type Comparator = (target: {}, key: string) => boolean; - export type KeyType = string | number; + type CompareValues = (a: T, b: T) => boolean; + type Comparator = (target: {}, key: string) => boolean; + type KeyType = string | number; - export class Expectation { + class Expectation { constructor(actual: any); toExist(message?: string): Expectation; toBeTruthy(message?: string): Expectation; @@ -61,16 +61,16 @@ declare namespace expect { withArgs(...args: any[]): Expectation; } - export interface Extension { + interface Extension { [name: string]: (args?: any[]) => void; } - export interface Call { + interface Call { context: T; arguments: any[]; } - export interface Spy { + interface Spy { (...args: any[]): void; __isSpy: boolean; calls: Array>; @@ -84,14 +84,12 @@ declare namespace expect { reset(): void; } - - export function createSpy(fn?: (...args: any[]) => any, restore?: (...args: any[]) => any): Spy; - export function spyOn(object: T, methodName: string): Spy; - export function isSpy(object: {}): boolean; - export function restoreSpies(): void; - export function assert(condition: boolean, messageFormat: string, ...extraArgs: any[]): void; - export function extend(extension: Extension): void; - + function createSpy(fn?: (...args: any[]) => any, restore?: (...args: any[]) => any): Spy; + function spyOn(object: T, methodName: string): Spy; + function isSpy(object: {}): boolean; + function restoreSpies(): void; + function assert(condition: boolean, messageFormat: string, ...extraArgs: any[]): void; + function extend(extension: Extension): void; } declare function expect(actual: T): expect.Expectation; diff --git a/expect/tsconfig.json b/types/expect/tsconfig.json similarity index 100% rename from expect/tsconfig.json rename to types/expect/tsconfig.json diff --git a/expect/tslint.json b/types/expect/tslint.json similarity index 100% rename from expect/tslint.json rename to types/expect/tslint.json diff --git a/expectations/expectations-tests.ts b/types/expectations/expectations-tests.ts similarity index 100% rename from expectations/expectations-tests.ts rename to types/expectations/expectations-tests.ts diff --git a/expectations/index.d.ts b/types/expectations/index.d.ts similarity index 100% rename from expectations/index.d.ts rename to types/expectations/index.d.ts diff --git a/expectations/tsconfig.json b/types/expectations/tsconfig.json similarity index 100% rename from expectations/tsconfig.json rename to types/expectations/tsconfig.json diff --git a/expr-eval/expr-eval-tests.ts b/types/expr-eval/expr-eval-tests.ts similarity index 100% rename from expr-eval/expr-eval-tests.ts rename to types/expr-eval/expr-eval-tests.ts diff --git a/expr-eval/index.d.ts b/types/expr-eval/index.d.ts similarity index 100% rename from expr-eval/index.d.ts rename to types/expr-eval/index.d.ts diff --git a/expr-eval/tsconfig.json b/types/expr-eval/tsconfig.json similarity index 100% rename from expr-eval/tsconfig.json rename to types/expr-eval/tsconfig.json diff --git a/expr-eval/tslint.json b/types/expr-eval/tslint.json similarity index 100% rename from expr-eval/tslint.json rename to types/expr-eval/tslint.json diff --git a/express-brute-memcached/express-brute-memcached-tests.ts b/types/express-brute-memcached/express-brute-memcached-tests.ts similarity index 100% rename from express-brute-memcached/express-brute-memcached-tests.ts rename to types/express-brute-memcached/express-brute-memcached-tests.ts diff --git a/express-brute-memcached/index.d.ts b/types/express-brute-memcached/index.d.ts similarity index 100% rename from express-brute-memcached/index.d.ts rename to types/express-brute-memcached/index.d.ts diff --git a/express-brute-memcached/tsconfig.json b/types/express-brute-memcached/tsconfig.json similarity index 100% rename from express-brute-memcached/tsconfig.json rename to types/express-brute-memcached/tsconfig.json diff --git a/express-brute-mongo/express-brute-mongo-tests.ts b/types/express-brute-mongo/express-brute-mongo-tests.ts similarity index 100% rename from express-brute-mongo/express-brute-mongo-tests.ts rename to types/express-brute-mongo/express-brute-mongo-tests.ts diff --git a/express-brute-mongo/index.d.ts b/types/express-brute-mongo/index.d.ts similarity index 100% rename from express-brute-mongo/index.d.ts rename to types/express-brute-mongo/index.d.ts diff --git a/express-brute-mongo/tsconfig.json b/types/express-brute-mongo/tsconfig.json similarity index 100% rename from express-brute-mongo/tsconfig.json rename to types/express-brute-mongo/tsconfig.json diff --git a/express-brute/express-brute-tests.ts b/types/express-brute/express-brute-tests.ts similarity index 100% rename from express-brute/express-brute-tests.ts rename to types/express-brute/express-brute-tests.ts diff --git a/express-brute/index.d.ts b/types/express-brute/index.d.ts similarity index 100% rename from express-brute/index.d.ts rename to types/express-brute/index.d.ts diff --git a/express-brute/tsconfig.json b/types/express-brute/tsconfig.json similarity index 100% rename from express-brute/tsconfig.json rename to types/express-brute/tsconfig.json diff --git a/express-debug/express-debug-tests.ts b/types/express-debug/express-debug-tests.ts similarity index 100% rename from express-debug/express-debug-tests.ts rename to types/express-debug/express-debug-tests.ts diff --git a/express-debug/index.d.ts b/types/express-debug/index.d.ts similarity index 100% rename from express-debug/index.d.ts rename to types/express-debug/index.d.ts diff --git a/express-debug/tsconfig.json b/types/express-debug/tsconfig.json similarity index 100% rename from express-debug/tsconfig.json rename to types/express-debug/tsconfig.json diff --git a/express-domain-middleware/express-domain-middleware-tests.ts b/types/express-domain-middleware/express-domain-middleware-tests.ts similarity index 100% rename from express-domain-middleware/express-domain-middleware-tests.ts rename to types/express-domain-middleware/express-domain-middleware-tests.ts diff --git a/express-domain-middleware/index.d.ts b/types/express-domain-middleware/index.d.ts similarity index 100% rename from express-domain-middleware/index.d.ts rename to types/express-domain-middleware/index.d.ts diff --git a/express-domain-middleware/tsconfig.json b/types/express-domain-middleware/tsconfig.json similarity index 100% rename from express-domain-middleware/tsconfig.json rename to types/express-domain-middleware/tsconfig.json diff --git a/express-formidable/express-formidable-tests.ts b/types/express-formidable/express-formidable-tests.ts similarity index 100% rename from express-formidable/express-formidable-tests.ts rename to types/express-formidable/express-formidable-tests.ts diff --git a/express-formidable/index.d.ts b/types/express-formidable/index.d.ts similarity index 100% rename from express-formidable/index.d.ts rename to types/express-formidable/index.d.ts diff --git a/express-formidable/tsconfig.json b/types/express-formidable/tsconfig.json similarity index 100% rename from express-formidable/tsconfig.json rename to types/express-formidable/tsconfig.json diff --git a/express-graphql/express-graphql-tests.ts b/types/express-graphql/express-graphql-tests.ts similarity index 100% rename from express-graphql/express-graphql-tests.ts rename to types/express-graphql/express-graphql-tests.ts diff --git a/express-graphql/index.d.ts b/types/express-graphql/index.d.ts similarity index 100% rename from express-graphql/index.d.ts rename to types/express-graphql/index.d.ts diff --git a/express-graphql/tsconfig.json b/types/express-graphql/tsconfig.json similarity index 100% rename from express-graphql/tsconfig.json rename to types/express-graphql/tsconfig.json diff --git a/express-handlebars/express-handlebars-tests.ts b/types/express-handlebars/express-handlebars-tests.ts similarity index 100% rename from express-handlebars/express-handlebars-tests.ts rename to types/express-handlebars/express-handlebars-tests.ts diff --git a/express-handlebars/index.d.ts b/types/express-handlebars/index.d.ts similarity index 100% rename from express-handlebars/index.d.ts rename to types/express-handlebars/index.d.ts diff --git a/express-handlebars/tsconfig.json b/types/express-handlebars/tsconfig.json similarity index 100% rename from express-handlebars/tsconfig.json rename to types/express-handlebars/tsconfig.json diff --git a/express-jwt/express-jwt-tests.ts b/types/express-jwt/express-jwt-tests.ts similarity index 100% rename from express-jwt/express-jwt-tests.ts rename to types/express-jwt/express-jwt-tests.ts diff --git a/express-jwt/index.d.ts b/types/express-jwt/index.d.ts similarity index 100% rename from express-jwt/index.d.ts rename to types/express-jwt/index.d.ts diff --git a/express-jwt/tsconfig.json b/types/express-jwt/tsconfig.json similarity index 100% rename from express-jwt/tsconfig.json rename to types/express-jwt/tsconfig.json diff --git a/express-less/express-less-tests.ts b/types/express-less/express-less-tests.ts similarity index 100% rename from express-less/express-less-tests.ts rename to types/express-less/express-less-tests.ts diff --git a/express-less/index.d.ts b/types/express-less/index.d.ts similarity index 100% rename from express-less/index.d.ts rename to types/express-less/index.d.ts diff --git a/express-less/tsconfig.json b/types/express-less/tsconfig.json similarity index 100% rename from express-less/tsconfig.json rename to types/express-less/tsconfig.json diff --git a/express-minify/express-minify-tests.ts b/types/express-minify/express-minify-tests.ts similarity index 100% rename from express-minify/express-minify-tests.ts rename to types/express-minify/express-minify-tests.ts diff --git a/express-minify/index.d.ts b/types/express-minify/index.d.ts similarity index 100% rename from express-minify/index.d.ts rename to types/express-minify/index.d.ts diff --git a/express-minify/tsconfig.json b/types/express-minify/tsconfig.json similarity index 100% rename from express-minify/tsconfig.json rename to types/express-minify/tsconfig.json diff --git a/express-mung/express-mung-tests.ts b/types/express-mung/express-mung-tests.ts similarity index 100% rename from express-mung/express-mung-tests.ts rename to types/express-mung/express-mung-tests.ts diff --git a/express-mung/index.d.ts b/types/express-mung/index.d.ts similarity index 100% rename from express-mung/index.d.ts rename to types/express-mung/index.d.ts diff --git a/express-mung/tsconfig.json b/types/express-mung/tsconfig.json similarity index 100% rename from express-mung/tsconfig.json rename to types/express-mung/tsconfig.json diff --git a/express-myconnection/express-myconnection-tests.ts b/types/express-myconnection/express-myconnection-tests.ts similarity index 100% rename from express-myconnection/express-myconnection-tests.ts rename to types/express-myconnection/express-myconnection-tests.ts diff --git a/express-myconnection/index.d.ts b/types/express-myconnection/index.d.ts similarity index 100% rename from express-myconnection/index.d.ts rename to types/express-myconnection/index.d.ts diff --git a/express-myconnection/tsconfig.json b/types/express-myconnection/tsconfig.json similarity index 100% rename from express-myconnection/tsconfig.json rename to types/express-myconnection/tsconfig.json diff --git a/express-mysql-session/express-mysql-session-tests.ts b/types/express-mysql-session/express-mysql-session-tests.ts similarity index 100% rename from express-mysql-session/express-mysql-session-tests.ts rename to types/express-mysql-session/express-mysql-session-tests.ts diff --git a/express-mysql-session/index.d.ts b/types/express-mysql-session/index.d.ts similarity index 100% rename from express-mysql-session/index.d.ts rename to types/express-mysql-session/index.d.ts diff --git a/express-mysql-session/tsconfig.json b/types/express-mysql-session/tsconfig.json similarity index 100% rename from express-mysql-session/tsconfig.json rename to types/express-mysql-session/tsconfig.json diff --git a/express-mysql-session/tslint.json b/types/express-mysql-session/tslint.json similarity index 100% rename from express-mysql-session/tslint.json rename to types/express-mysql-session/tslint.json diff --git a/express-openapi/express-openapi-tests.ts b/types/express-openapi/express-openapi-tests.ts similarity index 100% rename from express-openapi/express-openapi-tests.ts rename to types/express-openapi/express-openapi-tests.ts diff --git a/express-openapi/index.d.ts b/types/express-openapi/index.d.ts similarity index 100% rename from express-openapi/index.d.ts rename to types/express-openapi/index.d.ts diff --git a/express-openapi/tsconfig.json b/types/express-openapi/tsconfig.json similarity index 100% rename from express-openapi/tsconfig.json rename to types/express-openapi/tsconfig.json diff --git a/express-partials/express-partials-tests.ts b/types/express-partials/express-partials-tests.ts similarity index 100% rename from express-partials/express-partials-tests.ts rename to types/express-partials/express-partials-tests.ts diff --git a/express-partials/index.d.ts b/types/express-partials/index.d.ts similarity index 100% rename from express-partials/index.d.ts rename to types/express-partials/index.d.ts diff --git a/express-partials/tsconfig.json b/types/express-partials/tsconfig.json similarity index 100% rename from express-partials/tsconfig.json rename to types/express-partials/tsconfig.json diff --git a/express-rate-limit/express-rate-limit-tests.ts b/types/express-rate-limit/express-rate-limit-tests.ts similarity index 84% rename from express-rate-limit/express-rate-limit-tests.ts rename to types/express-rate-limit/express-rate-limit-tests.ts index 761a6d23f8..624a2da10d 100644 --- a/express-rate-limit/express-rate-limit-tests.ts +++ b/types/express-rate-limit/express-rate-limit-tests.ts @@ -1,12 +1,12 @@ import RateLimit = require("express-rate-limit"); -var apiLimiter = new RateLimit({ +const apiLimiter = new RateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes max: 100, delayMs: 0 // disabled }); -var createAccountLimiter = new RateLimit({ +const createAccountLimiter = new RateLimit({ windowMs: 60 * 60 * 1000, // 1 hour window delayAfter: 1, // begin slowing down responses after the first request delayMs: 3 * 1000, // slow down subsequent responses by 3 seconds per request @@ -20,6 +20,6 @@ class SomeStore implements RateLimit.Store { resetKey(key: string) { }; }; -var limiterWithStore = new RateLimit({ +const limiterWithStore = new RateLimit({ store: new SomeStore() }); diff --git a/express-rate-limit/index.d.ts b/types/express-rate-limit/index.d.ts similarity index 81% rename from express-rate-limit/index.d.ts rename to types/express-rate-limit/index.d.ts index 38ef8f8b29..ce09dbbf51 100644 --- a/express-rate-limit/index.d.ts +++ b/types/express-rate-limit/index.d.ts @@ -8,13 +8,13 @@ import express = require("express"); declare namespace RateLimit { type StoreIncrementCallback = (err?: {}, hits?: number) => void; - export interface Store { + interface Store { incr: (key: string, cb: StoreIncrementCallback) => void; resetAll: () => void; resetKey: (key: string) => void; } - export interface Options { + interface Options { delayAfter?: number; delayMs?: number; handlers?: () => any; @@ -29,9 +29,5 @@ declare namespace RateLimit { } } -interface RateLimitStatic { - new(options: RateLimit.Options): express.RequestHandler; -} - -declare var RateLimit: RateLimitStatic; +declare var RateLimit: new (options: RateLimit.Options) => express.RequestHandler; export = RateLimit; diff --git a/express-rate-limit/tsconfig.json b/types/express-rate-limit/tsconfig.json similarity index 100% rename from express-rate-limit/tsconfig.json rename to types/express-rate-limit/tsconfig.json diff --git a/express-rate-limit/tslint.json b/types/express-rate-limit/tslint.json similarity index 100% rename from express-rate-limit/tslint.json rename to types/express-rate-limit/tslint.json diff --git a/express-route-fs/express-route-fs-tests.ts b/types/express-route-fs/express-route-fs-tests.ts similarity index 100% rename from express-route-fs/express-route-fs-tests.ts rename to types/express-route-fs/express-route-fs-tests.ts diff --git a/express-route-fs/index.d.ts b/types/express-route-fs/index.d.ts similarity index 100% rename from express-route-fs/index.d.ts rename to types/express-route-fs/index.d.ts diff --git a/express-route-fs/tsconfig.json b/types/express-route-fs/tsconfig.json similarity index 100% rename from express-route-fs/tsconfig.json rename to types/express-route-fs/tsconfig.json diff --git a/express-serve-static-core/express-serve-static-core-tests.ts b/types/express-serve-static-core/express-serve-static-core-tests.ts similarity index 100% rename from express-serve-static-core/express-serve-static-core-tests.ts rename to types/express-serve-static-core/express-serve-static-core-tests.ts diff --git a/express-serve-static-core/index.d.ts b/types/express-serve-static-core/index.d.ts similarity index 99% rename from express-serve-static-core/index.d.ts rename to types/express-serve-static-core/index.d.ts index e42568b14c..a54481027d 100644 --- a/express-serve-static-core/index.d.ts +++ b/types/express-serve-static-core/index.d.ts @@ -96,6 +96,7 @@ interface IRouter extends RequestHandler { head: IRouterMatcher; checkout: IRouterMatcher; + connect: IRouterMatcher; copy: IRouterMatcher; lock: IRouterMatcher; merge: IRouterMatcher; @@ -104,6 +105,8 @@ interface IRouter extends RequestHandler { move: IRouterMatcher; "m-search": IRouterMatcher; notify: IRouterMatcher; + propfind: IRouterMatcher; + proppatch: IRouterMatcher; purge: IRouterMatcher; report: IRouterMatcher; search: IRouterMatcher; @@ -860,7 +863,7 @@ interface RequestParamHandler { (req: Request, res: Response, next: NextFunction, value: any, name: string): any; } -type ApplicaitonRequestHandler = IRouterHandler & IRouterMatcher & { +type ApplicationRequestHandler = IRouterHandler & IRouterMatcher & { (...handlers: RequestHandlerParams[]): T; }; @@ -1105,7 +1108,7 @@ interface Application extends IRouter, Express.Application { */ _router: any; - use: ApplicaitonRequestHandler; + use: ApplicationRequestHandler; } interface Express extends Application { diff --git a/express-serve-static-core/tsconfig.json b/types/express-serve-static-core/tsconfig.json similarity index 100% rename from express-serve-static-core/tsconfig.json rename to types/express-serve-static-core/tsconfig.json diff --git a/express-session/express-session-tests.ts b/types/express-session/express-session-tests.ts similarity index 100% rename from express-session/express-session-tests.ts rename to types/express-session/express-session-tests.ts diff --git a/express-session/index.d.ts b/types/express-session/index.d.ts similarity index 100% rename from express-session/index.d.ts rename to types/express-session/index.d.ts diff --git a/express-session/tsconfig.json b/types/express-session/tsconfig.json similarity index 100% rename from express-session/tsconfig.json rename to types/express-session/tsconfig.json diff --git a/express-unless/express-unless-tests.ts b/types/express-unless/express-unless-tests.ts similarity index 100% rename from express-unless/express-unless-tests.ts rename to types/express-unless/express-unless-tests.ts diff --git a/express-unless/index.d.ts b/types/express-unless/index.d.ts similarity index 100% rename from express-unless/index.d.ts rename to types/express-unless/index.d.ts diff --git a/express-unless/tsconfig.json b/types/express-unless/tsconfig.json similarity index 100% rename from express-unless/tsconfig.json rename to types/express-unless/tsconfig.json diff --git a/express-useragent/express-useragent-tests.ts b/types/express-useragent/express-useragent-tests.ts similarity index 100% rename from express-useragent/express-useragent-tests.ts rename to types/express-useragent/express-useragent-tests.ts diff --git a/express-useragent/index.d.ts b/types/express-useragent/index.d.ts similarity index 100% rename from express-useragent/index.d.ts rename to types/express-useragent/index.d.ts diff --git a/express-useragent/tsconfig.json b/types/express-useragent/tsconfig.json similarity index 100% rename from express-useragent/tsconfig.json rename to types/express-useragent/tsconfig.json diff --git a/express-validator/express-validator-tests.ts b/types/express-validator/express-validator-tests.ts similarity index 100% rename from express-validator/express-validator-tests.ts rename to types/express-validator/express-validator-tests.ts diff --git a/express-validator/index.d.ts b/types/express-validator/index.d.ts similarity index 100% rename from express-validator/index.d.ts rename to types/express-validator/index.d.ts diff --git a/express-validator/tsconfig.json b/types/express-validator/tsconfig.json similarity index 100% rename from express-validator/tsconfig.json rename to types/express-validator/tsconfig.json diff --git a/express/express-tests.ts b/types/express/express-tests.ts similarity index 100% rename from express/express-tests.ts rename to types/express/express-tests.ts diff --git a/express/index.d.ts b/types/express/index.d.ts similarity index 100% rename from express/index.d.ts rename to types/express/index.d.ts diff --git a/express/tsconfig.json b/types/express/tsconfig.json similarity index 100% rename from express/tsconfig.json rename to types/express/tsconfig.json diff --git a/extend/extend-tests.ts b/types/extend/extend-tests.ts similarity index 100% rename from extend/extend-tests.ts rename to types/extend/extend-tests.ts diff --git a/extend/index.d.ts b/types/extend/index.d.ts similarity index 100% rename from extend/index.d.ts rename to types/extend/index.d.ts diff --git a/extend/tsconfig.json b/types/extend/tsconfig.json similarity index 100% rename from extend/tsconfig.json rename to types/extend/tsconfig.json diff --git a/extended-listbox/extended-listbox-tests.ts b/types/extended-listbox/extended-listbox-tests.ts similarity index 100% rename from extended-listbox/extended-listbox-tests.ts rename to types/extended-listbox/extended-listbox-tests.ts diff --git a/extended-listbox/index.d.ts b/types/extended-listbox/index.d.ts similarity index 100% rename from extended-listbox/index.d.ts rename to types/extended-listbox/index.d.ts diff --git a/extended-listbox/tsconfig.json b/types/extended-listbox/tsconfig.json similarity index 100% rename from extended-listbox/tsconfig.json rename to types/extended-listbox/tsconfig.json diff --git a/extjs/extjs-tests.ts b/types/extjs/extjs-tests.ts similarity index 100% rename from extjs/extjs-tests.ts rename to types/extjs/extjs-tests.ts diff --git a/extjs/index.d.ts b/types/extjs/index.d.ts similarity index 100% rename from extjs/index.d.ts rename to types/extjs/index.d.ts diff --git a/extjs/tsconfig.json b/types/extjs/tsconfig.json similarity index 100% rename from extjs/tsconfig.json rename to types/extjs/tsconfig.json diff --git a/extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts b/types/extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts similarity index 100% rename from extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts rename to types/extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts diff --git a/extract-text-webpack-plugin/index.d.ts b/types/extract-text-webpack-plugin/index.d.ts similarity index 100% rename from extract-text-webpack-plugin/index.d.ts rename to types/extract-text-webpack-plugin/index.d.ts diff --git a/extract-text-webpack-plugin/tsconfig.json b/types/extract-text-webpack-plugin/tsconfig.json similarity index 100% rename from extract-text-webpack-plugin/tsconfig.json rename to types/extract-text-webpack-plugin/tsconfig.json diff --git a/extract-zip/extract-zip-tests.ts b/types/extract-zip/extract-zip-tests.ts similarity index 100% rename from extract-zip/extract-zip-tests.ts rename to types/extract-zip/extract-zip-tests.ts diff --git a/extract-zip/index.d.ts b/types/extract-zip/index.d.ts similarity index 94% rename from extract-zip/index.d.ts rename to types/extract-zip/index.d.ts index 52ce40094f..9edd2fcb31 100644 --- a/extract-zip/index.d.ts +++ b/types/extract-zip/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace extract { - export interface Options { + interface Options { dir?: string; defaultDirMode?: number; defaultFileMode?: number; diff --git a/extract-zip/tsconfig.json b/types/extract-zip/tsconfig.json similarity index 100% rename from extract-zip/tsconfig.json rename to types/extract-zip/tsconfig.json diff --git a/extract-zip/tslint.json b/types/extract-zip/tslint.json similarity index 100% rename from extract-zip/tslint.json rename to types/extract-zip/tslint.json diff --git a/eyes/eyes-tests.ts b/types/eyes/eyes-tests.ts similarity index 100% rename from eyes/eyes-tests.ts rename to types/eyes/eyes-tests.ts diff --git a/eyes/index.d.ts b/types/eyes/index.d.ts similarity index 100% rename from eyes/index.d.ts rename to types/eyes/index.d.ts diff --git a/eyes/tsconfig.json b/types/eyes/tsconfig.json similarity index 100% rename from eyes/tsconfig.json rename to types/eyes/tsconfig.json diff --git a/f1/f1-tests.ts b/types/f1/f1-tests.ts similarity index 100% rename from f1/f1-tests.ts rename to types/f1/f1-tests.ts diff --git a/f1/index.d.ts b/types/f1/index.d.ts similarity index 100% rename from f1/index.d.ts rename to types/f1/index.d.ts diff --git a/f1/tsconfig.json b/types/f1/tsconfig.json similarity index 100% rename from f1/tsconfig.json rename to types/f1/tsconfig.json diff --git a/f1/tslint.json b/types/f1/tslint.json similarity index 100% rename from f1/tslint.json rename to types/f1/tslint.json diff --git a/fabric/fabric-tests.ts b/types/fabric/fabric-tests.ts similarity index 78% rename from fabric/fabric-tests.ts rename to types/fabric/fabric-tests.ts index 923b29d896..e94b676104 100644 --- a/fabric/fabric-tests.ts +++ b/types/fabric/fabric-tests.ts @@ -1,7 +1,7 @@ import * as fabric from "fabric"; function sample1() { - var canvas = new fabric.Canvas('c', { + const canvas = new fabric.Canvas('c', { hoverCursor: 'pointer', selection: false, }); @@ -13,7 +13,7 @@ function sample1() { e.target.opacity = 1; }); - for (var i = 0, len = 15; i < len; i++) { + for (let i = 0; i < 15; i++) { fabric.Image.fromURL('../assets/ladybug.png', img => { img.set({ left: fabric.util.getRandomInt(0, 600), @@ -33,17 +33,16 @@ function sample1() { } function sample2() { - - var dot: fabric.Circle, i: number, - t1: number, t2: number, - startTimer = () => { - t1 = new Date().getTime(); - return t1; - }, - stopTimer = () => { - t2 = new Date().getTime(); - return t2 - t1; - }, + let dot: fabric.Circle, i: number; + let t1: number, t2: number; + const startTimer = () => { + t1 = new Date().getTime(); + return t1; + }; + const stopTimer = () => { + t2 = new Date().getTime(); + return t2 - t1; + }, getRandomInt = fabric.util.getRandomInt, rainbow = ["#ffcc66", "#ccff66", "#66ccff", "#ff6fcf", "#ff6666"], rainbowEnd = rainbow.length - 1; @@ -51,7 +50,7 @@ function sample2() { // // Rendering canvas #1 // - var canvas1 = new fabric.Canvas('c1', { backgroundColor: "#000" }), + const canvas1 = new fabric.Canvas('c1', { backgroundColor: "#000" }), results1 = document.getElementById('results-c1'); startTimer(); @@ -66,11 +65,10 @@ function sample2() { } results1.innerHTML = 'Regular rendering of 100 elements in ' + stopTimer() + 'ms'; - // // Rendering canvas #2 // - var canvas2 = new fabric.Canvas('c2', { backgroundColor: "#000", renderOnAddRemove: false }), + const canvas2 = new fabric.Canvas('c2', { backgroundColor: "#000", renderOnAddRemove: false }), results2 = document.getElementById('results-c2'); startTimer(); @@ -88,35 +86,34 @@ function sample2() { } function sample3() { - - var $: (id: string) => HTMLElement = (id: string) => document.getElementById(id); + const $: (id: string) => HTMLElement = (id: string) => document.getElementById(id); function applyFilter(index: number, filter: any) { - var obj: fabric.Image = canvas.getActiveObject(); + const obj: fabric.Image = canvas.getActiveObject(); obj.filters[index] = filter; obj.applyFilters(canvas.renderAll.bind(canvas)); } function applyFilterValue(index: number, prop: string, value: any) { - var obj: fabric.Image = canvas.getActiveObject(); + const obj: fabric.Image = canvas.getActiveObject(); if (obj.filters[index]) { obj.applyFilters(canvas.renderAll.bind(canvas)); } } - var canvas = new fabric.Canvas('c', { backgroundImage: '../lib/bg.png' }), + const canvas = new fabric.Canvas('c', { backgroundImage: '../lib/bg.png' }), f = fabric.Image.filters; canvas.on({ 'object:selected': () => { fabric.util.toArray(document.getElementsByTagName('input')).forEach(el => { el.disabled = false; }); - var filters = ['grayscale', 'invert', 'remove-white', 'sepia', 'sepia2', 'brightness', + const filters = ['grayscale', 'invert', 'remove-white', 'sepia', 'sepia2', 'brightness', 'noise', 'gradient-transparency', 'pixelate', 'blur', 'sharpen']; - for (var i = 0; i < filters.length; i++) { - var checkBox = $(filters[i]); - var image = canvas.getActiveObject(); + for (let i = 0; i < filters.length; i++) { + const checkBox = $(filters[i]); + const image = canvas.getActiveObject(); checkBox.checked = !!image.filters[i]; } }, @@ -126,7 +123,7 @@ function sample3() { }); fabric.Image.fromURL('../assets/printio.png', img => { - var oImg = img.set({ left: 300, top: 300, angle: -15 }).scale(0.9); + const oImg = img.set({ left: 300, top: 300, angle: -15 }).scale(0.9); canvas.add(oImg).renderAll(); canvas.setActiveObject(oImg); }); @@ -211,11 +208,10 @@ function sample3() { } function sample4() { + const canvas = new fabric.Canvas('c'); + const $: (id: string) => HTMLElement = id => document.getElementById(id); - var canvas = new fabric.Canvas('c'); - var $: (id: string) => HTMLElement = id => document.getElementById(id); - - var rect = new fabric.Rect({ + const rect = new fabric.Rect({ width: 100, height: 100, top: 150, @@ -225,32 +221,31 @@ function sample4() { canvas.add(rect); - var angleControl = $('angle-control'); + const angleControl = $('angle-control'); angleControl.onchange = function(this: HTMLInputElement) { rect.setAngle(+this.value).setCoords(); canvas.renderAll(); }; - var scaleControl = $('scale-control'); + const scaleControl = $('scale-control'); scaleControl.onchange = function(this: HTMLInputElement) { rect.scale(+this.value).setCoords(); canvas.renderAll(); }; - var topControl = $('top-control'); + const topControl = $('top-control'); topControl.onchange = function(this: HTMLInputElement) { rect.setTop(+this.value).setCoords(); canvas.renderAll(); }; - var leftControl = $('left-control'); + const leftControl = $('left-control'); leftControl.onchange = function(this: HTMLInputElement) { rect.setLeft(+this.value).setCoords(); canvas.renderAll(); }; function updateControls() { - scaleControl.value = rect.getScaleX().toString(); angleControl.value = rect.getAngle().toString(); leftControl.value = rect.getLeft().toString(); @@ -263,7 +258,6 @@ function sample4() { }); } - declare module "fabric" { export interface CircleWithLineInfos extends Circle { line1?: Line; @@ -274,8 +268,8 @@ declare module "fabric" { } function sample5() { - var makeCircle = (left: number, top: number, line1?: fabric.Line, line2?: fabric.Line, line3?: fabric.Line, line4?: fabric.Line): fabric.Circle => { - var c = new fabric.Circle({ + const makeCircle = (left: number, top: number, line1?: fabric.Line, line2?: fabric.Line, line3?: fabric.Line, line4?: fabric.Line): fabric.Circle => { + const c = new fabric.Circle({ left, top, strokeWidth: 5, @@ -300,9 +294,9 @@ function sample5() { }); } - var canvas = new fabric.Canvas('c', { selection: false }); + const canvas = new fabric.Canvas('c', { selection: false }); - var line = makeLine([250, 125, 250, 175]), + const line = makeLine([250, 125, 250, 175]), line2 = makeLine([250, 175, 250, 250]), line3 = makeLine([250, 250, 300, 350]), line4 = makeLine([250, 250, 200, 350]), @@ -322,7 +316,7 @@ function sample5() { ); canvas.on('object:moving', e => { - var p = e.target; + const p = e.target; p.line1 && p.line1.set({ 'x2': p.left, 'y2': p.top }); p.line2 && p.line2.set({ 'x1': p.left, 'y1': p.top }); p.line3 && p.line3.set({ 'x1': p.left, 'y1': p.top }); @@ -332,9 +326,9 @@ function sample5() { } function sample6() { - var canvas = new fabric.Canvas('c'); + const canvas = new fabric.Canvas('c'); fabric.loadSVGFromURL('../assets/135.svg', objects => { - var obj = objects[0].scale(0.25); + const obj = objects[0].scale(0.25); canvas.centerObject(obj); canvas.add(obj); @@ -344,17 +338,15 @@ function sample6() { canvas.add(obj.clone(() => { }).set({ left: 480, top: 400, angle: 15 })); canvas.on('mouse:move', options => { - var p = canvas.getPointer(options.e); + const p = canvas.getPointer(options.e); canvas.forEachObject(obj => { - var distX = Math.abs(p.x - obj.left), + const distX = Math.abs(p.x - obj.left), distY = Math.abs(p.y - obj.top), dist = Math.round(Math.sqrt(Math.pow(distX, 2) + Math.pow(distY, 2))); obj.setOpacity(1 / (dist / 20)); }); - }); - }); } @@ -365,22 +357,20 @@ declare module "fabric" { } function sample7() { - - var canvas = new fabric.Canvas('c', { selection: false }); + const canvas = new fabric.Canvas('c', { selection: false }); setInterval(() => { fabric.Image.fromURL('../assets/ladybug.png', obj => { - var img = obj; + const img = obj; img.set('left', fabric.util.getRandomInt(200, 600)).set('top', -50); img.movingLeft = !!Math.round(Math.random()); canvas.add(img); }); }, 1000); - - var animate = (function animate() { + const animate = (function animate() { canvas.forEachObject(obj => { - var img = obj; + const img = obj; img.left += (img.movingLeft ? -1 : 1); img.top += 1; if (img.left > 900 || img.top > 500) { @@ -397,7 +387,6 @@ function sample7() { } function sample8() { - function pad(str: string, length: number): string { while (str.length < length) { str = '0' + str; @@ -405,7 +394,7 @@ function sample8() { return str; } - var getRandomInt = fabric.util.getRandomInt; + const getRandomInt = fabric.util.getRandomInt; function getRandomColor() { return ( @@ -423,18 +412,18 @@ function sample8() { (fabric.Object.prototype as any).cornersize = 30; } - var canvas = new fabric.Canvas('canvas'); + const canvas = new fabric.Canvas('canvas'); // canvas.controlsAboveOverlay = true; function updateComplexity() { setTimeout(() => { - var element = document.getElementById('complexity').childNodes[1]; + const element = document.getElementById('complexity').childNodes[1]; element.innerHTML = ' ' + canvas.complexity(); }, 100); } document.getElementById('commands').onclick = (ev: any) => { - var ev: any = ev || window.event; + ev = ev || window.event; if (ev.preventDefault) { ev.preventDefault(); @@ -442,12 +431,12 @@ function sample8() { ev.returnValue = false; } - var element: any = ev.target || ev.srcElement; + let element: any = ev.target || ev.srcElement; if (element.nodeName.toLowerCase() === 'strong') { element = element.parentNode; } - var className = element.className, + const className = element.className, offset = 50, left = fabric.util.getRandomInt(0 + offset, 700 - offset), top = fabric.util.getRandomInt(0 + offset, 500 - offset), @@ -455,7 +444,6 @@ function sample8() { width = fabric.util.getRandomInt(30, 50), opacity = ((min: number, max: number) => Math.random() * (max - min) + min)(0.5, 1); - switch (className) { case 'rect': canvas.add(new fabric.Rect({ @@ -519,11 +507,11 @@ function sample8() { break; case 'shape': - var id: any = element.id; + const id: any = element.id; const match = /\d+$/.exec(id); if (match) { fabric.loadSVGFromURL('../assets/' + match[0] + '.svg', (objects, options) => { - var loadedObject = fabric.util.groupSVGElements(objects, options); + const loadedObject = fabric.util.groupSVGElements(objects, options); loadedObject.set({ left, @@ -552,13 +540,12 @@ function sample8() { }; document.getElementById('execute').onclick = () => { - var code = ( document.getElementById('canvas-console')).value; + const code = ( document.getElementById('canvas-console')).value; if (!(/^\s+$/).test(code)) { eval(code); // tslint:disable-line:no-eval } }; - document.getElementById('rasterize').onclick = () => { if (!fabric.Canvas.supports('toDataURL')) { alert('This browser doesn\'t provide means to serialize canvas to an image'); @@ -567,14 +554,14 @@ function sample8() { } }; - var removeSelectedEl = document.getElementById('remove-selected'); + const removeSelectedEl = document.getElementById('remove-selected'); removeSelectedEl.onclick = () => { - var activeObject = canvas.getActiveObject(), + const activeObject = canvas.getActiveObject(), activeGroup = canvas.getActiveGroup(); if (activeObject) { canvas.remove(activeObject); } else if (activeGroup) { - var objectsInGroup = activeGroup.getObjects(); + const objectsInGroup = activeGroup.getObjects(); canvas.discardActiveGroup(); objectsInGroup.forEach(object => { canvas.remove(object); @@ -582,9 +569,9 @@ function sample8() { } }; - var supportsInputOfType = (type: string) => { + const supportsInputOfType = (type: string) => { return () => { - var el = document.createElement('input'); + const el = document.createElement('input'); try { el.type = type; } catch (err) { } @@ -592,18 +579,18 @@ function sample8() { }; }; - var supportsSlider = supportsInputOfType('range'), + const supportsSlider = supportsInputOfType('range'), supportsColorpicker = supportsInputOfType('color'); if (supportsSlider()) { (() => { - var controls = document.getElementById('controls'); + const controls = document.getElementById('controls'); - var sliderLabel = document.createElement('label'); + const sliderLabel = document.createElement('label'); sliderLabel.htmlFor = 'opacity'; sliderLabel.innerHTML = 'Opacity: '; - var slider = document.createElement('input'); + const slider = document.createElement('input'); try { slider.type = 'range'; } catch (err) { } @@ -616,7 +603,7 @@ function sample8() { canvas.calcOffset(); slider.onchange = function() { - var activeObject = canvas.getActiveObject(), + const activeObject = canvas.getActiveObject(), activeGroup = canvas.getActiveGroup(); if (activeObject || activeGroup) { @@ -629,14 +616,14 @@ function sample8() { if (supportsColorpicker()) { (() => { - var controls = document.getElementById('controls'); + const controls = document.getElementById('controls'); - var label = document.createElement('label'); + const label = document.createElement('label'); label.htmlFor = 'color'; label.innerHTML = 'Color: '; label.style.marginLeft = '10px'; - var colorpicker = document.createElement('input'); + const colorpicker = document.createElement('input'); colorpicker.type = 'color'; colorpicker.id = 'color'; colorpicker.style.width = '40px'; @@ -647,7 +634,7 @@ function sample8() { canvas.calcOffset(); colorpicker.onchange = function() { - var activeObject = canvas.getActiveObject(), + const activeObject = canvas.getActiveObject(), activeGroup = canvas.getActiveGroup(); if (activeObject || activeGroup) { @@ -658,9 +645,9 @@ function sample8() { })(); } - var lockHorizontallyEl = document.getElementById('lock-horizontally'); + const lockHorizontallyEl = document.getElementById('lock-horizontally'); lockHorizontallyEl.onclick = () => { - var activeObject: any = canvas.getActiveObject(); + const activeObject: any = canvas.getActiveObject(); if (activeObject) { activeObject.lockMovementX = !activeObject.lockMovementX; lockHorizontallyEl.innerHTML = activeObject.lockMovementX @@ -669,9 +656,9 @@ function sample8() { } }; - var lockVerticallyEl = document.getElementById('lock-vertically'); + const lockVerticallyEl = document.getElementById('lock-vertically'); lockVerticallyEl.onclick = () => { - var activeObject: any = canvas.getActiveObject(); + const activeObject: any = canvas.getActiveObject(); if (activeObject) { activeObject.lockMovementY = !activeObject.lockMovementY; lockVerticallyEl.innerHTML = activeObject.lockMovementY @@ -680,9 +667,9 @@ function sample8() { } }; - var lockScalingXEl = document.getElementById('lock-scaling-x'); + const lockScalingXEl = document.getElementById('lock-scaling-x'); lockScalingXEl.onclick = () => { - var activeObject: any = canvas.getActiveObject(); + const activeObject: any = canvas.getActiveObject(); if (activeObject) { activeObject.lockScalingX = !activeObject.lockScalingX; lockScalingXEl.innerHTML = activeObject.lockScalingX @@ -691,9 +678,9 @@ function sample8() { } }; - var lockScalingYEl = document.getElementById('lock-scaling-y'); + const lockScalingYEl = document.getElementById('lock-scaling-y'); lockScalingYEl.onclick = () => { - var activeObject: any = canvas.getActiveObject(); + const activeObject: any = canvas.getActiveObject(); if (activeObject) { activeObject.lockScalingY = !activeObject.lockScalingY; lockScalingYEl.innerHTML = activeObject.lockScalingY @@ -702,9 +689,9 @@ function sample8() { } }; - var lockRotationEl = document.getElementById('lock-rotation'); + const lockRotationEl = document.getElementById('lock-rotation'); lockRotationEl.onclick = () => { - var activeObject: any = canvas.getActiveObject(); + const activeObject: any = canvas.getActiveObject(); if (activeObject) { activeObject.lockRotation = !activeObject.lockRotation; lockRotationEl.innerHTML = activeObject.lockRotation @@ -713,9 +700,9 @@ function sample8() { } }; - var gradientifyBtn = document.getElementById('gradientify'); + const gradientifyBtn = document.getElementById('gradientify'); - var activeObjectButtons = [ + const activeObjectButtons = [ lockHorizontallyEl, lockVerticallyEl, lockScalingXEl, @@ -725,16 +712,16 @@ function sample8() { gradientifyBtn ]; - var opacityEl = document.getElementById('opacity'); + const opacityEl = document.getElementById('opacity'); if (opacityEl) { activeObjectButtons.push(opacityEl); } - var colorEl = document.getElementById('color'); + const colorEl = document.getElementById('color'); if (colorEl) { activeObjectButtons.push(colorEl); } - for (var i = activeObjectButtons.length; i--; ) { + for (let i = activeObjectButtons.length; i--; ) { activeObjectButtons[i]; } @@ -742,9 +729,9 @@ function sample8() { canvas.on('group:selected', onObjectSelected); function onObjectSelected(e: fabric.IEvent) { - var selectedObject = e.target; + const selectedObject = e.target; - for (var i = activeObjectButtons.length; i--; ) { + for (let i = activeObjectButtons.length; i--; ) { activeObjectButtons[i]; } @@ -756,18 +743,18 @@ function sample8() { } canvas.on('selection:cleared', e => { - for (var i = activeObjectButtons.length; i--; ) { + for (let i = activeObjectButtons.length; i--; ) { activeObjectButtons[i]; } }); - var drawingModeEl = document.getElementById('drawing-mode'), + const drawingModeEl = document.getElementById('drawing-mode'), drawingOptionsEl = document.getElementById('drawing-mode-options'), drawingColorEl = document.getElementById('drawing-color'), drawingLineWidthEl = document.getElementById('drawing-line-width'); drawingModeEl.onclick = () => { - var canvasWithDrawingMode: any = canvas; + const canvasWithDrawingMode: any = canvas; canvasWithDrawingMode.isDrawingMode = !canvasWithDrawingMode.isDrawingMode; if (canvasWithDrawingMode.isDrawingMode) { drawingModeEl.innerHTML = 'Cancel drawing mode'; @@ -794,12 +781,11 @@ function sample8() { canvas.freeDrawingColor = drawingColorEl.value; canvas.freeDrawingLineWidth = parseInt(drawingLineWidthEl.value, 10) || 1; - - var text = 'Lorem ipsum dolor sit amet,\nconsectetur adipisicing elit,\nsed do eiusmod tempor incididunt\nut labore et dolore magna aliqua.\n' + + const text = 'Lorem ipsum dolor sit amet,\nconsectetur adipisicing elit,\nsed do eiusmod tempor incididunt\nut labore et dolore magna aliqua.\n' + 'Ut enim ad minim veniam,\nquis nostrud exercitation ullamco\nlaboris nisi ut aliquip ex ea commodo consequat.'; document.getElementById('add-text').onclick = () => { - var textSample = new fabric.Text(text.slice(0, getRandomInt(0, text.length)), { + const textSample = new fabric.Text(text.slice(0, getRandomInt(0, text.length)), { left: getRandomInt(350, 400), top: getRandomInt(350, 400), fontFamily: 'helvetica', @@ -813,13 +799,12 @@ function sample8() { updateComplexity(); }; - document.onkeydown = e => { - var obj = canvas.getActiveObject() || canvas.getActiveGroup(); + const obj = canvas.getActiveObject() || canvas.getActiveGroup(); if (obj && e.keyCode === 8) { // this is horrible. need to fix, so that unified interface can be used if (obj.type === 'group') { - // var groupObjects = obj.getObjects(); + // const groupObjects = obj.getObjects(); // canvas.discardActiveGroup(); // groupObjects.forEach(function(obj) { // canvas.remove(obj); @@ -842,7 +827,7 @@ function sample8() { } gradientifyBtn.onclick = () => { - var obj = canvas.getActiveObject(); + const obj = canvas.getActiveObject(); if (obj) { obj.setGradient("fill", { x2: (getRandomInt(0, 1) ? 0 : obj.width), @@ -856,17 +841,17 @@ function sample8() { } }; - var textEl = document.getElementById('text'); + const textEl = document.getElementById('text'); if (textEl) { textEl.onfocus = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { this.value = ( activeObject).text; } }; textEl.onkeyup = function(e) { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject) { if (!this.value) { canvas.discardActiveObject(); @@ -878,11 +863,11 @@ function sample8() { }; } - var cmdUnderlineBtn = document.getElementById('text-cmd-underline'); + const cmdUnderlineBtn = document.getElementById('text-cmd-underline'); if (cmdUnderlineBtn) { activeObjectButtons.push(cmdUnderlineBtn); cmdUnderlineBtn.onclick = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.textDecoration = (activeObject.textDecoration === 'underline' ? '' : 'underline'); this.className = activeObject.textDecoration ? 'selected' : ''; @@ -891,11 +876,11 @@ function sample8() { }; } - var cmdLinethroughBtn = document.getElementById('text-cmd-linethrough'); + const cmdLinethroughBtn = document.getElementById('text-cmd-linethrough'); if (cmdLinethroughBtn) { activeObjectButtons.push(cmdLinethroughBtn); cmdLinethroughBtn.onclick = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.textDecoration = (activeObject.textDecoration === 'line-through' ? '' : 'line-through'); this.className = activeObject.textDecoration ? 'selected' : ''; @@ -904,11 +889,11 @@ function sample8() { }; } - var cmdOverlineBtn = document.getElementById('text-cmd-overline'); + const cmdOverlineBtn = document.getElementById('text-cmd-overline'); if (cmdOverlineBtn) { activeObjectButtons.push(cmdOverlineBtn); cmdOverlineBtn.onclick = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.textDecoration = (activeObject.textDecoration === 'overline' ? '' : 'overline'); this.className = activeObject.textDecoration ? 'selected' : ''; @@ -917,11 +902,11 @@ function sample8() { }; } - var cmdBoldBtn = document.getElementById('text-cmd-bold'); + const cmdBoldBtn = document.getElementById('text-cmd-bold'); if (cmdBoldBtn) { activeObjectButtons.push(cmdBoldBtn); cmdBoldBtn.onclick = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.fontWeight = (activeObject.fontWeight === 'bold' ? '' : 'bold'); this.className = activeObject.fontWeight ? 'selected' : ''; @@ -930,11 +915,11 @@ function sample8() { }; } - var cmdItalicBtn = document.getElementById('text-cmd-italic'); + const cmdItalicBtn = document.getElementById('text-cmd-italic'); if (cmdItalicBtn) { activeObjectButtons.push(cmdItalicBtn); cmdItalicBtn.onclick = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.fontStyle = (activeObject.fontStyle === 'italic' ? '' : 'italic'); this.className = activeObject.fontStyle ? 'selected' : ''; @@ -943,11 +928,11 @@ function sample8() { }; } - var cmdShadowBtn = document.getElementById('text-cmd-shadow'); + const cmdShadowBtn = document.getElementById('text-cmd-shadow'); if (cmdShadowBtn) { activeObjectButtons.push(cmdShadowBtn); cmdShadowBtn.onclick = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.shadow = !activeObject.shadow ? 'rgba(0,0,0,0.2) 2px 2px 10px' : ''; this.className = activeObject.shadow ? 'selected' : ''; @@ -956,11 +941,11 @@ function sample8() { }; } - var textAlignSwitch = document.getElementById('text-align'); + const textAlignSwitch = document.getElementById('text-align'); if (textAlignSwitch) { activeObjectButtons.push(textAlignSwitch); textAlignSwitch.onchange = function(this: HTMLInputElement) { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.textAlign = this.value.toLowerCase(); canvas.renderAll(); @@ -968,11 +953,11 @@ function sample8() { }; } - var fontFamilySwitch = document.getElementById('font-family'); + const fontFamilySwitch = document.getElementById('font-family'); if (fontFamilySwitch) { activeObjectButtons.push(fontFamilySwitch); fontFamilySwitch.onchange = function(this: HTMLInputElement) { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.fontFamily = this.value; canvas.renderAll(); @@ -980,10 +965,10 @@ function sample8() { }; } - var bgColorField = document.getElementById('text-bg-color'); + const bgColorField = document.getElementById('text-bg-color'); if (bgColorField) { bgColorField.onchange = function(this: HTMLInputElement) { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.backgroundColor = this.value; canvas.renderAll(); @@ -991,10 +976,10 @@ function sample8() { }; } - var strokeColorField = document.getElementById('text-stroke-color'); + const strokeColorField = document.getElementById('text-stroke-color'); if (strokeColorField) { strokeColorField.onchange = function(this: HTMLInputElement) { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.stroke = this.value; canvas.renderAll(); @@ -1004,9 +989,9 @@ function sample8() { if (supportsSlider) { (() => { - var container = document.getElementById('text-controls'); - var slider = document.createElement('input'); - var label = document.createElement('label'); + const container = document.getElementById('text-controls'); + const slider = document.createElement('input'); + const label = document.createElement('label'); label.innerHTML = 'Line height: '; try { slider.type = 'range'; } catch (err) { } slider.min = "0"; @@ -1017,7 +1002,7 @@ function sample8() { label.appendChild(slider); slider.title = "Line height"; slider.onchange = function() { - var activeObject = canvas.getActiveObject(); + const activeObject = canvas.getActiveObject(); if (activeObject && activeObject.type === 'text') { activeObject.lineHeight = +this.value; canvas.renderAll(); @@ -1031,9 +1016,9 @@ function sample8() { } document.getElementById('load-svg').onclick = () => { - var svg = ( document.getElementById('svg-console')).value; + const svg = ( document.getElementById('svg-console')).value; fabric.loadSVGFromString(svg, (objects, options) => { - var obj = fabric.util.groupSVGElements(objects, options); + const obj = fabric.util.groupSVGElements(objects, options); canvas.add(obj).centerObject(obj).renderAll(); obj.setCoords(); }); @@ -1041,7 +1026,7 @@ function sample8() { } function sample9() { - var canvas = new fabric.Canvas('c'); + const canvas = new fabric.Canvas('c'); canvas.setBackgroundImage('yolo.jpg', () => { "a"; }, { opacity: 45 }); canvas.setBackgroundImage('yolo.jpg', () => { "a"; }); } diff --git a/fabric/index.d.ts b/types/fabric/index.d.ts similarity index 99% rename from fabric/index.d.ts rename to types/fabric/index.d.ts index 881be190bd..27a4188f52 100644 --- a/fabric/index.d.ts +++ b/types/fabric/index.d.ts @@ -5,8 +5,8 @@ export as namespace fabric; -export var isLikelyNode: boolean; -export var isTouchSupported: boolean; +export const isLikelyNode: boolean; +export const isTouchSupported: boolean; ///////////////////////////////////////////////////////////// // farbic Functions @@ -1289,7 +1289,6 @@ export class StaticCanvas { */ fxStraightenObject(object: Object): StaticCanvas - static EMPTY_JSON: string; /** * Provides a way to check support of some of the canvas methods @@ -2997,8 +2996,8 @@ interface IRectOptions extends IObjectOptions { * Vertical border radius */ ry?: number; - } + export interface Rect extends IRectOptions {} export class Rect extends Object { /** @@ -3950,8 +3949,8 @@ export class BaseBrush { * @param {Object|String} [options] Options object or string (e.g. "2px 2px 10px rgba(0,0,0,0.2)") */ setShadow(options: string|any): BaseBrush; - } + export class CircleBrush extends BaseBrush { /** * Width of a brush @@ -3969,6 +3968,7 @@ export class CircleBrush extends BaseBrush { */ addPoint(pointer: any): Point } + export class SprayBrush extends BaseBrush { /** * Width of a brush @@ -4147,7 +4147,6 @@ interface IUtilArc { * @param {Number} y3 */ getBoundsOfCurve(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): Point[]; - } interface IUtilDomEvent { @@ -4298,7 +4297,6 @@ interface IUtilClass { * (be careful modifying objects defined here as this would affect all instances) */ createClass(properties?: any): void; - } interface IUtilObject { @@ -4517,7 +4515,7 @@ interface IUtilMisc { isTransparent(ctx: CanvasRenderingContext2D, x: number, y: number, tolerance: number): boolean; } -export var util: IUtil; +export const util: IUtil; interface IUtil extends IUtilAnimation, IUtilArc, IObservable, IUtilDomEvent, IUtilDomMisc, IUtilDomRequest, IUtilDomStyle, IUtilClass, IUtilMisc { ease: IUtilAnimEase; diff --git a/fabric/tsconfig.json b/types/fabric/tsconfig.json similarity index 100% rename from fabric/tsconfig.json rename to types/fabric/tsconfig.json diff --git a/fabric/tslint.json b/types/fabric/tslint.json similarity index 100% rename from fabric/tslint.json rename to types/fabric/tslint.json diff --git a/facebook-js-sdk/facebook-js-sdk-tests.ts b/types/facebook-js-sdk/facebook-js-sdk-tests.ts similarity index 100% rename from facebook-js-sdk/facebook-js-sdk-tests.ts rename to types/facebook-js-sdk/facebook-js-sdk-tests.ts diff --git a/facebook-js-sdk/index.d.ts b/types/facebook-js-sdk/index.d.ts similarity index 100% rename from facebook-js-sdk/index.d.ts rename to types/facebook-js-sdk/index.d.ts diff --git a/facebook-js-sdk/tsconfig.json b/types/facebook-js-sdk/tsconfig.json similarity index 100% rename from facebook-js-sdk/tsconfig.json rename to types/facebook-js-sdk/tsconfig.json diff --git a/facebook-pixel/facebook-pixel-tests.ts b/types/facebook-pixel/facebook-pixel-tests.ts similarity index 100% rename from facebook-pixel/facebook-pixel-tests.ts rename to types/facebook-pixel/facebook-pixel-tests.ts diff --git a/facebook-pixel/index.d.ts b/types/facebook-pixel/index.d.ts similarity index 100% rename from facebook-pixel/index.d.ts rename to types/facebook-pixel/index.d.ts diff --git a/facebook-pixel/tsconfig.json b/types/facebook-pixel/tsconfig.json similarity index 100% rename from facebook-pixel/tsconfig.json rename to types/facebook-pixel/tsconfig.json diff --git a/faker/faker-tests.ts b/types/faker/faker-tests.ts similarity index 100% rename from faker/faker-tests.ts rename to types/faker/faker-tests.ts diff --git a/faker/index.d.ts b/types/faker/index.d.ts similarity index 100% rename from faker/index.d.ts rename to types/faker/index.d.ts diff --git a/faker/tsconfig.json b/types/faker/tsconfig.json similarity index 100% rename from faker/tsconfig.json rename to types/faker/tsconfig.json diff --git a/faker/v3/faker-tests.ts b/types/faker/v3/faker-tests.ts similarity index 100% rename from faker/v3/faker-tests.ts rename to types/faker/v3/faker-tests.ts diff --git a/faker/v3/index.d.ts b/types/faker/v3/index.d.ts similarity index 100% rename from faker/v3/index.d.ts rename to types/faker/v3/index.d.ts diff --git a/faker/v3/tsconfig.json b/types/faker/v3/tsconfig.json similarity index 100% rename from faker/v3/tsconfig.json rename to types/faker/v3/tsconfig.json diff --git a/falcor-express/falcor-express-tests.ts b/types/falcor-express/falcor-express-tests.ts similarity index 100% rename from falcor-express/falcor-express-tests.ts rename to types/falcor-express/falcor-express-tests.ts diff --git a/falcor-express/index.d.ts b/types/falcor-express/index.d.ts similarity index 100% rename from falcor-express/index.d.ts rename to types/falcor-express/index.d.ts diff --git a/falcor-express/tsconfig.json b/types/falcor-express/tsconfig.json similarity index 100% rename from falcor-express/tsconfig.json rename to types/falcor-express/tsconfig.json diff --git a/falcor-http-datasource/falcor-http-datasource-tests.ts b/types/falcor-http-datasource/falcor-http-datasource-tests.ts similarity index 100% rename from falcor-http-datasource/falcor-http-datasource-tests.ts rename to types/falcor-http-datasource/falcor-http-datasource-tests.ts diff --git a/falcor-http-datasource/index.d.ts b/types/falcor-http-datasource/index.d.ts similarity index 100% rename from falcor-http-datasource/index.d.ts rename to types/falcor-http-datasource/index.d.ts diff --git a/falcor-http-datasource/tsconfig.json b/types/falcor-http-datasource/tsconfig.json similarity index 100% rename from falcor-http-datasource/tsconfig.json rename to types/falcor-http-datasource/tsconfig.json diff --git a/falcor-json-graph/falcor-json-graph-tests.ts b/types/falcor-json-graph/falcor-json-graph-tests.ts similarity index 100% rename from falcor-json-graph/falcor-json-graph-tests.ts rename to types/falcor-json-graph/falcor-json-graph-tests.ts diff --git a/falcor-json-graph/index.d.ts b/types/falcor-json-graph/index.d.ts similarity index 100% rename from falcor-json-graph/index.d.ts rename to types/falcor-json-graph/index.d.ts diff --git a/falcor-json-graph/tsconfig.json b/types/falcor-json-graph/tsconfig.json similarity index 100% rename from falcor-json-graph/tsconfig.json rename to types/falcor-json-graph/tsconfig.json diff --git a/falcor-router/falcor-router-tests.ts b/types/falcor-router/falcor-router-tests.ts similarity index 55% rename from falcor-router/falcor-router-tests.ts rename to types/falcor-router/falcor-router-tests.ts index 5f5bdca0e4..7358ab2e02 100644 --- a/falcor-router/falcor-router-tests.ts +++ b/types/falcor-router/falcor-router-tests.ts @@ -2,6 +2,7 @@ import falcor = require('falcor'); import Router = require('falcor-router'); +import falcorJsonGraph = require('falcor-json-graph'); new Router([]); new Router([], {}); @@ -100,3 +101,76 @@ new Router([{ } }]); +new Router([{ + route: 'todos.new', + call(callpath, args) { + return {path: 'json.todosById.1234.name', value: 'Buy cheese'}; + } +}]); + +new Router([{ + route: 'todos.new', + call(callpath, args) { + return falcorJsonGraph.pathInvalidation('json.todos.length'); + } +}]); + +new Router([{ + route: 'todos.new', + call(callpath, args) { + return [ + falcorJsonGraph.pathInvalidation('json.todos.length'), + {path: 'json.todosById.1234.name', value: 'Buy cheese'} + ] + } +}]); + +new Router([{ + route: 'todos.new', + call(callpath, args) { + return new Promise((resolve, reject): void => { + resolve([ + falcorJsonGraph.pathInvalidation('json.todos.length'), + {path: 'json.todosById.1234.name', value: 'Buy cheese'} + ]); + }); + } +}]); + +new Router([{ + route: 'todos.new', + call(callpath, args) { + return { + paths: [['json', 'todosById', '1234', 'name']], + jsonGraph: { + json: { + todosById: { + 1234: { + name: 'Buy cheese' + } + } + } + } + }; + } +}]); + +new Router([{ + route: 'todos.new', + call(callpath, args) { + return new Promise((resolve, reject): void => { + resolve({ + paths: [['json', 'todosById', '1234', 'name']], + jsonGraph: { + json: { + todosById: { + 1234: { + name: 'Buy cheese' + } + } + } + } + }); + }); + } +}]); diff --git a/falcor-router/index.d.ts b/types/falcor-router/index.d.ts similarity index 81% rename from falcor-router/index.d.ts rename to types/falcor-router/index.d.ts index 659f45767f..daef26f379 100644 --- a/falcor-router/index.d.ts +++ b/types/falcor-router/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for falcor-router 0.4.0 // Project: https://github.com/Netflix/falcor-router -// Definitions by: Quramy +// Definitions by: Quramy , cdhgee // Definitions: https://github.com/borisyankov/DefinitelyTyped /// @@ -34,7 +34,7 @@ declare namespace FalcorRouter { type RoutePathSet = FalcorJsonGraph.PathSet; interface CallRoute extends Route { - call(callPath: RoutePathSet, args: Array): RouteResult | Promise; + call(callPath: RoutePathSet, args: Array): CallRouteResult | Promise; } interface GetRoute extends Route { @@ -47,6 +47,7 @@ declare namespace FalcorRouter { type RouteDefinition = GetRoute | SetRoute | CallRoute; type RouteResult = FalcorJsonGraph.PathValue | Array | FalcorJsonGraph.JSONEnvelope; + type CallRouteResult = FalcorJsonGraph.PathValue | FalcorJsonGraph.InvalidPath | Array | FalcorJsonGraph.JSONGraphEnvelope; interface RouterOptions { debug?: boolean; diff --git a/falcor-router/tsconfig.json b/types/falcor-router/tsconfig.json similarity index 100% rename from falcor-router/tsconfig.json rename to types/falcor-router/tsconfig.json diff --git a/falcor/index.d.ts b/types/falcor/index.d.ts similarity index 100% rename from falcor/index.d.ts rename to types/falcor/index.d.ts diff --git a/falcor/test/browser.ts b/types/falcor/test/browser.ts similarity index 100% rename from falcor/test/browser.ts rename to types/falcor/test/browser.ts diff --git a/falcor/test/index.ts b/types/falcor/test/index.ts similarity index 100% rename from falcor/test/index.ts rename to types/falcor/test/index.ts diff --git a/falcor/tsconfig.json b/types/falcor/tsconfig.json similarity index 100% rename from falcor/tsconfig.json rename to types/falcor/tsconfig.json diff --git a/falcor/tslint.json b/types/falcor/tslint.json similarity index 100% rename from falcor/tslint.json rename to types/falcor/tslint.json diff --git a/famous/famous-tests.ts b/types/famous/famous-tests.ts similarity index 100% rename from famous/famous-tests.ts rename to types/famous/famous-tests.ts diff --git a/famous/index.d.ts b/types/famous/index.d.ts similarity index 100% rename from famous/index.d.ts rename to types/famous/index.d.ts diff --git a/famous/tsconfig.json b/types/famous/tsconfig.json similarity index 100% rename from famous/tsconfig.json rename to types/famous/tsconfig.json diff --git a/fancybox/fancybox-tests.ts b/types/fancybox/fancybox-tests.ts similarity index 100% rename from fancybox/fancybox-tests.ts rename to types/fancybox/fancybox-tests.ts diff --git a/fancybox/index.d.ts b/types/fancybox/index.d.ts similarity index 100% rename from fancybox/index.d.ts rename to types/fancybox/index.d.ts diff --git a/fancybox/tsconfig.json b/types/fancybox/tsconfig.json similarity index 100% rename from fancybox/tsconfig.json rename to types/fancybox/tsconfig.json diff --git a/farbtastic/farbtastic-tests.ts b/types/farbtastic/farbtastic-tests.ts similarity index 100% rename from farbtastic/farbtastic-tests.ts rename to types/farbtastic/farbtastic-tests.ts diff --git a/farbtastic/index.d.ts b/types/farbtastic/index.d.ts similarity index 100% rename from farbtastic/index.d.ts rename to types/farbtastic/index.d.ts diff --git a/farbtastic/tsconfig.json b/types/farbtastic/tsconfig.json similarity index 100% rename from farbtastic/tsconfig.json rename to types/farbtastic/tsconfig.json diff --git a/fast-json-patch/fast-json-patch-tests.ts b/types/fast-json-patch/fast-json-patch-tests.ts similarity index 100% rename from fast-json-patch/fast-json-patch-tests.ts rename to types/fast-json-patch/fast-json-patch-tests.ts diff --git a/fast-json-patch/index.d.ts b/types/fast-json-patch/index.d.ts similarity index 100% rename from fast-json-patch/index.d.ts rename to types/fast-json-patch/index.d.ts diff --git a/fast-json-patch/tsconfig.json b/types/fast-json-patch/tsconfig.json similarity index 100% rename from fast-json-patch/tsconfig.json rename to types/fast-json-patch/tsconfig.json diff --git a/fast-levenshtein/fast-levenshtein-tests.ts b/types/fast-levenshtein/fast-levenshtein-tests.ts similarity index 100% rename from fast-levenshtein/fast-levenshtein-tests.ts rename to types/fast-levenshtein/fast-levenshtein-tests.ts diff --git a/fast-levenshtein/index.d.ts b/types/fast-levenshtein/index.d.ts similarity index 100% rename from fast-levenshtein/index.d.ts rename to types/fast-levenshtein/index.d.ts diff --git a/fast-levenshtein/tsconfig.json b/types/fast-levenshtein/tsconfig.json similarity index 100% rename from fast-levenshtein/tsconfig.json rename to types/fast-levenshtein/tsconfig.json diff --git a/fast-simplex-noise/fast-simplex-noise-tests.ts b/types/fast-simplex-noise/fast-simplex-noise-tests.ts similarity index 100% rename from fast-simplex-noise/fast-simplex-noise-tests.ts rename to types/fast-simplex-noise/fast-simplex-noise-tests.ts diff --git a/fast-simplex-noise/index.d.ts b/types/fast-simplex-noise/index.d.ts similarity index 100% rename from fast-simplex-noise/index.d.ts rename to types/fast-simplex-noise/index.d.ts diff --git a/fast-simplex-noise/tsconfig.json b/types/fast-simplex-noise/tsconfig.json similarity index 100% rename from fast-simplex-noise/tsconfig.json rename to types/fast-simplex-noise/tsconfig.json diff --git a/fast-stats/fast-stats-tests.ts b/types/fast-stats/fast-stats-tests.ts similarity index 100% rename from fast-stats/fast-stats-tests.ts rename to types/fast-stats/fast-stats-tests.ts diff --git a/fast-stats/index.d.ts b/types/fast-stats/index.d.ts similarity index 100% rename from fast-stats/index.d.ts rename to types/fast-stats/index.d.ts diff --git a/fast-stats/tsconfig.json b/types/fast-stats/tsconfig.json similarity index 100% rename from fast-stats/tsconfig.json rename to types/fast-stats/tsconfig.json diff --git a/fastclick/fastclick-tests.ts b/types/fastclick/fastclick-tests.ts similarity index 100% rename from fastclick/fastclick-tests.ts rename to types/fastclick/fastclick-tests.ts diff --git a/fastclick/index.d.ts b/types/fastclick/index.d.ts similarity index 100% rename from fastclick/index.d.ts rename to types/fastclick/index.d.ts diff --git a/fastclick/tsconfig.json b/types/fastclick/tsconfig.json similarity index 100% rename from fastclick/tsconfig.json rename to types/fastclick/tsconfig.json diff --git a/favico.js/favico.js-tests.ts b/types/favico.js/favico.js-tests.ts similarity index 100% rename from favico.js/favico.js-tests.ts rename to types/favico.js/favico.js-tests.ts diff --git a/favico.js/index.d.ts b/types/favico.js/index.d.ts similarity index 100% rename from favico.js/index.d.ts rename to types/favico.js/index.d.ts diff --git a/favico.js/tsconfig.json b/types/favico.js/tsconfig.json similarity index 100% rename from favico.js/tsconfig.json rename to types/favico.js/tsconfig.json diff --git a/fb/fb-tests.ts b/types/fb/fb-tests.ts similarity index 100% rename from fb/fb-tests.ts rename to types/fb/fb-tests.ts diff --git a/fb/index.d.ts b/types/fb/index.d.ts similarity index 100% rename from fb/index.d.ts rename to types/fb/index.d.ts diff --git a/fb/tsconfig.json b/types/fb/tsconfig.json similarity index 100% rename from fb/tsconfig.json rename to types/fb/tsconfig.json diff --git a/fbemitter/fbemitter-tests.ts b/types/fbemitter/fbemitter-tests.ts similarity index 100% rename from fbemitter/fbemitter-tests.ts rename to types/fbemitter/fbemitter-tests.ts diff --git a/fbemitter/index.d.ts b/types/fbemitter/index.d.ts similarity index 100% rename from fbemitter/index.d.ts rename to types/fbemitter/index.d.ts diff --git a/fbemitter/tsconfig.json b/types/fbemitter/tsconfig.json similarity index 100% rename from fbemitter/tsconfig.json rename to types/fbemitter/tsconfig.json diff --git a/featherlight/featherlight-tests.ts b/types/featherlight/featherlight-tests.ts similarity index 100% rename from featherlight/featherlight-tests.ts rename to types/featherlight/featherlight-tests.ts diff --git a/featherlight/index.d.ts b/types/featherlight/index.d.ts similarity index 100% rename from featherlight/index.d.ts rename to types/featherlight/index.d.ts diff --git a/featherlight/tsconfig.json b/types/featherlight/tsconfig.json similarity index 100% rename from featherlight/tsconfig.json rename to types/featherlight/tsconfig.json diff --git a/fetch-jsonp/fetch-jsonp-tests.ts b/types/fetch-jsonp/fetch-jsonp-tests.ts similarity index 100% rename from fetch-jsonp/fetch-jsonp-tests.ts rename to types/fetch-jsonp/fetch-jsonp-tests.ts diff --git a/fetch-jsonp/index.d.ts b/types/fetch-jsonp/index.d.ts similarity index 100% rename from fetch-jsonp/index.d.ts rename to types/fetch-jsonp/index.d.ts diff --git a/fetch-jsonp/tsconfig.json b/types/fetch-jsonp/tsconfig.json similarity index 100% rename from fetch-jsonp/tsconfig.json rename to types/fetch-jsonp/tsconfig.json diff --git a/fetch-jsonp/tslint.json b/types/fetch-jsonp/tslint.json similarity index 100% rename from fetch-jsonp/tslint.json rename to types/fetch-jsonp/tslint.json diff --git a/fetch-mock/fetch-mock-tests.ts b/types/fetch-mock/fetch-mock-tests.ts similarity index 100% rename from fetch-mock/fetch-mock-tests.ts rename to types/fetch-mock/fetch-mock-tests.ts diff --git a/fetch-mock/index.d.ts b/types/fetch-mock/index.d.ts similarity index 100% rename from fetch-mock/index.d.ts rename to types/fetch-mock/index.d.ts diff --git a/fetch-mock/tsconfig.json b/types/fetch-mock/tsconfig.json similarity index 100% rename from fetch-mock/tsconfig.json rename to types/fetch-mock/tsconfig.json diff --git a/fetch-mock/tslint.json b/types/fetch-mock/tslint.json similarity index 100% rename from fetch-mock/tslint.json rename to types/fetch-mock/tslint.json diff --git a/fetch.io/fetch.io-tests.ts b/types/fetch.io/fetch.io-tests.ts similarity index 64% rename from fetch.io/fetch.io-tests.ts rename to types/fetch.io/fetch.io-tests.ts index 4e14a7a9a9..538da8e74b 100644 --- a/fetch.io/fetch.io-tests.ts +++ b/types/fetch.io/fetch.io-tests.ts @@ -1,60 +1,59 @@ +import Fetch from 'fetch.io'; -import Fetch from 'fetch.io' - -const request = new Fetch() +const request = new Fetch(); request .get('') .query({}) - .json() + .json(); request .delete('') - .json() + .json(); request .head('') - .json() + .json(); request .options('') - .json() + .json(); request .put('') - .json() + .json(); request .config('key', 'value') - .json() + .json(); request .config({key: 'value'}) - .json() + .json(); request .config('set', 'value') - .json() + .json(); request .set({key: 'value'}) - .json() + .json(); request .type('json') - .json() + .json(); request .get('') .query({}) - .text() + .text(); request .get('') .query({}) - .then(() => {}) + .then(() => {}); request .post('') .send({}) - .json() + .json(); diff --git a/fetch.io/index.d.ts b/types/fetch.io/index.d.ts similarity index 100% rename from fetch.io/index.d.ts rename to types/fetch.io/index.d.ts diff --git a/fetch.io/tsconfig.json b/types/fetch.io/tsconfig.json similarity index 100% rename from fetch.io/tsconfig.json rename to types/fetch.io/tsconfig.json diff --git a/fetch.io/tslint.json b/types/fetch.io/tslint.json similarity index 100% rename from fetch.io/tslint.json rename to types/fetch.io/tslint.json diff --git a/ffi/ffi-tests.ts b/types/ffi/ffi-tests.ts similarity index 100% rename from ffi/ffi-tests.ts rename to types/ffi/ffi-tests.ts diff --git a/ffi/index.d.ts b/types/ffi/index.d.ts similarity index 100% rename from ffi/index.d.ts rename to types/ffi/index.d.ts diff --git a/ffi/node-ffi-buffer.d.ts b/types/ffi/node-ffi-buffer.d.ts similarity index 100% rename from ffi/node-ffi-buffer.d.ts rename to types/ffi/node-ffi-buffer.d.ts diff --git a/ffi/tsconfig.json b/types/ffi/tsconfig.json similarity index 100% rename from ffi/tsconfig.json rename to types/ffi/tsconfig.json diff --git a/fhir/fhir-tests.ts b/types/fhir/fhir-tests.ts similarity index 100% rename from fhir/fhir-tests.ts rename to types/fhir/fhir-tests.ts diff --git a/fhir/index.d.ts b/types/fhir/index.d.ts similarity index 100% rename from fhir/index.d.ts rename to types/fhir/index.d.ts diff --git a/fhir/tsconfig.json b/types/fhir/tsconfig.json similarity index 100% rename from fhir/tsconfig.json rename to types/fhir/tsconfig.json diff --git a/fibers/fibers-tests.ts b/types/fibers/fibers-tests.ts similarity index 100% rename from fibers/fibers-tests.ts rename to types/fibers/fibers-tests.ts diff --git a/fibers/index.d.ts b/types/fibers/index.d.ts similarity index 100% rename from fibers/index.d.ts rename to types/fibers/index.d.ts diff --git a/fibers/tsconfig.json b/types/fibers/tsconfig.json similarity index 100% rename from fibers/tsconfig.json rename to types/fibers/tsconfig.json diff --git a/field/field-tests.ts b/types/field/field-tests.ts similarity index 100% rename from field/field-tests.ts rename to types/field/field-tests.ts diff --git a/field/index.d.ts b/types/field/index.d.ts similarity index 100% rename from field/index.d.ts rename to types/field/index.d.ts diff --git a/field/tsconfig.json b/types/field/tsconfig.json similarity index 100% rename from field/tsconfig.json rename to types/field/tsconfig.json diff --git a/file-saver/file-saver-tests.ts b/types/file-saver/file-saver-tests.ts similarity index 100% rename from file-saver/file-saver-tests.ts rename to types/file-saver/file-saver-tests.ts diff --git a/file-saver/index.d.ts b/types/file-saver/index.d.ts similarity index 100% rename from file-saver/index.d.ts rename to types/file-saver/index.d.ts diff --git a/file-saver/tsconfig.json b/types/file-saver/tsconfig.json similarity index 100% rename from file-saver/tsconfig.json rename to types/file-saver/tsconfig.json diff --git a/file-type/file-type-tests.ts b/types/file-type/file-type-tests.ts similarity index 100% rename from file-type/file-type-tests.ts rename to types/file-type/file-type-tests.ts diff --git a/file-type/index.d.ts b/types/file-type/index.d.ts similarity index 100% rename from file-type/index.d.ts rename to types/file-type/index.d.ts diff --git a/file-type/tsconfig.json b/types/file-type/tsconfig.json similarity index 100% rename from file-type/tsconfig.json rename to types/file-type/tsconfig.json diff --git a/file-url/file-url-tests.ts b/types/file-url/file-url-tests.ts similarity index 100% rename from file-url/file-url-tests.ts rename to types/file-url/file-url-tests.ts diff --git a/file-url/index.d.ts b/types/file-url/index.d.ts similarity index 100% rename from file-url/index.d.ts rename to types/file-url/index.d.ts diff --git a/file-url/tsconfig.json b/types/file-url/tsconfig.json similarity index 100% rename from file-url/tsconfig.json rename to types/file-url/tsconfig.json diff --git a/filesize/filesize-tests.ts b/types/filesize/filesize-tests.ts similarity index 100% rename from filesize/filesize-tests.ts rename to types/filesize/filesize-tests.ts diff --git a/filesize/index.d.ts b/types/filesize/index.d.ts similarity index 100% rename from filesize/index.d.ts rename to types/filesize/index.d.ts diff --git a/filesize/tsconfig.json b/types/filesize/tsconfig.json similarity index 100% rename from filesize/tsconfig.json rename to types/filesize/tsconfig.json diff --git a/filesystem/filesystem-tests.ts b/types/filesystem/filesystem-tests.ts similarity index 100% rename from filesystem/filesystem-tests.ts rename to types/filesystem/filesystem-tests.ts diff --git a/filesystem/index.d.ts b/types/filesystem/index.d.ts similarity index 100% rename from filesystem/index.d.ts rename to types/filesystem/index.d.ts diff --git a/filesystem/tsconfig.json b/types/filesystem/tsconfig.json similarity index 100% rename from filesystem/tsconfig.json rename to types/filesystem/tsconfig.json diff --git a/filewriter/filewriter-tests.ts b/types/filewriter/filewriter-tests.ts similarity index 100% rename from filewriter/filewriter-tests.ts rename to types/filewriter/filewriter-tests.ts diff --git a/filewriter/index.d.ts b/types/filewriter/index.d.ts similarity index 100% rename from filewriter/index.d.ts rename to types/filewriter/index.d.ts diff --git a/filewriter/tsconfig.json b/types/filewriter/tsconfig.json similarity index 100% rename from filewriter/tsconfig.json rename to types/filewriter/tsconfig.json diff --git a/fill-pdf/fill-pdf-tests.ts b/types/fill-pdf/fill-pdf-tests.ts similarity index 100% rename from fill-pdf/fill-pdf-tests.ts rename to types/fill-pdf/fill-pdf-tests.ts diff --git a/fill-pdf/index.d.ts b/types/fill-pdf/index.d.ts similarity index 100% rename from fill-pdf/index.d.ts rename to types/fill-pdf/index.d.ts diff --git a/fill-pdf/tsconfig.json b/types/fill-pdf/tsconfig.json similarity index 100% rename from fill-pdf/tsconfig.json rename to types/fill-pdf/tsconfig.json diff --git a/finalhandler/finalhandler-tests.ts b/types/finalhandler/finalhandler-tests.ts similarity index 100% rename from finalhandler/finalhandler-tests.ts rename to types/finalhandler/finalhandler-tests.ts diff --git a/finalhandler/index.d.ts b/types/finalhandler/index.d.ts similarity index 100% rename from finalhandler/index.d.ts rename to types/finalhandler/index.d.ts diff --git a/finalhandler/tsconfig.json b/types/finalhandler/tsconfig.json similarity index 100% rename from finalhandler/tsconfig.json rename to types/finalhandler/tsconfig.json diff --git a/finch/finch-tests.ts b/types/finch/finch-tests.ts similarity index 100% rename from finch/finch-tests.ts rename to types/finch/finch-tests.ts diff --git a/finch/index.d.ts b/types/finch/index.d.ts similarity index 100% rename from finch/index.d.ts rename to types/finch/index.d.ts diff --git a/finch/tsconfig.json b/types/finch/tsconfig.json similarity index 100% rename from finch/tsconfig.json rename to types/finch/tsconfig.json diff --git a/findup-sync/findup-sync-tests.ts b/types/findup-sync/findup-sync-tests.ts similarity index 100% rename from findup-sync/findup-sync-tests.ts rename to types/findup-sync/findup-sync-tests.ts diff --git a/findup-sync/index.d.ts b/types/findup-sync/index.d.ts similarity index 100% rename from findup-sync/index.d.ts rename to types/findup-sync/index.d.ts diff --git a/findup-sync/tsconfig.json b/types/findup-sync/tsconfig.json similarity index 100% rename from findup-sync/tsconfig.json rename to types/findup-sync/tsconfig.json diff --git a/fingerprintjs/fingerprintjs-tests.ts b/types/fingerprintjs/fingerprintjs-tests.ts similarity index 100% rename from fingerprintjs/fingerprintjs-tests.ts rename to types/fingerprintjs/fingerprintjs-tests.ts diff --git a/fingerprintjs/index.d.ts b/types/fingerprintjs/index.d.ts similarity index 100% rename from fingerprintjs/index.d.ts rename to types/fingerprintjs/index.d.ts diff --git a/fingerprintjs/tsconfig.json b/types/fingerprintjs/tsconfig.json similarity index 100% rename from fingerprintjs/tsconfig.json rename to types/fingerprintjs/tsconfig.json diff --git a/firebase-client/firebase-client-tests.ts b/types/firebase-client/firebase-client-tests.ts similarity index 100% rename from firebase-client/firebase-client-tests.ts rename to types/firebase-client/firebase-client-tests.ts diff --git a/firebase-client/index.d.ts b/types/firebase-client/index.d.ts similarity index 100% rename from firebase-client/index.d.ts rename to types/firebase-client/index.d.ts diff --git a/firebase-client/tsconfig.json b/types/firebase-client/tsconfig.json similarity index 100% rename from firebase-client/tsconfig.json rename to types/firebase-client/tsconfig.json diff --git a/firebase-token-generator/firebase-token-generator-tests.ts b/types/firebase-token-generator/firebase-token-generator-tests.ts similarity index 100% rename from firebase-token-generator/firebase-token-generator-tests.ts rename to types/firebase-token-generator/firebase-token-generator-tests.ts diff --git a/firebase-token-generator/index.d.ts b/types/firebase-token-generator/index.d.ts similarity index 100% rename from firebase-token-generator/index.d.ts rename to types/firebase-token-generator/index.d.ts diff --git a/firebase-token-generator/tsconfig.json b/types/firebase-token-generator/tsconfig.json similarity index 100% rename from firebase-token-generator/tsconfig.json rename to types/firebase-token-generator/tsconfig.json diff --git a/firebase/firebase-simplelogin.d.ts b/types/firebase/firebase-simplelogin.d.ts similarity index 100% rename from firebase/firebase-simplelogin.d.ts rename to types/firebase/firebase-simplelogin.d.ts diff --git a/firebase/index.d.ts b/types/firebase/index.d.ts similarity index 100% rename from firebase/index.d.ts rename to types/firebase/index.d.ts diff --git a/firebase/test/index.ts b/types/firebase/test/index.ts similarity index 100% rename from firebase/test/index.ts rename to types/firebase/test/index.ts diff --git a/firebase/test/simplelogin.ts b/types/firebase/test/simplelogin.ts similarity index 100% rename from firebase/test/simplelogin.ts rename to types/firebase/test/simplelogin.ts diff --git a/firebase/tsconfig.json b/types/firebase/tsconfig.json similarity index 100% rename from firebase/tsconfig.json rename to types/firebase/tsconfig.json diff --git a/firefox/firefox-tests.ts b/types/firefox/firefox-tests.ts similarity index 100% rename from firefox/firefox-tests.ts rename to types/firefox/firefox-tests.ts diff --git a/firefox/index.d.ts b/types/firefox/index.d.ts similarity index 100% rename from firefox/index.d.ts rename to types/firefox/index.d.ts diff --git a/firefox/tsconfig.json b/types/firefox/tsconfig.json similarity index 100% rename from firefox/tsconfig.json rename to types/firefox/tsconfig.json diff --git a/firmata/firmata-tests.ts b/types/firmata/firmata-tests.ts similarity index 100% rename from firmata/firmata-tests.ts rename to types/firmata/firmata-tests.ts diff --git a/firmata/index.d.ts b/types/firmata/index.d.ts similarity index 100% rename from firmata/index.d.ts rename to types/firmata/index.d.ts diff --git a/firmata/tsconfig.json b/types/firmata/tsconfig.json similarity index 100% rename from firmata/tsconfig.json rename to types/firmata/tsconfig.json diff --git a/firmata/tslint.json b/types/firmata/tslint.json similarity index 100% rename from firmata/tslint.json rename to types/firmata/tslint.json diff --git a/first-mate/.editorconfig b/types/first-mate/.editorconfig similarity index 100% rename from first-mate/.editorconfig rename to types/first-mate/.editorconfig diff --git a/first-mate/first-mate-tests.ts b/types/first-mate/first-mate-tests.ts similarity index 100% rename from first-mate/first-mate-tests.ts rename to types/first-mate/first-mate-tests.ts diff --git a/first-mate/index.d.ts b/types/first-mate/index.d.ts similarity index 100% rename from first-mate/index.d.ts rename to types/first-mate/index.d.ts diff --git a/first-mate/tsconfig.json b/types/first-mate/tsconfig.json similarity index 100% rename from first-mate/tsconfig.json rename to types/first-mate/tsconfig.json diff --git a/fixed-data-table/fixed-data-table-tests.tsx b/types/fixed-data-table/fixed-data-table-tests.tsx similarity index 100% rename from fixed-data-table/fixed-data-table-tests.tsx rename to types/fixed-data-table/fixed-data-table-tests.tsx diff --git a/fixed-data-table/index.d.ts b/types/fixed-data-table/index.d.ts similarity index 100% rename from fixed-data-table/index.d.ts rename to types/fixed-data-table/index.d.ts diff --git a/fixed-data-table/tsconfig.json b/types/fixed-data-table/tsconfig.json similarity index 100% rename from fixed-data-table/tsconfig.json rename to types/fixed-data-table/tsconfig.json diff --git a/flake-idgen/flake-idgen-tests.ts b/types/flake-idgen/flake-idgen-tests.ts similarity index 100% rename from flake-idgen/flake-idgen-tests.ts rename to types/flake-idgen/flake-idgen-tests.ts diff --git a/flake-idgen/index.d.ts b/types/flake-idgen/index.d.ts similarity index 100% rename from flake-idgen/index.d.ts rename to types/flake-idgen/index.d.ts diff --git a/flake-idgen/tsconfig.json b/types/flake-idgen/tsconfig.json similarity index 100% rename from flake-idgen/tsconfig.json rename to types/flake-idgen/tsconfig.json diff --git a/flat/flat-tests.ts b/types/flat/flat-tests.ts similarity index 100% rename from flat/flat-tests.ts rename to types/flat/flat-tests.ts diff --git a/flat/index.d.ts b/types/flat/index.d.ts similarity index 100% rename from flat/index.d.ts rename to types/flat/index.d.ts diff --git a/flat/tsconfig.json b/types/flat/tsconfig.json similarity index 100% rename from flat/tsconfig.json rename to types/flat/tsconfig.json diff --git a/flatpickr/flatpickr-tests.ts b/types/flatpickr/flatpickr-tests.ts similarity index 100% rename from flatpickr/flatpickr-tests.ts rename to types/flatpickr/flatpickr-tests.ts diff --git a/flatpickr/index.d.ts b/types/flatpickr/index.d.ts similarity index 100% rename from flatpickr/index.d.ts rename to types/flatpickr/index.d.ts diff --git a/flatpickr/tsconfig.json b/types/flatpickr/tsconfig.json similarity index 100% rename from flatpickr/tsconfig.json rename to types/flatpickr/tsconfig.json diff --git a/flatpickr/tslint.json b/types/flatpickr/tslint.json similarity index 100% rename from flatpickr/tslint.json rename to types/flatpickr/tslint.json diff --git a/flexslider/flexslider-tests.ts b/types/flexslider/flexslider-tests.ts similarity index 100% rename from flexslider/flexslider-tests.ts rename to types/flexslider/flexslider-tests.ts diff --git a/flexslider/index.d.ts b/types/flexslider/index.d.ts similarity index 100% rename from flexslider/index.d.ts rename to types/flexslider/index.d.ts diff --git a/flexslider/tsconfig.json b/types/flexslider/tsconfig.json similarity index 100% rename from flexslider/tsconfig.json rename to types/flexslider/tsconfig.json diff --git a/flickity/FlickityEvents.ts b/types/flickity/FlickityEvents.ts similarity index 100% rename from flickity/FlickityEvents.ts rename to types/flickity/FlickityEvents.ts diff --git a/flickity/UNUSED_FILES.txt b/types/flickity/UNUSED_FILES.txt similarity index 100% rename from flickity/UNUSED_FILES.txt rename to types/flickity/UNUSED_FILES.txt diff --git a/flickity/flickity-tests.ts b/types/flickity/flickity-tests.ts similarity index 100% rename from flickity/flickity-tests.ts rename to types/flickity/flickity-tests.ts diff --git a/flickity/index.d.ts b/types/flickity/index.d.ts similarity index 100% rename from flickity/index.d.ts rename to types/flickity/index.d.ts diff --git a/flickity/tsconfig.json b/types/flickity/tsconfig.json similarity index 100% rename from flickity/tsconfig.json rename to types/flickity/tsconfig.json diff --git a/flight/flight-tests.ts b/types/flight/flight-tests.ts similarity index 100% rename from flight/flight-tests.ts rename to types/flight/flight-tests.ts diff --git a/flight/index.d.ts b/types/flight/index.d.ts similarity index 100% rename from flight/index.d.ts rename to types/flight/index.d.ts diff --git a/flight/tsconfig.json b/types/flight/tsconfig.json similarity index 100% rename from flight/tsconfig.json rename to types/flight/tsconfig.json diff --git a/flightplan/flightplan-tests.ts b/types/flightplan/flightplan-tests.ts similarity index 100% rename from flightplan/flightplan-tests.ts rename to types/flightplan/flightplan-tests.ts diff --git a/flightplan/index.d.ts b/types/flightplan/index.d.ts similarity index 100% rename from flightplan/index.d.ts rename to types/flightplan/index.d.ts diff --git a/flightplan/tsconfig.json b/types/flightplan/tsconfig.json similarity index 100% rename from flightplan/tsconfig.json rename to types/flightplan/tsconfig.json diff --git a/flipsnap/flipsnap-tests.ts b/types/flipsnap/flipsnap-tests.ts similarity index 100% rename from flipsnap/flipsnap-tests.ts rename to types/flipsnap/flipsnap-tests.ts diff --git a/flipsnap/index.d.ts b/types/flipsnap/index.d.ts similarity index 100% rename from flipsnap/index.d.ts rename to types/flipsnap/index.d.ts diff --git a/flipsnap/tsconfig.json b/types/flipsnap/tsconfig.json similarity index 100% rename from flipsnap/tsconfig.json rename to types/flipsnap/tsconfig.json diff --git a/flot/index.d.ts b/types/flot/index.d.ts similarity index 100% rename from flot/index.d.ts rename to types/flot/index.d.ts diff --git a/flot/tsconfig.json b/types/flot/tsconfig.json similarity index 100% rename from flot/tsconfig.json rename to types/flot/tsconfig.json diff --git a/flowjs/flowjs-tests.ts b/types/flowjs/flowjs-tests.ts similarity index 100% rename from flowjs/flowjs-tests.ts rename to types/flowjs/flowjs-tests.ts diff --git a/flowjs/index.d.ts b/types/flowjs/index.d.ts similarity index 100% rename from flowjs/index.d.ts rename to types/flowjs/index.d.ts diff --git a/flowjs/tsconfig.json b/types/flowjs/tsconfig.json similarity index 100% rename from flowjs/tsconfig.json rename to types/flowjs/tsconfig.json diff --git a/fluent-ffmpeg/fluent-ffmpeg-tests.ts b/types/fluent-ffmpeg/fluent-ffmpeg-tests.ts similarity index 100% rename from fluent-ffmpeg/fluent-ffmpeg-tests.ts rename to types/fluent-ffmpeg/fluent-ffmpeg-tests.ts diff --git a/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts similarity index 100% rename from fluent-ffmpeg/index.d.ts rename to types/fluent-ffmpeg/index.d.ts diff --git a/fluent-ffmpeg/tsconfig.json b/types/fluent-ffmpeg/tsconfig.json similarity index 100% rename from fluent-ffmpeg/tsconfig.json rename to types/fluent-ffmpeg/tsconfig.json diff --git a/flux-standard-action/flux-standard-action-tests.ts b/types/flux-standard-action/flux-standard-action-tests.ts similarity index 100% rename from flux-standard-action/flux-standard-action-tests.ts rename to types/flux-standard-action/flux-standard-action-tests.ts diff --git a/flux-standard-action/index.d.ts b/types/flux-standard-action/index.d.ts similarity index 100% rename from flux-standard-action/index.d.ts rename to types/flux-standard-action/index.d.ts diff --git a/flux-standard-action/tsconfig.json b/types/flux-standard-action/tsconfig.json similarity index 100% rename from flux-standard-action/tsconfig.json rename to types/flux-standard-action/tsconfig.json diff --git a/flux/flux-tests.ts b/types/flux/flux-tests.ts similarity index 100% rename from flux/flux-tests.ts rename to types/flux/flux-tests.ts diff --git a/flux/index.d.ts b/types/flux/index.d.ts similarity index 100% rename from flux/index.d.ts rename to types/flux/index.d.ts diff --git a/flux/tsconfig.json b/types/flux/tsconfig.json similarity index 100% rename from flux/tsconfig.json rename to types/flux/tsconfig.json diff --git a/flux/utils/index.d.ts b/types/flux/utils/index.d.ts similarity index 100% rename from flux/utils/index.d.ts rename to types/flux/utils/index.d.ts diff --git a/fluxxor/fluxxor-tests.ts b/types/fluxxor/fluxxor-tests.ts similarity index 100% rename from fluxxor/fluxxor-tests.ts rename to types/fluxxor/fluxxor-tests.ts diff --git a/fluxxor/index.d.ts b/types/fluxxor/index.d.ts similarity index 100% rename from fluxxor/index.d.ts rename to types/fluxxor/index.d.ts diff --git a/fluxxor/tsconfig.json b/types/fluxxor/tsconfig.json similarity index 100% rename from fluxxor/tsconfig.json rename to types/fluxxor/tsconfig.json diff --git a/fontfaceobserver/fontfaceobserver-tests.ts b/types/fontfaceobserver/fontfaceobserver-tests.ts similarity index 100% rename from fontfaceobserver/fontfaceobserver-tests.ts rename to types/fontfaceobserver/fontfaceobserver-tests.ts diff --git a/fontfaceobserver/index.d.ts b/types/fontfaceobserver/index.d.ts similarity index 100% rename from fontfaceobserver/index.d.ts rename to types/fontfaceobserver/index.d.ts diff --git a/fontfaceobserver/tsconfig.json b/types/fontfaceobserver/tsconfig.json similarity index 100% rename from fontfaceobserver/tsconfig.json rename to types/fontfaceobserver/tsconfig.json diff --git a/fontoxml/fontoxml-tests.ts b/types/fontoxml/fontoxml-tests.ts similarity index 100% rename from fontoxml/fontoxml-tests.ts rename to types/fontoxml/fontoxml-tests.ts diff --git a/fontoxml/index.d.ts b/types/fontoxml/index.d.ts similarity index 100% rename from fontoxml/index.d.ts rename to types/fontoxml/index.d.ts diff --git a/fontoxml/tsconfig.json b/types/fontoxml/tsconfig.json similarity index 100% rename from fontoxml/tsconfig.json rename to types/fontoxml/tsconfig.json diff --git a/forever-monitor/forever-monitor-tests.ts b/types/forever-monitor/forever-monitor-tests.ts similarity index 100% rename from forever-monitor/forever-monitor-tests.ts rename to types/forever-monitor/forever-monitor-tests.ts diff --git a/forever-monitor/index.d.ts b/types/forever-monitor/index.d.ts similarity index 100% rename from forever-monitor/index.d.ts rename to types/forever-monitor/index.d.ts diff --git a/forever-monitor/tsconfig.json b/types/forever-monitor/tsconfig.json similarity index 100% rename from forever-monitor/tsconfig.json rename to types/forever-monitor/tsconfig.json diff --git a/forever-monitor/tslint.json b/types/forever-monitor/tslint.json similarity index 100% rename from forever-monitor/tslint.json rename to types/forever-monitor/tslint.json diff --git a/forge-di/forge-di-tests.ts b/types/forge-di/forge-di-tests.ts similarity index 100% rename from forge-di/forge-di-tests.ts rename to types/forge-di/forge-di-tests.ts diff --git a/forge-di/index.d.ts b/types/forge-di/index.d.ts similarity index 100% rename from forge-di/index.d.ts rename to types/forge-di/index.d.ts diff --git a/forge-di/tsconfig.json b/types/forge-di/tsconfig.json similarity index 100% rename from forge-di/tsconfig.json rename to types/forge-di/tsconfig.json diff --git a/form-data/form-data-tests.ts b/types/form-data/form-data-tests.ts similarity index 100% rename from form-data/form-data-tests.ts rename to types/form-data/form-data-tests.ts diff --git a/form-data/index.d.ts b/types/form-data/index.d.ts similarity index 100% rename from form-data/index.d.ts rename to types/form-data/index.d.ts diff --git a/form-data/tsconfig.json b/types/form-data/tsconfig.json similarity index 100% rename from form-data/tsconfig.json rename to types/form-data/tsconfig.json diff --git a/form-serializer/form-serializer-tests.ts b/types/form-serializer/form-serializer-tests.ts similarity index 100% rename from form-serializer/form-serializer-tests.ts rename to types/form-serializer/form-serializer-tests.ts diff --git a/form-serializer/index.d.ts b/types/form-serializer/index.d.ts similarity index 100% rename from form-serializer/index.d.ts rename to types/form-serializer/index.d.ts diff --git a/form-serializer/tsconfig.json b/types/form-serializer/tsconfig.json similarity index 100% rename from form-serializer/tsconfig.json rename to types/form-serializer/tsconfig.json diff --git a/format-unicorn/index.d.ts b/types/format-unicorn/index.d.ts similarity index 100% rename from format-unicorn/index.d.ts rename to types/format-unicorn/index.d.ts diff --git a/format-unicorn/safe.d.ts b/types/format-unicorn/safe.d.ts similarity index 100% rename from format-unicorn/safe.d.ts rename to types/format-unicorn/safe.d.ts diff --git a/format-unicorn/test/index.ts b/types/format-unicorn/test/index.ts similarity index 100% rename from format-unicorn/test/index.ts rename to types/format-unicorn/test/index.ts diff --git a/format-unicorn/test/safe.ts b/types/format-unicorn/test/safe.ts similarity index 100% rename from format-unicorn/test/safe.ts rename to types/format-unicorn/test/safe.ts diff --git a/format-unicorn/tsconfig.json b/types/format-unicorn/tsconfig.json similarity index 100% rename from format-unicorn/tsconfig.json rename to types/format-unicorn/tsconfig.json diff --git a/format-unicorn/tslint.json b/types/format-unicorn/tslint.json similarity index 100% rename from format-unicorn/tslint.json rename to types/format-unicorn/tslint.json diff --git a/formidable/formidable-tests.ts b/types/formidable/formidable-tests.ts similarity index 100% rename from formidable/formidable-tests.ts rename to types/formidable/formidable-tests.ts diff --git a/formidable/index.d.ts b/types/formidable/index.d.ts similarity index 100% rename from formidable/index.d.ts rename to types/formidable/index.d.ts diff --git a/formidable/tsconfig.json b/types/formidable/tsconfig.json similarity index 100% rename from formidable/tsconfig.json rename to types/formidable/tsconfig.json diff --git a/fossil-delta/fossil-delta-tests.ts b/types/fossil-delta/fossil-delta-tests.ts similarity index 100% rename from fossil-delta/fossil-delta-tests.ts rename to types/fossil-delta/fossil-delta-tests.ts diff --git a/fossil-delta/index.d.ts b/types/fossil-delta/index.d.ts similarity index 100% rename from fossil-delta/index.d.ts rename to types/fossil-delta/index.d.ts diff --git a/fossil-delta/tsconfig.json b/types/fossil-delta/tsconfig.json similarity index 100% rename from fossil-delta/tsconfig.json rename to types/fossil-delta/tsconfig.json diff --git a/foundation-sites/foundation-sites-tests.ts b/types/foundation-sites/foundation-sites-tests.ts similarity index 100% rename from foundation-sites/foundation-sites-tests.ts rename to types/foundation-sites/foundation-sites-tests.ts diff --git a/foundation-sites/index.d.ts b/types/foundation-sites/index.d.ts similarity index 100% rename from foundation-sites/index.d.ts rename to types/foundation-sites/index.d.ts diff --git a/foundation-sites/tsconfig.json b/types/foundation-sites/tsconfig.json similarity index 100% rename from foundation-sites/tsconfig.json rename to types/foundation-sites/tsconfig.json diff --git a/foundation/foundation-tests.ts b/types/foundation/foundation-tests.ts similarity index 100% rename from foundation/foundation-tests.ts rename to types/foundation/foundation-tests.ts diff --git a/foundation/index.d.ts b/types/foundation/index.d.ts similarity index 100% rename from foundation/index.d.ts rename to types/foundation/index.d.ts diff --git a/foundation/tsconfig.json b/types/foundation/tsconfig.json similarity index 100% rename from foundation/tsconfig.json rename to types/foundation/tsconfig.json diff --git a/fpsmeter/index.d.ts b/types/fpsmeter/index.d.ts similarity index 100% rename from fpsmeter/index.d.ts rename to types/fpsmeter/index.d.ts diff --git a/fpsmeter/tsconfig.json b/types/fpsmeter/tsconfig.json similarity index 100% rename from fpsmeter/tsconfig.json rename to types/fpsmeter/tsconfig.json diff --git a/freedom/UNUSED_FILES.txt b/types/freedom/UNUSED_FILES.txt similarity index 100% rename from freedom/UNUSED_FILES.txt rename to types/freedom/UNUSED_FILES.txt diff --git a/freedom/freedom-core-env.d.ts b/types/freedom/freedom-core-env.d.ts similarity index 100% rename from freedom/freedom-core-env.d.ts rename to types/freedom/freedom-core-env.d.ts diff --git a/freedom/freedom-module-env.d.ts b/types/freedom/freedom-module-env.d.ts similarity index 100% rename from freedom/freedom-module-env.d.ts rename to types/freedom/freedom-module-env.d.ts diff --git a/freedom/freedom-tests.ts b/types/freedom/freedom-tests.ts similarity index 100% rename from freedom/freedom-tests.ts rename to types/freedom/freedom-tests.ts diff --git a/freedom/index.d.ts b/types/freedom/index.d.ts similarity index 100% rename from freedom/index.d.ts rename to types/freedom/index.d.ts diff --git a/freedom/tsconfig.json b/types/freedom/tsconfig.json similarity index 100% rename from freedom/tsconfig.json rename to types/freedom/tsconfig.json diff --git a/freeport/freeport-tests.ts b/types/freeport/freeport-tests.ts similarity index 100% rename from freeport/freeport-tests.ts rename to types/freeport/freeport-tests.ts diff --git a/freeport/index.d.ts b/types/freeport/index.d.ts similarity index 100% rename from freeport/index.d.ts rename to types/freeport/index.d.ts diff --git a/freeport/tsconfig.json b/types/freeport/tsconfig.json similarity index 100% rename from freeport/tsconfig.json rename to types/freeport/tsconfig.json diff --git a/freeport/tslint.json b/types/freeport/tslint.json similarity index 100% rename from freeport/tslint.json rename to types/freeport/tslint.json diff --git a/from/from-tests.ts b/types/from/from-tests.ts similarity index 100% rename from from/from-tests.ts rename to types/from/from-tests.ts diff --git a/from/index.d.ts b/types/from/index.d.ts similarity index 100% rename from from/index.d.ts rename to types/from/index.d.ts diff --git a/from/tsconfig.json b/types/from/tsconfig.json similarity index 100% rename from from/tsconfig.json rename to types/from/tsconfig.json diff --git a/fromjs/fromjs-tests.ts b/types/fromjs/fromjs-tests.ts similarity index 100% rename from fromjs/fromjs-tests.ts rename to types/fromjs/fromjs-tests.ts diff --git a/fromjs/index.d.ts b/types/fromjs/index.d.ts similarity index 100% rename from fromjs/index.d.ts rename to types/fromjs/index.d.ts diff --git a/fromjs/tsconfig.json b/types/fromjs/tsconfig.json similarity index 100% rename from fromjs/tsconfig.json rename to types/fromjs/tsconfig.json diff --git a/fromnow/fromnow-tests.ts b/types/fromnow/fromnow-tests.ts similarity index 100% rename from fromnow/fromnow-tests.ts rename to types/fromnow/fromnow-tests.ts diff --git a/fromnow/index.d.ts b/types/fromnow/index.d.ts similarity index 100% rename from fromnow/index.d.ts rename to types/fromnow/index.d.ts diff --git a/fromnow/tsconfig.json b/types/fromnow/tsconfig.json similarity index 100% rename from fromnow/tsconfig.json rename to types/fromnow/tsconfig.json diff --git a/fs-ext/fs-ext-tests.ts b/types/fs-ext/fs-ext-tests.ts similarity index 100% rename from fs-ext/fs-ext-tests.ts rename to types/fs-ext/fs-ext-tests.ts diff --git a/fs-ext/index.d.ts b/types/fs-ext/index.d.ts similarity index 100% rename from fs-ext/index.d.ts rename to types/fs-ext/index.d.ts diff --git a/fs-ext/tsconfig.json b/types/fs-ext/tsconfig.json similarity index 100% rename from fs-ext/tsconfig.json rename to types/fs-ext/tsconfig.json diff --git a/fs-extra-promise-es6/fs-extra-promise-es6-tests.ts b/types/fs-extra-promise-es6/fs-extra-promise-es6-tests.ts similarity index 100% rename from fs-extra-promise-es6/fs-extra-promise-es6-tests.ts rename to types/fs-extra-promise-es6/fs-extra-promise-es6-tests.ts diff --git a/fs-extra-promise-es6/index.d.ts b/types/fs-extra-promise-es6/index.d.ts similarity index 100% rename from fs-extra-promise-es6/index.d.ts rename to types/fs-extra-promise-es6/index.d.ts diff --git a/fs-extra-promise-es6/tsconfig.json b/types/fs-extra-promise-es6/tsconfig.json similarity index 100% rename from fs-extra-promise-es6/tsconfig.json rename to types/fs-extra-promise-es6/tsconfig.json diff --git a/fs-extra-promise/fs-extra-promise-tests.ts b/types/fs-extra-promise/fs-extra-promise-tests.ts similarity index 100% rename from fs-extra-promise/fs-extra-promise-tests.ts rename to types/fs-extra-promise/fs-extra-promise-tests.ts diff --git a/fs-extra-promise/index.d.ts b/types/fs-extra-promise/index.d.ts similarity index 100% rename from fs-extra-promise/index.d.ts rename to types/fs-extra-promise/index.d.ts diff --git a/fs-extra-promise/tsconfig.json b/types/fs-extra-promise/tsconfig.json similarity index 100% rename from fs-extra-promise/tsconfig.json rename to types/fs-extra-promise/tsconfig.json diff --git a/fs-extra/fs-extra-tests.ts b/types/fs-extra/fs-extra-tests.ts similarity index 100% rename from fs-extra/fs-extra-tests.ts rename to types/fs-extra/fs-extra-tests.ts diff --git a/fs-extra/index.d.ts b/types/fs-extra/index.d.ts similarity index 100% rename from fs-extra/index.d.ts rename to types/fs-extra/index.d.ts diff --git a/fs-extra/tsconfig.json b/types/fs-extra/tsconfig.json similarity index 100% rename from fs-extra/tsconfig.json rename to types/fs-extra/tsconfig.json diff --git a/fs-finder/fs-finder-tests.ts b/types/fs-finder/fs-finder-tests.ts similarity index 100% rename from fs-finder/fs-finder-tests.ts rename to types/fs-finder/fs-finder-tests.ts diff --git a/fs-finder/index.d.ts b/types/fs-finder/index.d.ts similarity index 100% rename from fs-finder/index.d.ts rename to types/fs-finder/index.d.ts diff --git a/fs-finder/tsconfig.json b/types/fs-finder/tsconfig.json similarity index 100% rename from fs-finder/tsconfig.json rename to types/fs-finder/tsconfig.json diff --git a/fs-mock/fs-mock-tests.ts b/types/fs-mock/fs-mock-tests.ts similarity index 100% rename from fs-mock/fs-mock-tests.ts rename to types/fs-mock/fs-mock-tests.ts diff --git a/fs-mock/index.d.ts b/types/fs-mock/index.d.ts similarity index 100% rename from fs-mock/index.d.ts rename to types/fs-mock/index.d.ts diff --git a/fs-mock/tsconfig.json b/types/fs-mock/tsconfig.json similarity index 100% rename from fs-mock/tsconfig.json rename to types/fs-mock/tsconfig.json diff --git a/fs-promise/fs-promise-tests.ts b/types/fs-promise/fs-promise-tests.ts similarity index 100% rename from fs-promise/fs-promise-tests.ts rename to types/fs-promise/fs-promise-tests.ts diff --git a/fs-promise/index.d.ts b/types/fs-promise/index.d.ts similarity index 100% rename from fs-promise/index.d.ts rename to types/fs-promise/index.d.ts diff --git a/fs-promise/tsconfig.json b/types/fs-promise/tsconfig.json similarity index 100% rename from fs-promise/tsconfig.json rename to types/fs-promise/tsconfig.json diff --git a/fs-promise/tslint.json b/types/fs-promise/tslint.json similarity index 100% rename from fs-promise/tslint.json rename to types/fs-promise/tslint.json diff --git a/ftdomdelegate/ftdomdelegate-tests.ts b/types/ftdomdelegate/ftdomdelegate-tests.ts similarity index 100% rename from ftdomdelegate/ftdomdelegate-tests.ts rename to types/ftdomdelegate/ftdomdelegate-tests.ts diff --git a/ftdomdelegate/index.d.ts b/types/ftdomdelegate/index.d.ts similarity index 100% rename from ftdomdelegate/index.d.ts rename to types/ftdomdelegate/index.d.ts diff --git a/ftdomdelegate/tsconfig.json b/types/ftdomdelegate/tsconfig.json similarity index 100% rename from ftdomdelegate/tsconfig.json rename to types/ftdomdelegate/tsconfig.json diff --git a/ftp/ftp-tests.ts b/types/ftp/ftp-tests.ts similarity index 100% rename from ftp/ftp-tests.ts rename to types/ftp/ftp-tests.ts diff --git a/ftp/index.d.ts b/types/ftp/index.d.ts similarity index 100% rename from ftp/index.d.ts rename to types/ftp/index.d.ts diff --git a/ftp/tsconfig.json b/types/ftp/tsconfig.json similarity index 100% rename from ftp/tsconfig.json rename to types/ftp/tsconfig.json diff --git a/ftpd/ftpd-tests.ts b/types/ftpd/ftpd-tests.ts similarity index 100% rename from ftpd/ftpd-tests.ts rename to types/ftpd/ftpd-tests.ts diff --git a/ftpd/index.d.ts b/types/ftpd/index.d.ts similarity index 100% rename from ftpd/index.d.ts rename to types/ftpd/index.d.ts diff --git a/ftpd/tsconfig.json b/types/ftpd/tsconfig.json similarity index 100% rename from ftpd/tsconfig.json rename to types/ftpd/tsconfig.json diff --git a/fullcalendar/fullcalendar-tests.ts b/types/fullcalendar/fullcalendar-tests.ts similarity index 94% rename from fullcalendar/fullcalendar-tests.ts rename to types/fullcalendar/fullcalendar-tests.ts index 63328a9cef..4557a94eef 100644 --- a/fullcalendar/fullcalendar-tests.ts +++ b/types/fullcalendar/fullcalendar-tests.ts @@ -33,7 +33,6 @@ $('#calendar').fullCalendar({ $('#calendar').fullCalendar({ eventSources: [ - // source with no options "http://www.google.com/your_feed_url1/", @@ -84,15 +83,14 @@ $('#calendar').fullCalendar({ dragOpacity: .5 }); -var view = $('#calendar').fullCalendar('getView'); +const view = $('#calendar').fullCalendar('getView'); alert("The view's title is " + view.title); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -148,15 +146,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -213,15 +209,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -267,15 +261,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ editable: true, @@ -332,15 +324,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -386,7 +376,6 @@ $(document).ready(() => { } ] }); - }); $('#my-prev-button').click(() => { @@ -404,7 +393,7 @@ $('#my-today-button').click(() => { $('#calendar').fullCalendar('gotoDate', 1, 0, 1); $('#my-button').click(() => { - var d = $('#calendar').fullCalendar('getDate'); + const d = $('#calendar').fullCalendar('getDate'); alert("The current date of the calendar is " + d); }); @@ -429,7 +418,6 @@ $('#calendar').fullCalendar({ $('#calendar').fullCalendar({ dayClick(date, allDay, jsEvent, view) { - if (allDay) { alert('Clicked on the entire day: ' + date); } else { @@ -442,20 +430,17 @@ $('#calendar').fullCalendar({ // change the day's background color just for fun $(this).css('background-color', 'red'); - } }); $('#calendar').fullCalendar({ eventClick(calEvent, jsEvent, view) { - alert('Event: ' + calEvent.title); alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY); alert('View: ' + view.name); // change the border color just for fun $(this).css('border-color', 'red'); - } }); @@ -477,9 +462,7 @@ $('#calendar').fullCalendar({ }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { url: '/myfeed.php', @@ -496,13 +479,10 @@ $('#calendar').fullCalendar({ } // any other sources... - ] - }); $('#calendar').fullCalendar({ - events: { url: '/myfeed.php', type: 'POST', @@ -516,22 +496,17 @@ $('#calendar').fullCalendar({ color: 'yellow', // a non-ajax option textColor: 'black' // a non-ajax option } - }); $('#calendar').fullCalendar({ - events: { url: '/myfeed.php', cache: true } - }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { url: '/myfeed.php', // use the `url` property @@ -540,9 +515,7 @@ $('#calendar').fullCalendar({ } // any other sources... - ] - }); $('#calendar').fullCalendar({ @@ -569,9 +542,7 @@ $('#calendar').fullCalendar({ }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { events: [ // put the array in the `events` property @@ -594,9 +565,7 @@ $('#calendar').fullCalendar({ } // any other event sources... - ] - }); $('#calendar').fullCalendar({ @@ -610,7 +579,7 @@ $('#calendar').fullCalendar({ end: Math.round(end.toDate().getTime() / 1000) }, success(doc) { - var events: any[] = []; + const events: any[] = []; $(doc).find('event').each(() => { events.push({ title: $(this).attr('title'), @@ -624,9 +593,7 @@ $('#calendar').fullCalendar({ }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { events(start: moment.Moment, end: moment.Moment, timezone: string | boolean, callback: (events: FullCalendar.EventObject[]) => void) { @@ -635,11 +602,8 @@ $('#calendar').fullCalendar({ color: 'yellow', // an option! textColor: 'black' // an option! } - // any other sources... - ] - }); $('#calendar').fullCalendar({ @@ -651,11 +615,9 @@ $('#calendar').fullCalendar({ $('#calendar').fullCalendar({ eventClick(event, element) { - event.title = "CLICKED!"; $('#calendar').fullCalendar('updateEvent', event); - } }); @@ -712,11 +674,10 @@ $('#draggable1').draggable(); $('#draggable2').draggable(); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ theme: true, @@ -773,17 +734,15 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { /* initialize the external events -----------------------------------------------------------------*/ $('#external-events div.external-event').each(() => { - // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) // it doesn't need to have a start or end - var eventObject = { + const eventObject = { title: $.trim($(this).text()) // use the element's text as the event title }; @@ -796,7 +755,6 @@ $(document).ready(() => { revert: true, // will cause the event to go back to its revertDuration: 0 // original position after the drag }); - }); /* initialize the calendar -----------------------------------------------------------------*/ @@ -812,10 +770,10 @@ $(document).ready(() => { drop(date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object - var originalEventObject = $(this).data('eventObject'); + const originalEventObject = $(this).data('eventObject'); // we need to copy it, so that multiple events don't have a reference to the same object - var copiedEventObject: any = $.extend({}, originalEventObject); + const copiedEventObject: any = $.extend({}, originalEventObject); // assign it the date that was reported copiedEventObject.start = date; @@ -835,10 +793,10 @@ $(document).ready(() => { }); $(document).ready(() => { - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ theme: true, diff --git a/fullcalendar/index.d.ts b/types/fullcalendar/index.d.ts similarity index 100% rename from fullcalendar/index.d.ts rename to types/fullcalendar/index.d.ts diff --git a/fullcalendar/package.json b/types/fullcalendar/package.json similarity index 100% rename from fullcalendar/package.json rename to types/fullcalendar/package.json diff --git a/fullcalendar/tsconfig.json b/types/fullcalendar/tsconfig.json similarity index 100% rename from fullcalendar/tsconfig.json rename to types/fullcalendar/tsconfig.json diff --git a/fullcalendar/tslint.json b/types/fullcalendar/tslint.json similarity index 100% rename from fullcalendar/tslint.json rename to types/fullcalendar/tslint.json diff --git a/fullcalendar/v1/fullcalendar-tests.ts b/types/fullcalendar/v1/fullcalendar-tests.ts similarity index 94% rename from fullcalendar/v1/fullcalendar-tests.ts rename to types/fullcalendar/v1/fullcalendar-tests.ts index ede55bc0b1..c2c0da1948 100644 --- a/fullcalendar/v1/fullcalendar-tests.ts +++ b/types/fullcalendar/v1/fullcalendar-tests.ts @@ -30,7 +30,6 @@ $('#calendar').fullCalendar({ $('#calendar').fullCalendar({ eventSources: [ - // source with no options "http://www.google.com/your_feed_url1/", @@ -81,15 +80,14 @@ $('#calendar').fullCalendar({ dragOpacity: .5 }); -var view = $('#calendar').fullCalendar('getView'); +const view = $('#calendar').fullCalendar('getView'); alert("The view's title is " + view.title); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -145,15 +143,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -210,15 +206,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -264,15 +258,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ editable: true, @@ -329,15 +321,13 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ header: { @@ -383,7 +373,6 @@ $(document).ready(() => { } ] }); - }); $('#my-prev-button').click(() => { @@ -401,7 +390,7 @@ $('#my-today-button').click(() => { $('#calendar').fullCalendar('gotoDate', 1, 0, 1); $('#my-button').click(() => { - var d = $('#calendar').fullCalendar('getDate'); + const d = $('#calendar').fullCalendar('getDate'); alert("The current date of the calendar is " + d); }); @@ -426,7 +415,6 @@ $('#calendar').fullCalendar({ $('#calendar').fullCalendar({ dayClick(date, allDay, jsEvent, view) { - if (allDay) { alert('Clicked on the entire day: ' + date); } else { @@ -439,20 +427,17 @@ $('#calendar').fullCalendar({ // change the day's background color just for fun $(this).css('background-color', 'red'); - } }); $('#calendar').fullCalendar({ eventClick(calEvent, jsEvent, view) { - alert('Event: ' + calEvent.title); alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY); alert('View: ' + view.name); // change the border color just for fun $(this).css('border-color', 'red'); - } }); @@ -474,9 +459,7 @@ $('#calendar').fullCalendar({ }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { url: '/myfeed.php', @@ -493,13 +476,10 @@ $('#calendar').fullCalendar({ } // any other sources... - ] - }); $('#calendar').fullCalendar({ - events: { url: '/myfeed.php', type: 'POST', @@ -513,22 +493,17 @@ $('#calendar').fullCalendar({ color: 'yellow', // a non-ajax option textColor: 'black' // a non-ajax option } - }); $('#calendar').fullCalendar({ - events: { url: '/myfeed.php', cache: true } - }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { url: '/myfeed.php', // use the `url` property @@ -537,9 +512,7 @@ $('#calendar').fullCalendar({ } // any other sources... - ] - }); $('#calendar').fullCalendar({ @@ -566,9 +539,7 @@ $('#calendar').fullCalendar({ }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { events: [ // put the array in the `events` property @@ -591,9 +562,7 @@ $('#calendar').fullCalendar({ } // any other event sources... - ] - }); $('#calendar').fullCalendar({ @@ -607,7 +576,7 @@ $('#calendar').fullCalendar({ end: Math.round(end.getTime() / 1000) }, success(doc) { - var events: any[] = []; + const events: any[] = []; $(doc).find('event').each(() => { events.push({ title: $(this).attr('title'), @@ -621,9 +590,7 @@ $('#calendar').fullCalendar({ }); $('#calendar').fullCalendar({ - eventSources: [ - // your event source { events(start: any, end: any, callback: any) { @@ -634,9 +601,7 @@ $('#calendar').fullCalendar({ } // any other sources... - ] - }); $('#calendar').fullCalendar({ @@ -648,11 +613,9 @@ $('#calendar').fullCalendar({ $('#calendar').fullCalendar({ eventClick(event, element) { - event.title = "CLICKED!"; $('#calendar').fullCalendar('updateEvent', event); - } }); @@ -709,11 +672,10 @@ $('#draggable1').draggable(); $('#draggable2').draggable(); $(document).ready(() => { - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); + const date = new Date(); + const d = date.getDate(); + const m = date.getMonth(); + const y = date.getFullYear(); $('#calendar').fullCalendar({ theme: true, @@ -770,17 +732,15 @@ $(document).ready(() => { } ] }); - }); $(document).ready(() => { /* initialize the external events -----------------------------------------------------------------*/ $('#external-events div.external-event').each(() => { - // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) // it doesn't need to have a start or end - var eventObject = { + const eventObject = { title: $.trim($(this).text()) // use the element's text as the event title }; @@ -793,7 +753,6 @@ $(document).ready(() => { revert: true, // will cause the event to go back to its revertDuration: 0 // original position after the drag }); - }); /* initialize the calendar -----------------------------------------------------------------*/ @@ -809,10 +768,10 @@ $(document).ready(() => { drop(date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object - var originalEventObject = $(this).data('eventObject'); + const originalEventObject = $(this).data('eventObject'); // we need to copy it, so that multiple events don't have a reference to the same object - var copiedEventObject: any = $.extend({}, originalEventObject); + const copiedEventObject: any = $.extend({}, originalEventObject); // assign it the date that was reported copiedEventObject.start = date; diff --git a/fullcalendar/v1/index.d.ts b/types/fullcalendar/v1/index.d.ts similarity index 95% rename from fullcalendar/v1/index.d.ts rename to types/fullcalendar/v1/index.d.ts index 9f521ca8fc..4fcb41731b 100644 --- a/fullcalendar/v1/index.d.ts +++ b/types/fullcalendar/v1/index.d.ts @@ -8,8 +8,7 @@ import * as moment from "moment"; declare global { namespace FullCalendar { - export interface Calendar { - + interface Calendar { /** * Formats a Date object into a string. */ @@ -36,22 +35,21 @@ declare global { version: string; } - export interface BusinessHours { + interface BusinessHours { start: moment.Duration; end: moment.Duration; dow: number[]; } - export interface Timespan { + interface Timespan { start: moment.Moment; end: moment.Moment; } - export interface Options extends AgendaOptions, EventDraggingResizingOptions, DroppingExternalElementsOptions, SelectionOptions { - + interface Options extends AgendaOptions, EventDraggingResizingOptions, DroppingExternalElementsOptions, SelectionOptions { // General display - http://arshaw.com/fullcalendar/docs/display/ - header?: { + header?: { left: string; center: string; right: string; @@ -152,11 +150,9 @@ declare global { eventAfterRender?: (event: EventObject, element: HTMLDivElement, view: ViewObject) => void; eventAfterAllRender?: (view: ViewObject) => void; eventDestroy?: (event: EventObject, element: JQuery, view: ViewObject) => void; - - } - export interface ViewOptionHash { + interface ViewOptionHash { month?: any; week?: any; day?: any; @@ -172,7 +168,7 @@ declare global { /** * Agenda Options - http://arshaw.com/fullcalendar/docs/agenda/ */ - export interface AgendaOptions { + interface AgendaOptions { allDaySlot?: boolean; allDayText?: string; slotDuration?: moment.Duration; @@ -188,7 +184,7 @@ declare global { /* * Event Dragging & Resizing */ - export interface EventDraggingResizingOptions { + interface EventDraggingResizingOptions { editable?: boolean; eventStartEditable?: boolean; eventDurationEditable?: boolean; @@ -207,7 +203,7 @@ declare global { /* * Selection - http://arshaw.com/fullcalendar/docs/selection/ */ - export interface SelectionOptions { + interface SelectionOptions { selectable?: boolean; selectHelper?: boolean | ((start: moment.Moment, end: moment.Moment) => HTMLElement); unselectAuto?: boolean; @@ -218,14 +214,14 @@ declare global { unselect?: (view: ViewObject, jsEvent: Event) => void; } - export interface DroppingExternalElementsOptions { + interface DroppingExternalElementsOptions { droppable?: boolean; dropAccept?: string | ((draggable: any) => boolean); drop?: (date: moment.Moment, jsEvent: MouseEvent, ui: any) => void; eventReceive?: (event: EventObject) => void; } - export interface ButtonTextObject { + interface ButtonTextObject { prev?: string; next?: string; prevYear?: string; @@ -236,7 +232,7 @@ declare global { day?: string; } - export interface EventObject extends Timespan { + interface EventObject extends Timespan { id?: any; // String/number title: string; allDay?: boolean; @@ -251,15 +247,14 @@ declare global { rendering?: string; } - export interface ViewObject extends Timespan { + interface ViewObject extends Timespan { name: string; title: string; intervalStart: moment.Moment; intervalEnd: moment.Moment; } - export interface EventSource extends JQueryAjaxSettings { - + interface EventSource extends JQueryAjaxSettings { /** * This has one of the following types: * @@ -281,11 +276,9 @@ declare global { startParam?: string; endParam?: string; } - } interface JQuery { - /** * Get/Set option value */ diff --git a/fullcalendar/v1/package.json b/types/fullcalendar/v1/package.json similarity index 100% rename from fullcalendar/v1/package.json rename to types/fullcalendar/v1/package.json diff --git a/fullcalendar/v1/tsconfig.json b/types/fullcalendar/v1/tsconfig.json similarity index 100% rename from fullcalendar/v1/tsconfig.json rename to types/fullcalendar/v1/tsconfig.json diff --git a/fullcalendar/v1/tslint.json b/types/fullcalendar/v1/tslint.json similarity index 100% rename from fullcalendar/v1/tslint.json rename to types/fullcalendar/v1/tslint.json diff --git a/fullname/fullname-tests.ts b/types/fullname/fullname-tests.ts similarity index 100% rename from fullname/fullname-tests.ts rename to types/fullname/fullname-tests.ts diff --git a/fullname/index.d.ts b/types/fullname/index.d.ts similarity index 100% rename from fullname/index.d.ts rename to types/fullname/index.d.ts diff --git a/fullname/tsconfig.json b/types/fullname/tsconfig.json similarity index 100% rename from fullname/tsconfig.json rename to types/fullname/tsconfig.json diff --git a/fullpage.js/fullpage.js-tests.ts b/types/fullpage.js/fullpage.js-tests.ts similarity index 100% rename from fullpage.js/fullpage.js-tests.ts rename to types/fullpage.js/fullpage.js-tests.ts diff --git a/fullpage.js/index.d.ts b/types/fullpage.js/index.d.ts similarity index 100% rename from fullpage.js/index.d.ts rename to types/fullpage.js/index.d.ts diff --git a/fullpage.js/tsconfig.json b/types/fullpage.js/tsconfig.json similarity index 100% rename from fullpage.js/tsconfig.json rename to types/fullpage.js/tsconfig.json diff --git a/fuse/fuse-tests.ts b/types/fuse/fuse-tests.ts similarity index 100% rename from fuse/fuse-tests.ts rename to types/fuse/fuse-tests.ts diff --git a/fuse/index.d.ts b/types/fuse/index.d.ts similarity index 100% rename from fuse/index.d.ts rename to types/fuse/index.d.ts diff --git a/fuse/tsconfig.json b/types/fuse/tsconfig.json similarity index 100% rename from fuse/tsconfig.json rename to types/fuse/tsconfig.json diff --git a/fusioncharts/fusioncharts-tests.ts b/types/fusioncharts/fusioncharts-tests.ts similarity index 100% rename from fusioncharts/fusioncharts-tests.ts rename to types/fusioncharts/fusioncharts-tests.ts diff --git a/fusioncharts/fusioncharts.charts.d.ts b/types/fusioncharts/fusioncharts.charts.d.ts similarity index 100% rename from fusioncharts/fusioncharts.charts.d.ts rename to types/fusioncharts/fusioncharts.charts.d.ts diff --git a/fusioncharts/fusioncharts.gantt.d.ts b/types/fusioncharts/fusioncharts.gantt.d.ts similarity index 100% rename from fusioncharts/fusioncharts.gantt.d.ts rename to types/fusioncharts/fusioncharts.gantt.d.ts diff --git a/fusioncharts/fusioncharts.maps.d.ts b/types/fusioncharts/fusioncharts.maps.d.ts similarity index 100% rename from fusioncharts/fusioncharts.maps.d.ts rename to types/fusioncharts/fusioncharts.maps.d.ts diff --git a/fusioncharts/fusioncharts.powercharts.d.ts b/types/fusioncharts/fusioncharts.powercharts.d.ts similarity index 100% rename from fusioncharts/fusioncharts.powercharts.d.ts rename to types/fusioncharts/fusioncharts.powercharts.d.ts diff --git a/fusioncharts/fusioncharts.ssgrid.d.ts b/types/fusioncharts/fusioncharts.ssgrid.d.ts similarity index 100% rename from fusioncharts/fusioncharts.ssgrid.d.ts rename to types/fusioncharts/fusioncharts.ssgrid.d.ts diff --git a/fusioncharts/fusioncharts.treemap.d.ts b/types/fusioncharts/fusioncharts.treemap.d.ts similarity index 100% rename from fusioncharts/fusioncharts.treemap.d.ts rename to types/fusioncharts/fusioncharts.treemap.d.ts diff --git a/fusioncharts/fusioncharts.widgets.d.ts b/types/fusioncharts/fusioncharts.widgets.d.ts similarity index 100% rename from fusioncharts/fusioncharts.widgets.d.ts rename to types/fusioncharts/fusioncharts.widgets.d.ts diff --git a/fusioncharts/fusioncharts.zoomscatter.d.ts b/types/fusioncharts/fusioncharts.zoomscatter.d.ts similarity index 100% rename from fusioncharts/fusioncharts.zoomscatter.d.ts rename to types/fusioncharts/fusioncharts.zoomscatter.d.ts diff --git a/fusioncharts/index.d.ts b/types/fusioncharts/index.d.ts similarity index 100% rename from fusioncharts/index.d.ts rename to types/fusioncharts/index.d.ts diff --git a/fusioncharts/maps/fusioncharts.usa.d.ts b/types/fusioncharts/maps/fusioncharts.usa.d.ts similarity index 100% rename from fusioncharts/maps/fusioncharts.usa.d.ts rename to types/fusioncharts/maps/fusioncharts.usa.d.ts diff --git a/fusioncharts/maps/fusioncharts.world.d.ts b/types/fusioncharts/maps/fusioncharts.world.d.ts similarity index 100% rename from fusioncharts/maps/fusioncharts.world.d.ts rename to types/fusioncharts/maps/fusioncharts.world.d.ts diff --git a/fusioncharts/themes/fusioncharts.theme.carbon.d.ts b/types/fusioncharts/themes/fusioncharts.theme.carbon.d.ts similarity index 100% rename from fusioncharts/themes/fusioncharts.theme.carbon.d.ts rename to types/fusioncharts/themes/fusioncharts.theme.carbon.d.ts diff --git a/fusioncharts/themes/fusioncharts.theme.fint.d.ts b/types/fusioncharts/themes/fusioncharts.theme.fint.d.ts similarity index 100% rename from fusioncharts/themes/fusioncharts.theme.fint.d.ts rename to types/fusioncharts/themes/fusioncharts.theme.fint.d.ts diff --git a/fusioncharts/themes/fusioncharts.theme.ocean.d.ts b/types/fusioncharts/themes/fusioncharts.theme.ocean.d.ts similarity index 100% rename from fusioncharts/themes/fusioncharts.theme.ocean.d.ts rename to types/fusioncharts/themes/fusioncharts.theme.ocean.d.ts diff --git a/fusioncharts/themes/fusioncharts.theme.zune.d.ts b/types/fusioncharts/themes/fusioncharts.theme.zune.d.ts similarity index 100% rename from fusioncharts/themes/fusioncharts.theme.zune.d.ts rename to types/fusioncharts/themes/fusioncharts.theme.zune.d.ts diff --git a/fusioncharts/tsconfig.json b/types/fusioncharts/tsconfig.json similarity index 100% rename from fusioncharts/tsconfig.json rename to types/fusioncharts/tsconfig.json diff --git a/fusioncharts/tslint.json b/types/fusioncharts/tslint.json similarity index 100% rename from fusioncharts/tslint.json rename to types/fusioncharts/tslint.json diff --git a/fuzzaldrin-plus/fuzzaldrin-plus-tests.ts b/types/fuzzaldrin-plus/fuzzaldrin-plus-tests.ts similarity index 100% rename from fuzzaldrin-plus/fuzzaldrin-plus-tests.ts rename to types/fuzzaldrin-plus/fuzzaldrin-plus-tests.ts diff --git a/fuzzaldrin-plus/index.d.ts b/types/fuzzaldrin-plus/index.d.ts similarity index 100% rename from fuzzaldrin-plus/index.d.ts rename to types/fuzzaldrin-plus/index.d.ts diff --git a/fuzzaldrin-plus/tsconfig.json b/types/fuzzaldrin-plus/tsconfig.json similarity index 100% rename from fuzzaldrin-plus/tsconfig.json rename to types/fuzzaldrin-plus/tsconfig.json diff --git a/fuzzaldrin/index.d.ts b/types/fuzzaldrin/index.d.ts similarity index 100% rename from fuzzaldrin/index.d.ts rename to types/fuzzaldrin/index.d.ts diff --git a/fuzzaldrin/tsconfig.json b/types/fuzzaldrin/tsconfig.json similarity index 100% rename from fuzzaldrin/tsconfig.json rename to types/fuzzaldrin/tsconfig.json diff --git a/fuzzaldrin/tslint.json b/types/fuzzaldrin/tslint.json similarity index 100% rename from fuzzaldrin/tslint.json rename to types/fuzzaldrin/tslint.json diff --git a/fxn/index.d.ts b/types/fxn/index.d.ts similarity index 100% rename from fxn/index.d.ts rename to types/fxn/index.d.ts diff --git a/fxn/tsconfig.json b/types/fxn/tsconfig.json similarity index 100% rename from fxn/tsconfig.json rename to types/fxn/tsconfig.json diff --git a/gae.channel.api/gae.channel.api-tests.ts b/types/gae.channel.api/gae.channel.api-tests.ts similarity index 100% rename from gae.channel.api/gae.channel.api-tests.ts rename to types/gae.channel.api/gae.channel.api-tests.ts diff --git a/gae.channel.api/index.d.ts b/types/gae.channel.api/index.d.ts similarity index 100% rename from gae.channel.api/index.d.ts rename to types/gae.channel.api/index.d.ts diff --git a/gae.channel.api/tsconfig.json b/types/gae.channel.api/tsconfig.json similarity index 100% rename from gae.channel.api/tsconfig.json rename to types/gae.channel.api/tsconfig.json diff --git a/gamepad/gamepad-tests.ts b/types/gamepad/gamepad-tests.ts similarity index 100% rename from gamepad/gamepad-tests.ts rename to types/gamepad/gamepad-tests.ts diff --git a/gamepad/index.d.ts b/types/gamepad/index.d.ts similarity index 100% rename from gamepad/index.d.ts rename to types/gamepad/index.d.ts diff --git a/gamepad/tsconfig.json b/types/gamepad/tsconfig.json similarity index 100% rename from gamepad/tsconfig.json rename to types/gamepad/tsconfig.json diff --git a/gamequery/gamequery-tests.ts b/types/gamequery/gamequery-tests.ts similarity index 100% rename from gamequery/gamequery-tests.ts rename to types/gamequery/gamequery-tests.ts diff --git a/gamequery/index.d.ts b/types/gamequery/index.d.ts similarity index 100% rename from gamequery/index.d.ts rename to types/gamequery/index.d.ts diff --git a/gamequery/tsconfig.json b/types/gamequery/tsconfig.json similarity index 100% rename from gamequery/tsconfig.json rename to types/gamequery/tsconfig.json diff --git a/gandi-livedns/gandi-livedns-tests.ts b/types/gandi-livedns/gandi-livedns-tests.ts similarity index 100% rename from gandi-livedns/gandi-livedns-tests.ts rename to types/gandi-livedns/gandi-livedns-tests.ts diff --git a/gandi-livedns/index.d.ts b/types/gandi-livedns/index.d.ts similarity index 100% rename from gandi-livedns/index.d.ts rename to types/gandi-livedns/index.d.ts diff --git a/gandi-livedns/tsconfig.json b/types/gandi-livedns/tsconfig.json similarity index 100% rename from gandi-livedns/tsconfig.json rename to types/gandi-livedns/tsconfig.json diff --git a/gapi.analytics/gapi.analytics-tests.ts b/types/gapi.analytics/gapi.analytics-tests.ts similarity index 100% rename from gapi.analytics/gapi.analytics-tests.ts rename to types/gapi.analytics/gapi.analytics-tests.ts diff --git a/gapi.analytics/index.d.ts b/types/gapi.analytics/index.d.ts similarity index 100% rename from gapi.analytics/index.d.ts rename to types/gapi.analytics/index.d.ts diff --git a/gapi.analytics/tsconfig.json b/types/gapi.analytics/tsconfig.json similarity index 100% rename from gapi.analytics/tsconfig.json rename to types/gapi.analytics/tsconfig.json diff --git a/gapi.auth2/gapi.auth2-tests.ts b/types/gapi.auth2/gapi.auth2-tests.ts similarity index 100% rename from gapi.auth2/gapi.auth2-tests.ts rename to types/gapi.auth2/gapi.auth2-tests.ts diff --git a/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts similarity index 100% rename from gapi.auth2/index.d.ts rename to types/gapi.auth2/index.d.ts diff --git a/gapi.auth2/tsconfig.json b/types/gapi.auth2/tsconfig.json similarity index 100% rename from gapi.auth2/tsconfig.json rename to types/gapi.auth2/tsconfig.json diff --git a/gapi.calendar/gapi.calendar-tests.ts b/types/gapi.calendar/gapi.calendar-tests.ts similarity index 96% rename from gapi.calendar/gapi.calendar-tests.ts rename to types/gapi.calendar/gapi.calendar-tests.ts index 0438e5dc06..bd42483df5 100644 --- a/gapi.calendar/gapi.calendar-tests.ts +++ b/types/gapi.calendar/gapi.calendar-tests.ts @@ -1,152 +1,152 @@ -/* Example taken from Google Calendar API JavaScript Quickstart https://developers.google.com/google-apps/calendar/quickstart/js */ - -{ - // Your Client ID can be retrieved from your project in the Google - // Developer Console, https://console.developers.google.com - var CLIENT_ID = ''; - - var SCOPES = ["https://www.googleapis.com/auth/calendar.readonly"]; - - /** - * Check if current user has authorized this application. - */ - function checkAuth() { - gapi.auth.authorize( - { - 'client_id': CLIENT_ID, - 'scope': SCOPES.join(' '), - 'immediate': true - }, handleAuthResult); - } - - /** - * Handle response from authorization server. - * - * @param {Object} authResult Authorization result. - */ - function handleAuthResult(authResult: GoogleApiOAuth2TokenObject) { - var authorizeDiv = document.getElementById('authorize-div')!; - if (authResult && !authResult.error) { - // Hide auth UI, then load client library. - authorizeDiv.style.display = 'none'; - loadCalendarApi(); - } else { - // Show auth UI, allowing the user to initiate authorization by - // clicking authorize button. - authorizeDiv.style.display = 'inline'; - } - } - - /** - * Initiate auth flow in response to user clicking authorize button. - * - * @param {Event} event Button click event. - */ - function handleAuthClick(event: MouseEvent) { - gapi.auth.authorize( - {client_id: CLIENT_ID, scope: SCOPES, immediate: false}, - handleAuthResult); - return false; - } - - /** - * Load Google Calendar client library. List upcoming events - * once client library is loaded. - */ - function loadCalendarApi() { - gapi.client.load('calendar', 'v3', listUpcomingEvents); - } - - /** - * Print the summary and start datetime/date of the next ten events in - * the authorized user's calendar. If no events are found an - * appropriate message is printed. - */ - function listUpcomingEvents() { - var request = gapi.client.calendar.events.list({ - 'calendarId': 'primary', - 'timeMin': (new Date()).toISOString(), - 'showDeleted': false, - 'singleEvents': true, - 'maxResults': 10, - 'orderBy': 'startTime' - }); - - request.execute(function(resp) { - var events = resp.items; - appendPre('Upcoming events:'); - - if (events.length > 0) { - for (let i = 0; i < events.length; i++) { - var event = events[i]; - var when = event.start.dateTime; - if (!when) { - when = event.start.date; - } - appendPre(event.summary + ' (' + when + ')') - } - } else { - appendPre('No upcoming events found.'); - } - - }); - } - - /** - * Append a pre element to the body containing the given message - * as its text node. - * - * @param {string} message Text to be placed in pre element. - */ - function appendPre(message: string) { - var pre = document.getElementById('output')!; - var textContent = document.createTextNode(message + '\n'); - pre.appendChild(textContent); - } -} - -/* Example taken from https://developers.google.com/google-apps/calendar/v3/reference/events/insert#examples */ - -{ - // Refer to the JavaScript quickstart on how to setup the environment: - // https://developers.google.com/google-apps/calendar/quickstart/js - // Change the scope to 'https://www.googleapis.com/auth/calendar' and delete any - // stored credentials. - - const event = { - 'summary': 'Google I/O 2015', - 'location': '800 Howard St., San Francisco, CA 94103', - 'description': 'A chance to hear more about Google\'s developer products.', - 'start': { - 'dateTime': '2015-05-28T09:00:00-07:00', - 'timeZone': 'America/Los_Angeles' - }, - 'end': { - 'dateTime': '2015-05-28T17:00:00-07:00', - 'timeZone': 'America/Los_Angeles' - }, - 'recurrence': [ - 'RRULE:FREQ=DAILY;COUNT=2' - ], - 'attendees': [ - {'email': 'lpage@example.com'}, - {'email': 'sbrin@example.com'} - ], - 'reminders': { - 'useDefault': false, - 'overrides': [ - {'method': 'email', 'minutes': 24 * 60}, - {'method': 'popup', 'minutes': 10} - ] - } - }; - - var request = gapi.client.calendar.events.insert({ - 'calendarId': 'primary', - 'resource': event - }); - - request.execute(function(event) { - appendPre('Event created: ' + event.htmlLink); - }); -} +/* Example taken from Google Calendar API JavaScript Quickstart https://developers.google.com/google-apps/calendar/quickstart/js */ + +{ + // Your Client ID can be retrieved from your project in the Google + // Developer Console, https://console.developers.google.com + var CLIENT_ID = ''; + + var SCOPES = ["https://www.googleapis.com/auth/calendar.readonly"]; + + /** + * Check if current user has authorized this application. + */ + function checkAuth() { + gapi.auth.authorize( + { + 'client_id': CLIENT_ID, + 'scope': SCOPES.join(' '), + 'immediate': true + }, handleAuthResult); + } + + /** + * Handle response from authorization server. + * + * @param {Object} authResult Authorization result. + */ + function handleAuthResult(authResult: GoogleApiOAuth2TokenObject) { + var authorizeDiv = document.getElementById('authorize-div')!; + if (authResult && !authResult.error) { + // Hide auth UI, then load client library. + authorizeDiv.style.display = 'none'; + loadCalendarApi(); + } else { + // Show auth UI, allowing the user to initiate authorization by + // clicking authorize button. + authorizeDiv.style.display = 'inline'; + } + } + + /** + * Initiate auth flow in response to user clicking authorize button. + * + * @param {Event} event Button click event. + */ + function handleAuthClick(event: MouseEvent) { + gapi.auth.authorize( + {client_id: CLIENT_ID, scope: SCOPES, immediate: false}, + handleAuthResult); + return false; + } + + /** + * Load Google Calendar client library. List upcoming events + * once client library is loaded. + */ + function loadCalendarApi() { + gapi.client.load('calendar', 'v3', listUpcomingEvents); + } + + /** + * Print the summary and start datetime/date of the next ten events in + * the authorized user's calendar. If no events are found an + * appropriate message is printed. + */ + function listUpcomingEvents() { + var request = gapi.client.calendar.events.list({ + 'calendarId': 'primary', + 'timeMin': (new Date()).toISOString(), + 'showDeleted': false, + 'singleEvents': true, + 'maxResults': 10, + 'orderBy': 'startTime' + }); + + request.execute(function(resp) { + var events = resp.items; + appendPre('Upcoming events:'); + + if (events.length > 0) { + for (let i = 0; i < events.length; i++) { + var event = events[i]; + var when = event.start.dateTime; + if (!when) { + when = event.start.date; + } + appendPre(event.summary + ' (' + when + ')') + } + } else { + appendPre('No upcoming events found.'); + } + + }); + } + + /** + * Append a pre element to the body containing the given message + * as its text node. + * + * @param {string} message Text to be placed in pre element. + */ + function appendPre(message: string) { + var pre = document.getElementById('output')!; + var textContent = document.createTextNode(message + '\n'); + pre.appendChild(textContent); + } +} + +/* Example taken from https://developers.google.com/google-apps/calendar/v3/reference/events/insert#examples */ + +{ + // Refer to the JavaScript quickstart on how to setup the environment: + // https://developers.google.com/google-apps/calendar/quickstart/js + // Change the scope to 'https://www.googleapis.com/auth/calendar' and delete any + // stored credentials. + + const event = { + 'summary': 'Google I/O 2015', + 'location': '800 Howard St., San Francisco, CA 94103', + 'description': 'A chance to hear more about Google\'s developer products.', + 'start': { + 'dateTime': '2015-05-28T09:00:00-07:00', + 'timeZone': 'America/Los_Angeles' + }, + 'end': { + 'dateTime': '2015-05-28T17:00:00-07:00', + 'timeZone': 'America/Los_Angeles' + }, + 'recurrence': [ + 'RRULE:FREQ=DAILY;COUNT=2' + ], + 'attendees': [ + {'email': 'lpage@example.com'}, + {'email': 'sbrin@example.com'} + ], + 'reminders': { + 'useDefault': false, + 'overrides': [ + {'method': 'email', 'minutes': 24 * 60}, + {'method': 'popup', 'minutes': 10} + ] + } + }; + + var request = gapi.client.calendar.events.insert({ + 'calendarId': 'primary', + 'resource': event + }); + + request.execute(function(event) { + appendPre('Event created: ' + event.htmlLink); + }); +} diff --git a/gapi.calendar/index.d.ts b/types/gapi.calendar/index.d.ts similarity index 100% rename from gapi.calendar/index.d.ts rename to types/gapi.calendar/index.d.ts diff --git a/gapi.calendar/tsconfig.json b/types/gapi.calendar/tsconfig.json similarity index 100% rename from gapi.calendar/tsconfig.json rename to types/gapi.calendar/tsconfig.json diff --git a/gapi.pagespeedonline/index.d.ts b/types/gapi.pagespeedonline/index.d.ts similarity index 100% rename from gapi.pagespeedonline/index.d.ts rename to types/gapi.pagespeedonline/index.d.ts diff --git a/gapi.pagespeedonline/tsconfig.json b/types/gapi.pagespeedonline/tsconfig.json similarity index 100% rename from gapi.pagespeedonline/tsconfig.json rename to types/gapi.pagespeedonline/tsconfig.json diff --git a/gapi.people/gapi.people-tests.ts b/types/gapi.people/gapi.people-tests.ts similarity index 100% rename from gapi.people/gapi.people-tests.ts rename to types/gapi.people/gapi.people-tests.ts diff --git a/gapi.people/index.d.ts b/types/gapi.people/index.d.ts similarity index 100% rename from gapi.people/index.d.ts rename to types/gapi.people/index.d.ts diff --git a/gapi.people/tsconfig.json b/types/gapi.people/tsconfig.json similarity index 100% rename from gapi.people/tsconfig.json rename to types/gapi.people/tsconfig.json diff --git a/gapi.plus/gapi.plus-tests.ts b/types/gapi.plus/gapi.plus-tests.ts similarity index 100% rename from gapi.plus/gapi.plus-tests.ts rename to types/gapi.plus/gapi.plus-tests.ts diff --git a/gapi.plus/index.d.ts b/types/gapi.plus/index.d.ts similarity index 100% rename from gapi.plus/index.d.ts rename to types/gapi.plus/index.d.ts diff --git a/gapi.plus/tsconfig.json b/types/gapi.plus/tsconfig.json similarity index 100% rename from gapi.plus/tsconfig.json rename to types/gapi.plus/tsconfig.json diff --git a/gapi.translate/index.d.ts b/types/gapi.translate/index.d.ts similarity index 100% rename from gapi.translate/index.d.ts rename to types/gapi.translate/index.d.ts diff --git a/gapi.translate/tsconfig.json b/types/gapi.translate/tsconfig.json similarity index 100% rename from gapi.translate/tsconfig.json rename to types/gapi.translate/tsconfig.json diff --git a/gapi.urlshortener/index.d.ts b/types/gapi.urlshortener/index.d.ts similarity index 100% rename from gapi.urlshortener/index.d.ts rename to types/gapi.urlshortener/index.d.ts diff --git a/gapi.urlshortener/tsconfig.json b/types/gapi.urlshortener/tsconfig.json similarity index 100% rename from gapi.urlshortener/tsconfig.json rename to types/gapi.urlshortener/tsconfig.json diff --git a/gapi.youtube/index.d.ts b/types/gapi.youtube/index.d.ts similarity index 100% rename from gapi.youtube/index.d.ts rename to types/gapi.youtube/index.d.ts diff --git a/gapi.youtube/tsconfig.json b/types/gapi.youtube/tsconfig.json similarity index 100% rename from gapi.youtube/tsconfig.json rename to types/gapi.youtube/tsconfig.json diff --git a/gapi.youtubeanalytics/index.d.ts b/types/gapi.youtubeanalytics/index.d.ts similarity index 100% rename from gapi.youtubeanalytics/index.d.ts rename to types/gapi.youtubeanalytics/index.d.ts diff --git a/gapi.youtubeanalytics/tsconfig.json b/types/gapi.youtubeanalytics/tsconfig.json similarity index 100% rename from gapi.youtubeanalytics/tsconfig.json rename to types/gapi.youtubeanalytics/tsconfig.json diff --git a/gapi/gapi-tests.ts b/types/gapi/gapi-tests.ts similarity index 96% rename from gapi/gapi-tests.ts rename to types/gapi/gapi-tests.ts index 3c70b9850d..d5d8c032ca 100644 --- a/gapi/gapi-tests.ts +++ b/types/gapi/gapi-tests.ts @@ -1,97 +1,97 @@ -/// -/// - -/* Examples taken from https://developers.google.com/api-client-library/javascript/start/start-js */ - -{ - function start1() { - // 2. Initialize the JavaScript client library. - gapi.client.init({ - 'apiKey': 'YOUR_API_KEY', - 'discoveryDocs': ['https://people.googleapis.com/$discovery/rest'], - // clientId and scope are optional if auth is not required. - 'clientId': 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com', - 'scope': 'profile', - }).then(function() { - // 3. Initialize and make the API request. - return gapi.client.people.people.get({ - resourceName: 'people/me' - }); - }).then(function(response) { - console.log(response.result); - }, function(reason) { - console.log('Error: ' + reason.result.error.message); - }); - }; - // 1. Load the JavaScript client library. - gapi.load('client', start1); -} - -{ - function start2() { - // 2. Initialize the JavaScript client library. - gapi.client.init({ - 'apiKey': 'YOUR_API_KEY', - // clientId and scope are optional if auth is not required. - 'clientId': 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com', - 'scope': 'profile', - }).then(function() { - // 3. Initialize and make the API request. - return gapi.client.request({ - 'path': 'https://people.googleapis.com/v1/people/me', - }) - }).then(function(response) { - console.log(response.result); - }, function(reason) { - console.log('Error: ' + reason.result.error.message); - }); - }; - // 1. Load the JavaScript client library. - gapi.load('client', start2); -} - - -/* Examples taken from https://developers.google.com/api-client-library/javascript/features/promises */ - -gapi.client.request({'path': '/plus/v1/people', 'params': {'query': 'John'}}).then(function(response) { - // Handle response -}, function(reason) { - // Handle error -}); - -gapi.client.load('plus', 'v1').then(function() { - gapi.client.plus.people.search({'query': ''}).then(response => { }); -}); - -var personFetcher = { - results: [], - - // Why this: any? Check https://github.com/Microsoft/TypeScript/issues/10835 - - fetch: function(this: any, name: string) { - gapi.client.request({path: '/plus/v1/people', params:{query: name}}).then(function(this: any, response) { - this.results.push(response.result); - }, function(reason) { - console.error(name, 'was not fetched:', reason.result.error.message); - }, this); - } -}; -personFetcher.fetch('John'); - -gapi.client.request({ - 'path': 'plus/v1/people', - 'params': {'query': name} -}).execute(function(resp, rawResp) { - processResponse(resp); -}); - -gapi.client.request({ - 'path': 'plus/v1/people', - 'params': {'query': name} -}).then(function(resp) { - processResponse(resp.result); -}); - -function processResponse(response: any) { - // Stub -} +/// +/// + +/* Examples taken from https://developers.google.com/api-client-library/javascript/start/start-js */ + +{ + function start1() { + // 2. Initialize the JavaScript client library. + gapi.client.init({ + 'apiKey': 'YOUR_API_KEY', + 'discoveryDocs': ['https://people.googleapis.com/$discovery/rest'], + // clientId and scope are optional if auth is not required. + 'clientId': 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com', + 'scope': 'profile', + }).then(function() { + // 3. Initialize and make the API request. + return gapi.client.people.people.get({ + resourceName: 'people/me' + }); + }).then(function(response) { + console.log(response.result); + }, function(reason) { + console.log('Error: ' + reason.result.error.message); + }); + }; + // 1. Load the JavaScript client library. + gapi.load('client', start1); +} + +{ + function start2() { + // 2. Initialize the JavaScript client library. + gapi.client.init({ + 'apiKey': 'YOUR_API_KEY', + // clientId and scope are optional if auth is not required. + 'clientId': 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com', + 'scope': 'profile', + }).then(function() { + // 3. Initialize and make the API request. + return gapi.client.request({ + 'path': 'https://people.googleapis.com/v1/people/me', + }) + }).then(function(response) { + console.log(response.result); + }, function(reason) { + console.log('Error: ' + reason.result.error.message); + }); + }; + // 1. Load the JavaScript client library. + gapi.load('client', start2); +} + + +/* Examples taken from https://developers.google.com/api-client-library/javascript/features/promises */ + +gapi.client.request({'path': '/plus/v1/people', 'params': {'query': 'John'}}).then(function(response) { + // Handle response +}, function(reason) { + // Handle error +}); + +gapi.client.load('plus', 'v1').then(function() { + gapi.client.plus.people.search({'query': ''}).then(response => { }); +}); + +var personFetcher = { + results: [], + + // Why this: any? Check https://github.com/Microsoft/TypeScript/issues/10835 + + fetch: function(this: any, name: string) { + gapi.client.request({path: '/plus/v1/people', params:{query: name}}).then(function(this: any, response) { + this.results.push(response.result); + }, function(reason) { + console.error(name, 'was not fetched:', reason.result.error.message); + }, this); + } +}; +personFetcher.fetch('John'); + +gapi.client.request({ + 'path': 'plus/v1/people', + 'params': {'query': name} +}).execute(function(resp, rawResp) { + processResponse(resp); +}); + +gapi.client.request({ + 'path': 'plus/v1/people', + 'params': {'query': name} +}).then(function(resp) { + processResponse(resp.result); +}); + +function processResponse(response: any) { + // Stub +} diff --git a/gapi/index.d.ts b/types/gapi/index.d.ts similarity index 100% rename from gapi/index.d.ts rename to types/gapi/index.d.ts diff --git a/gapi/tsconfig.json b/types/gapi/tsconfig.json similarity index 100% rename from gapi/tsconfig.json rename to types/gapi/tsconfig.json diff --git a/gaussian/gaussian-tests.ts b/types/gaussian/gaussian-tests.ts similarity index 100% rename from gaussian/gaussian-tests.ts rename to types/gaussian/gaussian-tests.ts diff --git a/gaussian/index.d.ts b/types/gaussian/index.d.ts similarity index 98% rename from gaussian/index.d.ts rename to types/gaussian/index.d.ts index f0012597cb..fb34d74641 100644 --- a/gaussian/index.d.ts +++ b/types/gaussian/index.d.ts @@ -9,7 +9,7 @@ export = gaussian; export as namespace gaussian; declare namespace gaussian { - export interface Gaussian { + interface Gaussian { /** * the mean (μ) of the distribution */ diff --git a/gaussian/tsconfig.json b/types/gaussian/tsconfig.json similarity index 100% rename from gaussian/tsconfig.json rename to types/gaussian/tsconfig.json diff --git a/gaussian/tslint.json b/types/gaussian/tslint.json similarity index 100% rename from gaussian/tslint.json rename to types/gaussian/tslint.json diff --git a/generic-functions/generic-functions-tests.ts b/types/generic-functions/generic-functions-tests.ts similarity index 100% rename from generic-functions/generic-functions-tests.ts rename to types/generic-functions/generic-functions-tests.ts diff --git a/generic-functions/index.d.ts b/types/generic-functions/index.d.ts similarity index 100% rename from generic-functions/index.d.ts rename to types/generic-functions/index.d.ts diff --git a/generic-functions/tsconfig.json b/types/generic-functions/tsconfig.json similarity index 100% rename from generic-functions/tsconfig.json rename to types/generic-functions/tsconfig.json diff --git a/gently/gently-tests.ts b/types/gently/gently-tests.ts similarity index 100% rename from gently/gently-tests.ts rename to types/gently/gently-tests.ts diff --git a/gently/index.d.ts b/types/gently/index.d.ts similarity index 100% rename from gently/index.d.ts rename to types/gently/index.d.ts diff --git a/gently/tsconfig.json b/types/gently/tsconfig.json similarity index 100% rename from gently/tsconfig.json rename to types/gently/tsconfig.json diff --git a/geodesy/geodesy-tests.ts b/types/geodesy/geodesy-tests.ts similarity index 99% rename from geodesy/geodesy-tests.ts rename to types/geodesy/geodesy-tests.ts index 53c3b5c05c..e3ce4f627a 100644 --- a/geodesy/geodesy-tests.ts +++ b/types/geodesy/geodesy-tests.ts @@ -23,7 +23,6 @@ const zoneMgrs = mgrs.zone; mgrs.toString(); mgrs.toUtm(); - // Static Functions Mgrs.parse('31U DQ 48251 11932'); diff --git a/geodesy/index.d.ts b/types/geodesy/index.d.ts similarity index 93% rename from geodesy/index.d.ts rename to types/geodesy/index.d.ts index d5436f073d..12adb4d7c1 100644 --- a/geodesy/index.d.ts +++ b/types/geodesy/index.d.ts @@ -43,7 +43,7 @@ export interface Ellipsoids { Bessel1841: Ellipsoid; } -export declare class Mgrs { +export class Mgrs { zone: number; band: string; e100k: string; @@ -68,7 +68,7 @@ export declare class Mgrs { toString(digits?: 2 | 4 | 6 | 8 | 10): string; } -export declare class Utm { +export class Utm { zone: number; hemisphere: hemisphere; easting: number; @@ -91,11 +91,11 @@ export declare class Utm { toString(digits?: number): string; } -export declare namespace Dms { - export let separator: string; +export namespace Dms { + let separator: string; } -export declare class Dms { +export class Dms { static parseDMS(dmsStr: string): number; static toDMS(deg: number, format?: format, dp?: 0 | 2 | 4): string; static toLat(deg: number, format?: format, dp?: 0 | 2 | 4): string; @@ -104,7 +104,7 @@ export declare class Dms { static compassPoint(bearing: number, precision?: 1 | 2 | 3): string; } -export declare class Vector3d { +export class Vector3d { x: number; y: number; z: number; @@ -125,7 +125,7 @@ export declare class Vector3d { applyTransform(t: number[]): Vector3d; } -export declare class OsGridRef { +export class OsGridRef { easting: number; northing: number; constructor(easting: number, northing: number); @@ -135,7 +135,7 @@ export declare class OsGridRef { toString(digits?: number): string; } -export declare class LatLonEllipsoidal { +export class LatLonEllipsoidal { lat: number; lon: number; datum: Datum; diff --git a/geodesy/tsconfig.json b/types/geodesy/tsconfig.json similarity index 100% rename from geodesy/tsconfig.json rename to types/geodesy/tsconfig.json diff --git a/geodesy/tslint.json b/types/geodesy/tslint.json similarity index 100% rename from geodesy/tslint.json rename to types/geodesy/tslint.json diff --git a/geoip-lite/geoip-lite-tests.ts b/types/geoip-lite/geoip-lite-tests.ts similarity index 100% rename from geoip-lite/geoip-lite-tests.ts rename to types/geoip-lite/geoip-lite-tests.ts diff --git a/geoip-lite/index.d.ts b/types/geoip-lite/index.d.ts similarity index 100% rename from geoip-lite/index.d.ts rename to types/geoip-lite/index.d.ts diff --git a/geoip-lite/tsconfig.json b/types/geoip-lite/tsconfig.json similarity index 100% rename from geoip-lite/tsconfig.json rename to types/geoip-lite/tsconfig.json diff --git a/geojson/geojson-tests.ts b/types/geojson/geojson-tests.ts similarity index 100% rename from geojson/geojson-tests.ts rename to types/geojson/geojson-tests.ts diff --git a/geojson/index.d.ts b/types/geojson/index.d.ts similarity index 100% rename from geojson/index.d.ts rename to types/geojson/index.d.ts diff --git a/geojson/tsconfig.json b/types/geojson/tsconfig.json similarity index 100% rename from geojson/tsconfig.json rename to types/geojson/tsconfig.json diff --git a/geojson/tslint.json b/types/geojson/tslint.json similarity index 100% rename from geojson/tslint.json rename to types/geojson/tslint.json diff --git a/geojson2osm/geojson2osm-tests.ts b/types/geojson2osm/geojson2osm-tests.ts similarity index 100% rename from geojson2osm/geojson2osm-tests.ts rename to types/geojson2osm/geojson2osm-tests.ts diff --git a/geojson2osm/index.d.ts b/types/geojson2osm/index.d.ts similarity index 100% rename from geojson2osm/index.d.ts rename to types/geojson2osm/index.d.ts diff --git a/geojson2osm/tsconfig.json b/types/geojson2osm/tsconfig.json similarity index 100% rename from geojson2osm/tsconfig.json rename to types/geojson2osm/tsconfig.json diff --git a/geolib/geolib-tests.ts b/types/geolib/geolib-tests.ts similarity index 100% rename from geolib/geolib-tests.ts rename to types/geolib/geolib-tests.ts diff --git a/geolib/index.d.ts b/types/geolib/index.d.ts similarity index 95% rename from geolib/index.d.ts rename to types/geolib/index.d.ts index 69a6c99353..95779ab2c9 100644 --- a/geolib/index.d.ts +++ b/types/geolib/index.d.ts @@ -4,25 +4,25 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace geolib { - export interface PositionAsDecimal { + interface PositionAsDecimal { latitude: number; longitude: number; } - export interface PositionAsSexadecimal { + interface PositionAsSexadecimal { latitude: string; longitude: string; } - export interface PositionWithElevation extends PositionAsDecimal { + interface PositionWithElevation extends PositionAsDecimal { elevation?: number; } - export interface PositionInTime extends PositionAsDecimal { + interface PositionInTime extends PositionAsDecimal { time: number; } - export interface Bound { + interface Bound { minLat: number; maxLat: number; minLng: number; @@ -31,19 +31,19 @@ declare namespace geolib { maxElev?: number; } - export interface CompassDirection { + interface CompassDirection { rough: string; exact: string; } - export interface Distance { + interface Distance { latitude: number; longitude: number; distance: number; key: string; } - export interface SpeedOption { + interface SpeedOption { unit: string; } @@ -60,13 +60,11 @@ declare namespace geolib { */ function getDistanceSimple(start: PositionAsDecimal|PositionAsSexadecimal, end: PositionAsDecimal|PositionAsSexadecimal, accuracy?: number): number; - /** Calculates the geographical center of all points in a collection of geo coordinates * Takes an object or array of coordinates and calculates the center of it. */ function getCenter(coords: PositionAsDecimal[]): PositionAsDecimal; - /** Calculates the center of the bounds of geo coordinates. Takes an array of coordinates, * calculate the border of those, and gives back the center of that rectangle. On polygons * like political borders (eg. states), this may gives a closer result to human expectation, @@ -76,28 +74,24 @@ declare namespace geolib { */ function getCenterOfBounds(coords: PositionAsDecimal[]): PositionAsDecimal; - /** Calculates the bounds of geo coordinates. * * Returns maximum and minimum, latitude, longitude, and elevation (if provided) in form of an object */ function getBounds(coords: PositionWithElevation[]): Bound; - /** Checks whether a point is inside of a polygon or not. Note: the polygon coords must be in correct order! * * Returns true or false */ function isPointInside(latlng: PositionAsDecimal, polygon: PositionAsDecimal[]): boolean; - /** Similar to is point inside: checks whether a point is inside of a circle or not. * * Returns true or false */ function isPointInCircle(latlng: PositionAsDecimal, center: PositionAsDecimal, radius: number): boolean; - /** Gets rhumb line bearing of two points. Find out about the difference between rhumb line and great circle bearing on Wikipedia. * Rhumb line should be fine in most cases: http://en.wikipedia.org/wiki/Rhumb_line#General_and_mathematical_description Function * is heavily based on Doug Vanderweide's great PHP version (licensed under GPL 3.0) @@ -107,14 +101,12 @@ declare namespace geolib { */ function getRhumbLineBearing(originLL: PositionAsDecimal, destLL: PositionAsDecimal): number; - /** Gets great circle bearing of two points. See description of getRhumbLineBearing for more information. * * Returns calculated bearing as integer */ function getBearing(originLL: PositionAsDecimal, destLL: PositionAsDecimal): number; - /** Gets the compass direction from an origin coordinate (originLL) to a destination coordinate (destLL). * Bearing mode. Can be either circle or rhumbline (default). * @@ -122,15 +114,12 @@ declare namespace geolib { */ function getCompassDirection(originLL: PositionAsDecimal, destLL: PositionAsDecimal, bearingMode?: string): CompassDirection; - /** Sorts an object or array of coords by distance from a reference coordinate */ function orderByDistance(latlng: PositionAsDecimal, coords: PositionAsDecimal[]): Distance[]; - /** Finds the nearest coordinate to a reference coordinate. */ function findNearest(latlng: PositionAsDecimal, coords: PositionAsDecimal[], offset?: number, limit?: number): Distance[]; - /** Calculates the length of a collection of coordinates. * * Returns the length of the path in meters */ @@ -142,11 +131,9 @@ declare namespace geolib { */ function getSpeed(coords: PositionInTime[], option?: SpeedOption): number; - /** Calculates if given point lies in a line formed by start and end */ function isPointInLine(point: PositionAsDecimal, start: PositionAsDecimal, end: PositionAsDecimal): boolean; - /** Converts a given distance (in meters) to another unit. * distance distance to be converted (source must be in meter). unit can be one of: * - m (meter) @@ -161,11 +148,9 @@ declare namespace geolib { */ function convertUnit(unit: string, distance: number, round?: number): number; - /** Converts a sexagesimal coordinate to decimal format */ function sexagesimal2decimal(coord: string): number; - /** Converts a decimal coordinate to sexagesimal format */ function decimal2sexagesimal(coord: number): string; @@ -184,11 +169,9 @@ declare namespace geolib { */ function elevation(latlng: any): number; - /** Checks if a coordinate is already in decimal format and, if not, converts it to */ function useDecimal(latlng: string|number): number; - /** Computes the destination point given an initial point, a distance (in meters) and a bearing (in degrees). * If no radius is given it defaults to the mean earth radius of 6371000 meter. * diff --git a/geolib/tsconfig.json b/types/geolib/tsconfig.json similarity index 100% rename from geolib/tsconfig.json rename to types/geolib/tsconfig.json diff --git a/types/geolib/tslint.json b/types/geolib/tslint.json new file mode 100644 index 0000000000..d3631e8907 --- /dev/null +++ b/types/geolib/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "../tslint.json", + "rules": { + "no-useless-files": false + } +} diff --git a/geometry-dom/geometry-dom-tests.ts b/types/geometry-dom/geometry-dom-tests.ts similarity index 100% rename from geometry-dom/geometry-dom-tests.ts rename to types/geometry-dom/geometry-dom-tests.ts diff --git a/geometry-dom/index.d.ts b/types/geometry-dom/index.d.ts similarity index 100% rename from geometry-dom/index.d.ts rename to types/geometry-dom/index.d.ts diff --git a/geometry-dom/tsconfig.json b/types/geometry-dom/tsconfig.json similarity index 100% rename from geometry-dom/tsconfig.json rename to types/geometry-dom/tsconfig.json diff --git a/geopattern/geopattern-tests.ts b/types/geopattern/geopattern-tests.ts similarity index 100% rename from geopattern/geopattern-tests.ts rename to types/geopattern/geopattern-tests.ts diff --git a/geopattern/index.d.ts b/types/geopattern/index.d.ts similarity index 100% rename from geopattern/index.d.ts rename to types/geopattern/index.d.ts diff --git a/geopattern/tsconfig.json b/types/geopattern/tsconfig.json similarity index 100% rename from geopattern/tsconfig.json rename to types/geopattern/tsconfig.json diff --git a/geolib/tslint.json b/types/geopattern/tslint.json similarity index 100% rename from geolib/tslint.json rename to types/geopattern/tslint.json diff --git a/get-port/get-port-tests.ts b/types/get-port/get-port-tests.ts similarity index 100% rename from get-port/get-port-tests.ts rename to types/get-port/get-port-tests.ts diff --git a/get-port/index.d.ts b/types/get-port/index.d.ts similarity index 100% rename from get-port/index.d.ts rename to types/get-port/index.d.ts diff --git a/get-port/tsconfig.json b/types/get-port/tsconfig.json similarity index 100% rename from get-port/tsconfig.json rename to types/get-port/tsconfig.json diff --git a/get-stdin/get-stdin-tests.ts b/types/get-stdin/get-stdin-tests.ts similarity index 100% rename from get-stdin/get-stdin-tests.ts rename to types/get-stdin/get-stdin-tests.ts diff --git a/get-stdin/index.d.ts b/types/get-stdin/index.d.ts similarity index 88% rename from get-stdin/index.d.ts rename to types/get-stdin/index.d.ts index 9539b520b9..2d1b15ae98 100644 --- a/get-stdin/index.d.ts +++ b/types/get-stdin/index.d.ts @@ -7,7 +7,7 @@ declare function getStdin(): Promise; declare namespace getStdin { - export function buffer(): Promise; + function buffer(): Promise; } export = getStdin; diff --git a/get-stdin/tsconfig.json b/types/get-stdin/tsconfig.json similarity index 100% rename from get-stdin/tsconfig.json rename to types/get-stdin/tsconfig.json diff --git a/geopattern/tslint.json b/types/get-stdin/tslint.json similarity index 100% rename from geopattern/tslint.json rename to types/get-stdin/tslint.json diff --git a/gettext.js/gettext.js-tests.ts b/types/gettext.js/gettext.js-tests.ts similarity index 100% rename from gettext.js/gettext.js-tests.ts rename to types/gettext.js/gettext.js-tests.ts diff --git a/gettext.js/index.d.ts b/types/gettext.js/index.d.ts similarity index 100% rename from gettext.js/index.d.ts rename to types/gettext.js/index.d.ts diff --git a/gettext.js/tsconfig.json b/types/gettext.js/tsconfig.json similarity index 100% rename from gettext.js/tsconfig.json rename to types/gettext.js/tsconfig.json diff --git a/gettext.js/tslint.json b/types/gettext.js/tslint.json similarity index 100% rename from gettext.js/tslint.json rename to types/gettext.js/tslint.json diff --git a/gijgo/gijgo-tests.ts b/types/gijgo/gijgo-tests.ts similarity index 100% rename from gijgo/gijgo-tests.ts rename to types/gijgo/gijgo-tests.ts diff --git a/gijgo/index.d.ts b/types/gijgo/index.d.ts similarity index 100% rename from gijgo/index.d.ts rename to types/gijgo/index.d.ts diff --git a/gijgo/tsconfig.json b/types/gijgo/tsconfig.json similarity index 100% rename from gijgo/tsconfig.json rename to types/gijgo/tsconfig.json diff --git a/giraffe/giraffe-tests.ts b/types/giraffe/giraffe-tests.ts similarity index 100% rename from giraffe/giraffe-tests.ts rename to types/giraffe/giraffe-tests.ts diff --git a/giraffe/index.d.ts b/types/giraffe/index.d.ts similarity index 100% rename from giraffe/index.d.ts rename to types/giraffe/index.d.ts diff --git a/giraffe/tsconfig.json b/types/giraffe/tsconfig.json similarity index 100% rename from giraffe/tsconfig.json rename to types/giraffe/tsconfig.json diff --git a/git-config/git-config-tests.ts b/types/git-config/git-config-tests.ts similarity index 100% rename from git-config/git-config-tests.ts rename to types/git-config/git-config-tests.ts diff --git a/git-config/index.d.ts b/types/git-config/index.d.ts similarity index 100% rename from git-config/index.d.ts rename to types/git-config/index.d.ts diff --git a/git-config/tsconfig.json b/types/git-config/tsconfig.json similarity index 100% rename from git-config/tsconfig.json rename to types/git-config/tsconfig.json diff --git a/git-remote-origin-url/git-remote-origin-url-tests.ts b/types/git-remote-origin-url/git-remote-origin-url-tests.ts similarity index 100% rename from git-remote-origin-url/git-remote-origin-url-tests.ts rename to types/git-remote-origin-url/git-remote-origin-url-tests.ts diff --git a/git-remote-origin-url/index.d.ts b/types/git-remote-origin-url/index.d.ts similarity index 100% rename from git-remote-origin-url/index.d.ts rename to types/git-remote-origin-url/index.d.ts diff --git a/git-remote-origin-url/tsconfig.json b/types/git-remote-origin-url/tsconfig.json similarity index 100% rename from git-remote-origin-url/tsconfig.json rename to types/git-remote-origin-url/tsconfig.json diff --git a/get-stdin/tslint.json b/types/git-remote-origin-url/tslint.json similarity index 100% rename from get-stdin/tslint.json rename to types/git-remote-origin-url/tslint.json diff --git a/git/git-tests.ts b/types/git/git-tests.ts similarity index 100% rename from git/git-tests.ts rename to types/git/git-tests.ts diff --git a/git/index.d.ts b/types/git/index.d.ts similarity index 100% rename from git/index.d.ts rename to types/git/index.d.ts diff --git a/git/tsconfig.json b/types/git/tsconfig.json similarity index 100% rename from git/tsconfig.json rename to types/git/tsconfig.json diff --git a/github/github-tests.ts b/types/github/github-tests.ts similarity index 100% rename from github/github-tests.ts rename to types/github/github-tests.ts diff --git a/github/index.d.ts b/types/github/index.d.ts similarity index 100% rename from github/index.d.ts rename to types/github/index.d.ts diff --git a/github/tsconfig.json b/types/github/tsconfig.json similarity index 100% rename from github/tsconfig.json rename to types/github/tsconfig.json diff --git a/gl-matrix/gl-matrix-tests.ts b/types/gl-matrix/gl-matrix-tests.ts similarity index 100% rename from gl-matrix/gl-matrix-tests.ts rename to types/gl-matrix/gl-matrix-tests.ts diff --git a/gl-matrix/index.d.ts b/types/gl-matrix/index.d.ts similarity index 100% rename from gl-matrix/index.d.ts rename to types/gl-matrix/index.d.ts diff --git a/gl-matrix/tsconfig.json b/types/gl-matrix/tsconfig.json similarity index 100% rename from gl-matrix/tsconfig.json rename to types/gl-matrix/tsconfig.json diff --git a/gldatepicker/gldatepicker-tests.ts b/types/gldatepicker/gldatepicker-tests.ts similarity index 100% rename from gldatepicker/gldatepicker-tests.ts rename to types/gldatepicker/gldatepicker-tests.ts diff --git a/gldatepicker/index.d.ts b/types/gldatepicker/index.d.ts similarity index 100% rename from gldatepicker/index.d.ts rename to types/gldatepicker/index.d.ts diff --git a/gldatepicker/tsconfig.json b/types/gldatepicker/tsconfig.json similarity index 100% rename from gldatepicker/tsconfig.json rename to types/gldatepicker/tsconfig.json diff --git a/glidejs/glidejs-tests.ts b/types/glidejs/glidejs-tests.ts similarity index 100% rename from glidejs/glidejs-tests.ts rename to types/glidejs/glidejs-tests.ts diff --git a/glidejs/index.d.ts b/types/glidejs/index.d.ts similarity index 100% rename from glidejs/index.d.ts rename to types/glidejs/index.d.ts diff --git a/glidejs/tsconfig.json b/types/glidejs/tsconfig.json similarity index 100% rename from glidejs/tsconfig.json rename to types/glidejs/tsconfig.json diff --git a/glob-expand/glob-expand-tests.ts b/types/glob-expand/glob-expand-tests.ts similarity index 100% rename from glob-expand/glob-expand-tests.ts rename to types/glob-expand/glob-expand-tests.ts diff --git a/glob-expand/index.d.ts b/types/glob-expand/index.d.ts similarity index 100% rename from glob-expand/index.d.ts rename to types/glob-expand/index.d.ts diff --git a/glob-expand/tsconfig.json b/types/glob-expand/tsconfig.json similarity index 100% rename from glob-expand/tsconfig.json rename to types/glob-expand/tsconfig.json diff --git a/glob-stream/glob-stream-tests.ts b/types/glob-stream/glob-stream-tests.ts similarity index 100% rename from glob-stream/glob-stream-tests.ts rename to types/glob-stream/glob-stream-tests.ts diff --git a/glob-stream/index.d.ts b/types/glob-stream/index.d.ts similarity index 100% rename from glob-stream/index.d.ts rename to types/glob-stream/index.d.ts diff --git a/glob-stream/tsconfig.json b/types/glob-stream/tsconfig.json similarity index 100% rename from glob-stream/tsconfig.json rename to types/glob-stream/tsconfig.json diff --git a/glob/glob-tests.ts b/types/glob/glob-tests.ts similarity index 100% rename from glob/glob-tests.ts rename to types/glob/glob-tests.ts diff --git a/glob/index.d.ts b/types/glob/index.d.ts similarity index 100% rename from glob/index.d.ts rename to types/glob/index.d.ts diff --git a/glob/tsconfig.json b/types/glob/tsconfig.json similarity index 100% rename from glob/tsconfig.json rename to types/glob/tsconfig.json diff --git a/globalize-compiler/globalize-compiler-tests.ts b/types/globalize-compiler/globalize-compiler-tests.ts similarity index 100% rename from globalize-compiler/globalize-compiler-tests.ts rename to types/globalize-compiler/globalize-compiler-tests.ts diff --git a/globalize-compiler/index.d.ts b/types/globalize-compiler/index.d.ts similarity index 100% rename from globalize-compiler/index.d.ts rename to types/globalize-compiler/index.d.ts diff --git a/globalize-compiler/tsconfig.json b/types/globalize-compiler/tsconfig.json similarity index 100% rename from globalize-compiler/tsconfig.json rename to types/globalize-compiler/tsconfig.json diff --git a/globalize/globalize-tests.ts b/types/globalize/globalize-tests.ts similarity index 100% rename from globalize/globalize-tests.ts rename to types/globalize/globalize-tests.ts diff --git a/globalize/index.d.ts b/types/globalize/index.d.ts similarity index 100% rename from globalize/index.d.ts rename to types/globalize/index.d.ts diff --git a/globalize/tsconfig.json b/types/globalize/tsconfig.json similarity index 100% rename from globalize/tsconfig.json rename to types/globalize/tsconfig.json diff --git a/globule/globule-tests.ts b/types/globule/globule-tests.ts similarity index 100% rename from globule/globule-tests.ts rename to types/globule/globule-tests.ts diff --git a/globule/index.d.ts b/types/globule/index.d.ts similarity index 100% rename from globule/index.d.ts rename to types/globule/index.d.ts diff --git a/globule/tsconfig.json b/types/globule/tsconfig.json similarity index 100% rename from globule/tsconfig.json rename to types/globule/tsconfig.json diff --git a/git-remote-origin-url/tslint.json b/types/globule/tslint.json similarity index 100% rename from git-remote-origin-url/tslint.json rename to types/globule/tslint.json diff --git a/gm/gm-tests.ts b/types/gm/gm-tests.ts similarity index 100% rename from gm/gm-tests.ts rename to types/gm/gm-tests.ts diff --git a/gm/index.d.ts b/types/gm/index.d.ts similarity index 100% rename from gm/index.d.ts rename to types/gm/index.d.ts diff --git a/gm/tsconfig.json b/types/gm/tsconfig.json similarity index 100% rename from gm/tsconfig.json rename to types/gm/tsconfig.json diff --git a/go/go-tests.ts b/types/go/go-tests.ts similarity index 100% rename from go/go-tests.ts rename to types/go/go-tests.ts diff --git a/go/index.d.ts b/types/go/index.d.ts similarity index 100% rename from go/index.d.ts rename to types/go/index.d.ts diff --git a/go/tsconfig.json b/types/go/tsconfig.json similarity index 100% rename from go/tsconfig.json rename to types/go/tsconfig.json diff --git a/google-apps-script/NOTICE b/types/google-apps-script/NOTICE similarity index 100% rename from google-apps-script/NOTICE rename to types/google-apps-script/NOTICE diff --git a/google-apps-script/google-apps-script-tests.ts b/types/google-apps-script/google-apps-script-tests.ts similarity index 100% rename from google-apps-script/google-apps-script-tests.ts rename to types/google-apps-script/google-apps-script-tests.ts diff --git a/google-apps-script/google-apps-script.base.d.ts b/types/google-apps-script/google-apps-script.base.d.ts similarity index 100% rename from google-apps-script/google-apps-script.base.d.ts rename to types/google-apps-script/google-apps-script.base.d.ts diff --git a/google-apps-script/google-apps-script.cache.d.ts b/types/google-apps-script/google-apps-script.cache.d.ts similarity index 100% rename from google-apps-script/google-apps-script.cache.d.ts rename to types/google-apps-script/google-apps-script.cache.d.ts diff --git a/google-apps-script/google-apps-script.calendar.d.ts b/types/google-apps-script/google-apps-script.calendar.d.ts similarity index 100% rename from google-apps-script/google-apps-script.calendar.d.ts rename to types/google-apps-script/google-apps-script.calendar.d.ts diff --git a/google-apps-script/google-apps-script.charts.d.ts b/types/google-apps-script/google-apps-script.charts.d.ts similarity index 100% rename from google-apps-script/google-apps-script.charts.d.ts rename to types/google-apps-script/google-apps-script.charts.d.ts diff --git a/google-apps-script/google-apps-script.contacts.d.ts b/types/google-apps-script/google-apps-script.contacts.d.ts similarity index 100% rename from google-apps-script/google-apps-script.contacts.d.ts rename to types/google-apps-script/google-apps-script.contacts.d.ts diff --git a/google-apps-script/google-apps-script.content.d.ts b/types/google-apps-script/google-apps-script.content.d.ts similarity index 100% rename from google-apps-script/google-apps-script.content.d.ts rename to types/google-apps-script/google-apps-script.content.d.ts diff --git a/google-apps-script/google-apps-script.document.d.ts b/types/google-apps-script/google-apps-script.document.d.ts similarity index 100% rename from google-apps-script/google-apps-script.document.d.ts rename to types/google-apps-script/google-apps-script.document.d.ts diff --git a/google-apps-script/google-apps-script.drive.d.ts b/types/google-apps-script/google-apps-script.drive.d.ts similarity index 100% rename from google-apps-script/google-apps-script.drive.d.ts rename to types/google-apps-script/google-apps-script.drive.d.ts diff --git a/google-apps-script/google-apps-script.forms.d.ts b/types/google-apps-script/google-apps-script.forms.d.ts similarity index 100% rename from google-apps-script/google-apps-script.forms.d.ts rename to types/google-apps-script/google-apps-script.forms.d.ts diff --git a/google-apps-script/google-apps-script.gmail.d.ts b/types/google-apps-script/google-apps-script.gmail.d.ts similarity index 100% rename from google-apps-script/google-apps-script.gmail.d.ts rename to types/google-apps-script/google-apps-script.gmail.d.ts diff --git a/google-apps-script/google-apps-script.groups.d.ts b/types/google-apps-script/google-apps-script.groups.d.ts similarity index 100% rename from google-apps-script/google-apps-script.groups.d.ts rename to types/google-apps-script/google-apps-script.groups.d.ts diff --git a/google-apps-script/google-apps-script.html.d.ts b/types/google-apps-script/google-apps-script.html.d.ts similarity index 100% rename from google-apps-script/google-apps-script.html.d.ts rename to types/google-apps-script/google-apps-script.html.d.ts diff --git a/google-apps-script/google-apps-script.jdbc.d.ts b/types/google-apps-script/google-apps-script.jdbc.d.ts similarity index 100% rename from google-apps-script/google-apps-script.jdbc.d.ts rename to types/google-apps-script/google-apps-script.jdbc.d.ts diff --git a/google-apps-script/google-apps-script.language.d.ts b/types/google-apps-script/google-apps-script.language.d.ts similarity index 100% rename from google-apps-script/google-apps-script.language.d.ts rename to types/google-apps-script/google-apps-script.language.d.ts diff --git a/google-apps-script/google-apps-script.lock.d.ts b/types/google-apps-script/google-apps-script.lock.d.ts similarity index 100% rename from google-apps-script/google-apps-script.lock.d.ts rename to types/google-apps-script/google-apps-script.lock.d.ts diff --git a/google-apps-script/google-apps-script.mail.d.ts b/types/google-apps-script/google-apps-script.mail.d.ts similarity index 100% rename from google-apps-script/google-apps-script.mail.d.ts rename to types/google-apps-script/google-apps-script.mail.d.ts diff --git a/google-apps-script/google-apps-script.maps.d.ts b/types/google-apps-script/google-apps-script.maps.d.ts similarity index 100% rename from google-apps-script/google-apps-script.maps.d.ts rename to types/google-apps-script/google-apps-script.maps.d.ts diff --git a/google-apps-script/google-apps-script.optimization.d.ts b/types/google-apps-script/google-apps-script.optimization.d.ts similarity index 100% rename from google-apps-script/google-apps-script.optimization.d.ts rename to types/google-apps-script/google-apps-script.optimization.d.ts diff --git a/google-apps-script/google-apps-script.properties.d.ts b/types/google-apps-script/google-apps-script.properties.d.ts similarity index 100% rename from google-apps-script/google-apps-script.properties.d.ts rename to types/google-apps-script/google-apps-script.properties.d.ts diff --git a/google-apps-script/google-apps-script.script.d.ts b/types/google-apps-script/google-apps-script.script.d.ts similarity index 100% rename from google-apps-script/google-apps-script.script.d.ts rename to types/google-apps-script/google-apps-script.script.d.ts diff --git a/google-apps-script/google-apps-script.sites.d.ts b/types/google-apps-script/google-apps-script.sites.d.ts similarity index 100% rename from google-apps-script/google-apps-script.sites.d.ts rename to types/google-apps-script/google-apps-script.sites.d.ts diff --git a/google-apps-script/google-apps-script.spreadsheet.d.ts b/types/google-apps-script/google-apps-script.spreadsheet.d.ts similarity index 100% rename from google-apps-script/google-apps-script.spreadsheet.d.ts rename to types/google-apps-script/google-apps-script.spreadsheet.d.ts diff --git a/google-apps-script/google-apps-script.types.d.ts b/types/google-apps-script/google-apps-script.types.d.ts similarity index 100% rename from google-apps-script/google-apps-script.types.d.ts rename to types/google-apps-script/google-apps-script.types.d.ts diff --git a/google-apps-script/google-apps-script.ui.d.ts b/types/google-apps-script/google-apps-script.ui.d.ts similarity index 100% rename from google-apps-script/google-apps-script.ui.d.ts rename to types/google-apps-script/google-apps-script.ui.d.ts diff --git a/google-apps-script/google-apps-script.url-fetch.d.ts b/types/google-apps-script/google-apps-script.url-fetch.d.ts similarity index 100% rename from google-apps-script/google-apps-script.url-fetch.d.ts rename to types/google-apps-script/google-apps-script.url-fetch.d.ts diff --git a/google-apps-script/google-apps-script.utilities.d.ts b/types/google-apps-script/google-apps-script.utilities.d.ts similarity index 100% rename from google-apps-script/google-apps-script.utilities.d.ts rename to types/google-apps-script/google-apps-script.utilities.d.ts diff --git a/google-apps-script/google-apps-script.xml-service.d.ts b/types/google-apps-script/google-apps-script.xml-service.d.ts similarity index 100% rename from google-apps-script/google-apps-script.xml-service.d.ts rename to types/google-apps-script/google-apps-script.xml-service.d.ts diff --git a/google-apps-script/index.d.ts b/types/google-apps-script/index.d.ts similarity index 100% rename from google-apps-script/index.d.ts rename to types/google-apps-script/index.d.ts diff --git a/google-apps-script/tsconfig.json b/types/google-apps-script/tsconfig.json similarity index 100% rename from google-apps-script/tsconfig.json rename to types/google-apps-script/tsconfig.json diff --git a/google-closure-compiler/google-closure-compiler-tests.ts b/types/google-closure-compiler/google-closure-compiler-tests.ts similarity index 100% rename from google-closure-compiler/google-closure-compiler-tests.ts rename to types/google-closure-compiler/google-closure-compiler-tests.ts diff --git a/google-closure-compiler/index.d.ts b/types/google-closure-compiler/index.d.ts similarity index 100% rename from google-closure-compiler/index.d.ts rename to types/google-closure-compiler/index.d.ts diff --git a/google-closure-compiler/tsconfig.json b/types/google-closure-compiler/tsconfig.json similarity index 100% rename from google-closure-compiler/tsconfig.json rename to types/google-closure-compiler/tsconfig.json diff --git a/google-drive-realtime-api/google-drive-realtime-api-tests.ts b/types/google-drive-realtime-api/google-drive-realtime-api-tests.ts similarity index 100% rename from google-drive-realtime-api/google-drive-realtime-api-tests.ts rename to types/google-drive-realtime-api/google-drive-realtime-api-tests.ts diff --git a/google-drive-realtime-api/index.d.ts b/types/google-drive-realtime-api/index.d.ts similarity index 100% rename from google-drive-realtime-api/index.d.ts rename to types/google-drive-realtime-api/index.d.ts diff --git a/google-drive-realtime-api/tsconfig.json b/types/google-drive-realtime-api/tsconfig.json similarity index 100% rename from google-drive-realtime-api/tsconfig.json rename to types/google-drive-realtime-api/tsconfig.json diff --git a/google-earth/google-earth-tests.ts b/types/google-earth/google-earth-tests.ts similarity index 100% rename from google-earth/google-earth-tests.ts rename to types/google-earth/google-earth-tests.ts diff --git a/google-earth/index.d.ts b/types/google-earth/index.d.ts similarity index 100% rename from google-earth/index.d.ts rename to types/google-earth/index.d.ts diff --git a/google-earth/tsconfig.json b/types/google-earth/tsconfig.json similarity index 100% rename from google-earth/tsconfig.json rename to types/google-earth/tsconfig.json diff --git a/google-libphonenumber/google-libphonenumber-tests.ts b/types/google-libphonenumber/google-libphonenumber-tests.ts similarity index 100% rename from google-libphonenumber/google-libphonenumber-tests.ts rename to types/google-libphonenumber/google-libphonenumber-tests.ts diff --git a/google-libphonenumber/index.d.ts b/types/google-libphonenumber/index.d.ts similarity index 100% rename from google-libphonenumber/index.d.ts rename to types/google-libphonenumber/index.d.ts diff --git a/google-libphonenumber/tsconfig.json b/types/google-libphonenumber/tsconfig.json similarity index 100% rename from google-libphonenumber/tsconfig.json rename to types/google-libphonenumber/tsconfig.json diff --git a/google-maps/google-maps-tests.ts b/types/google-maps/google-maps-tests.ts similarity index 100% rename from google-maps/google-maps-tests.ts rename to types/google-maps/google-maps-tests.ts diff --git a/google-maps/index.d.ts b/types/google-maps/index.d.ts similarity index 100% rename from google-maps/index.d.ts rename to types/google-maps/index.d.ts diff --git a/google-maps/tsconfig.json b/types/google-maps/tsconfig.json similarity index 100% rename from google-maps/tsconfig.json rename to types/google-maps/tsconfig.json diff --git a/google-protobuf/google-protobuf-tests.ts b/types/google-protobuf/google-protobuf-tests.ts similarity index 97% rename from google-protobuf/google-protobuf-tests.ts rename to types/google-protobuf/google-protobuf-tests.ts index 389a3b117a..809d8dfb7c 100644 --- a/google-protobuf/google-protobuf-tests.ts +++ b/types/google-protobuf/google-protobuf-tests.ts @@ -83,7 +83,7 @@ class MySimple extends jspb.Message { var reader = new jspb.BinaryReader(bytes); var msg = new MySimple; return MySimple.deserializeBinaryFromReader(msg, reader); - }; + } static deserializeBinaryFromReader(msg: MySimple, reader: jspb.BinaryReader): MySimple { while (reader.nextField()) { @@ -170,13 +170,13 @@ class MySimple extends jspb.Message { } } return msg; - }; + } serializeBinary(): Uint8Array { var writer = new jspb.BinaryWriter(); MySimple.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); - }; + } static serializeBinaryToWriter(message: MySimple, writer: jspb.BinaryWriter) { const f1 = message.getMyString(); @@ -296,229 +296,229 @@ class MySimple extends jspb.Message { google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } - }; + } getMyString(): string { return jspb.Message.getFieldWithDefault(this, 1, ""); - }; + } setMyString(value: string) { jspb.Message.setField(this, 1, value); - }; + } getMyBool(): boolean { return jspb.Message.getFieldWithDefault(this, 2, false); - }; + } setMyBool(value: boolean) { jspb.Message.setField(this, 2, value); - }; + } - getSomeLabelsList(): Array { - return jspb.Message.getField(this, 3); - }; + getSomeLabelsList(): string[] { + return jspb.Message.getField(this, 3) as string[]; + } setSomeLabelsList(value: Array) { jspb.Message.setField(this, 3, value || []); - }; + } addSomeLabels(value: string, opt_index?: number) { jspb.Message.addToRepeatedField(this, 3, value, opt_index); - }; + } clearSomeLabelsList() { this.setSomeLabelsList([]); - }; + } getSomeCodeGeneratorRequest(): google_protobuf_compiler_plugin_pb.CodeGeneratorRequest { return jspb.Message.getWrapperField(this, google_protobuf_compiler_plugin_pb.CodeGeneratorRequest, 4) as google_protobuf_compiler_plugin_pb.CodeGeneratorRequest; - }; + } setSomeCodeGeneratorRequest(value?: google_protobuf_compiler_plugin_pb.CodeGeneratorRequest) { jspb.Message.setWrapperField(this, 4, value); - }; + } clearSomeCodeGeneratorRequest() { this.setSomeCodeGeneratorRequest(undefined); - }; + } hasSomeCodeGeneratorRequest(): boolean { return jspb.Message.getField(this, 4) != null; - }; + } getSomeAny(): google_protobuf_any_pb.Any { return jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 5) as google_protobuf_any_pb.Any; - }; + } setSomeAny(value?: google_protobuf_any_pb.Any) { jspb.Message.setWrapperField(this, 5, value); - }; + } clearSomeAny() { this.setSomeAny(undefined); - }; + } hasSomeAny(): boolean { return jspb.Message.getField(this, 5) != null; - }; + } getSomeMethod(): google_protobuf_api_pb.Method { return jspb.Message.getWrapperField(this, google_protobuf_api_pb.Method, 6) as google_protobuf_api_pb.Method; - }; + } setSomeMethod(value?: google_protobuf_api_pb.Method) { jspb.Message.setWrapperField(this, 6, value); - }; + } clearSomeMethod() { this.setSomeMethod(undefined); - }; + } hasSomeMethod(): boolean { return jspb.Message.getField(this, 6) != null; - }; + } getSomeGeneratedCodeInfo(): google_protobuf_descriptor_pb.GeneratedCodeInfo { return jspb.Message.getWrapperField(this, google_protobuf_descriptor_pb.GeneratedCodeInfo, 7) as google_protobuf_descriptor_pb.GeneratedCodeInfo; - }; + } setSomeGeneratedCodeInfo(value?: google_protobuf_descriptor_pb.GeneratedCodeInfo) { jspb.Message.setWrapperField(this, 7, value); - }; + } clearSomeGeneratedCodeInfo() { this.setSomeGeneratedCodeInfo(undefined); - }; + } hasSomeGeneratedCodeInfo(): boolean { return jspb.Message.getField(this, 7) != null; - }; + } getSomeDuration(): google_protobuf_duration_pb.Duration { return jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 8) as google_protobuf_duration_pb.Duration; - }; + } setSomeDuration(value?: google_protobuf_duration_pb.Duration) { jspb.Message.setWrapperField(this, 8, value); - }; + } clearSomeDuration() { this.setSomeDuration(undefined); - }; + } hasSomeDuration(): boolean { return jspb.Message.getField(this, 8) != null; - }; + } getSomeEmpty(): google_protobuf_empty_pb.Empty { return jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 9) as google_protobuf_empty_pb.Empty; - }; + } setSomeEmpty(value?: google_protobuf_empty_pb.Empty) { jspb.Message.setWrapperField(this, 9, value); - }; + } clearSomeEmpty() { this.setSomeEmpty(undefined); - }; + } hasSomeEmpty(): boolean { return jspb.Message.getField(this, 9) != null; - }; + } getSomeFieldMask(): google_protobuf_field_mask_pb.FieldMask { return jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 10) as google_protobuf_field_mask_pb.FieldMask; - }; + } setSomeFieldMask(value?: google_protobuf_field_mask_pb.FieldMask) { jspb.Message.setWrapperField(this, 10, value); - }; + } clearSomeFieldMask() { this.setSomeFieldMask(undefined); - }; + } hasSomeFieldMask(): boolean { return jspb.Message.getField(this, 10) != null; - }; + } getSomeSourceContext(): google_protobuf_source_context_pb.SourceContext { return jspb.Message.getWrapperField(this, google_protobuf_source_context_pb.SourceContext, 11) as google_protobuf_source_context_pb.SourceContext; - }; + } setSomeSourceContext(value?: google_protobuf_source_context_pb.SourceContext) { jspb.Message.setWrapperField(this, 11, value); - }; + } clearSomeSourceContext() { this.setSomeSourceContext(undefined); - }; + } hasSomeSourceContext(): boolean { return jspb.Message.getField(this, 11) != null; - }; + } getSomeStruct(): google_protobuf_struct_pb.Struct { return jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 12) as google_protobuf_struct_pb.Struct; - }; + } setSomeStruct(value?: google_protobuf_struct_pb.Struct) { jspb.Message.setWrapperField(this, 12, value); - }; + } clearSomeStruct() { this.setSomeStruct(undefined); - }; + } hasSomeStruct(): boolean { return jspb.Message.getField(this, 12) != null; - }; + } getSomeTimestamp(): google_protobuf_timestamp_pb.Timestamp { return jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 13) as google_protobuf_timestamp_pb.Timestamp; - }; + } setSomeTimestamp(value?: google_protobuf_timestamp_pb.Timestamp) { jspb.Message.setWrapperField(this, 13, value); - }; + } clearSomeTimestamp() { this.setSomeTimestamp(undefined); - }; + } hasSomeTimestamp(): boolean { return jspb.Message.getField(this, 13) != null; - }; + } getSomeType(): google_protobuf_type_pb.Type { return jspb.Message.getWrapperField(this, google_protobuf_type_pb.Type, 14) as google_protobuf_type_pb.Type; - }; + } setSomeType(value?: google_protobuf_type_pb.Type) { jspb.Message.setWrapperField(this, 14, value); - }; + } clearSomeType() { this.setSomeType(undefined); - }; + } hasSomeType(): boolean { return jspb.Message.getField(this, 14) != null; - }; + } getSomeDoubleValue(): google_protobuf_wrappers_pb.DoubleValue { return jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.DoubleValue, 15) as google_protobuf_wrappers_pb.DoubleValue; - }; + } setSomeDoubleValue(value?: google_protobuf_wrappers_pb.DoubleValue) { jspb.Message.setWrapperField(this, 15, value); - }; + } clearSomeDoubleValue() { this.setSomeDoubleValue(undefined); - }; + } hasSomeDoubleValue(): boolean { return jspb.Message.getField(this, 15) != null; - }; + } }; diff --git a/google-protobuf/google/protobuf/any_pb.d.ts b/types/google-protobuf/google/protobuf/any_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/any_pb.d.ts rename to types/google-protobuf/google/protobuf/any_pb.d.ts diff --git a/google-protobuf/google/protobuf/api_pb.d.ts b/types/google-protobuf/google/protobuf/api_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/api_pb.d.ts rename to types/google-protobuf/google/protobuf/api_pb.d.ts diff --git a/google-protobuf/google/protobuf/compiler/plugin_pb.d.ts b/types/google-protobuf/google/protobuf/compiler/plugin_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/compiler/plugin_pb.d.ts rename to types/google-protobuf/google/protobuf/compiler/plugin_pb.d.ts diff --git a/google-protobuf/google/protobuf/descriptor_pb.d.ts b/types/google-protobuf/google/protobuf/descriptor_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/descriptor_pb.d.ts rename to types/google-protobuf/google/protobuf/descriptor_pb.d.ts diff --git a/google-protobuf/google/protobuf/duration_pb.d.ts b/types/google-protobuf/google/protobuf/duration_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/duration_pb.d.ts rename to types/google-protobuf/google/protobuf/duration_pb.d.ts diff --git a/google-protobuf/google/protobuf/empty_pb.d.ts b/types/google-protobuf/google/protobuf/empty_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/empty_pb.d.ts rename to types/google-protobuf/google/protobuf/empty_pb.d.ts diff --git a/google-protobuf/google/protobuf/field_mask_pb.d.ts b/types/google-protobuf/google/protobuf/field_mask_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/field_mask_pb.d.ts rename to types/google-protobuf/google/protobuf/field_mask_pb.d.ts diff --git a/google-protobuf/google/protobuf/source_context_pb.d.ts b/types/google-protobuf/google/protobuf/source_context_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/source_context_pb.d.ts rename to types/google-protobuf/google/protobuf/source_context_pb.d.ts diff --git a/google-protobuf/google/protobuf/struct_pb.d.ts b/types/google-protobuf/google/protobuf/struct_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/struct_pb.d.ts rename to types/google-protobuf/google/protobuf/struct_pb.d.ts diff --git a/google-protobuf/google/protobuf/timestamp_pb.d.ts b/types/google-protobuf/google/protobuf/timestamp_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/timestamp_pb.d.ts rename to types/google-protobuf/google/protobuf/timestamp_pb.d.ts diff --git a/google-protobuf/google/protobuf/type_pb.d.ts b/types/google-protobuf/google/protobuf/type_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/type_pb.d.ts rename to types/google-protobuf/google/protobuf/type_pb.d.ts diff --git a/google-protobuf/google/protobuf/wrappers_pb.d.ts b/types/google-protobuf/google/protobuf/wrappers_pb.d.ts similarity index 100% rename from google-protobuf/google/protobuf/wrappers_pb.d.ts rename to types/google-protobuf/google/protobuf/wrappers_pb.d.ts diff --git a/types/google-protobuf/index.d.ts b/types/google-protobuf/index.d.ts new file mode 100644 index 0000000000..9dcb7ea609 --- /dev/null +++ b/types/google-protobuf/index.d.ts @@ -0,0 +1,568 @@ +// Type definitions for google-protobuf 3.2 +// Project: https://github.com/google/google-protobuf +// Definitions by: Marcus Longmuir +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +type ByteSource = ArrayBuffer | Uint8Array | number[] | string; +type ScalarFieldType = boolean | number | string; +type RepeatedFieldType = ScalarFieldType[] | Uint8Array[]; +type AnyFieldType = ScalarFieldType | RepeatedFieldType | Uint8Array; +type FieldValue = string | number | boolean | Uint8Array | FieldValueArray | undefined; +interface FieldValueArray extends Array {} // tslint:disable-line no-empty-interface + +export abstract class Message { + getJsPbMessageId(): (string | undefined); + static initialize( + msg: Message, + data: Message.MessageArray, + messageId: (string | number), + suggestedPivot: number, + repeatedFields: number[], + oneofFields?: number[][] | null): void; + static toObjectList( + field: T[], + toObjectFn: (includeInstance: boolean, data: T) => {}, + includeInstance?: boolean): Array<{}>; + static toObjectExtension( + msg: Message, + obj: {}, + extensions: {[key: number]: ExtensionFieldInfo}, + getExtensionFn: (fieldInfo: ExtensionFieldInfo) => Message, + includeInstance?: boolean): void; + serializeBinaryExtensions( + proto: Message, + writer: BinaryWriter, + extensions: { [key: number]: ExtensionFieldBinaryInfo }, + getExtensionFn: (fieldInfo: ExtensionFieldInfo) => T): void + readBinaryExtension( + proto: Message, + reader: BinaryReader, + extensions: {[key: number]: ExtensionFieldBinaryInfo}, + setExtensionFn: (fieldInfo: ExtensionFieldInfo, + val: T) => void): void + static getField(msg: Message, fieldNumber: number): FieldValue|null; + static getOptionalFloatingPointField(msg: Message, fieldNumber: number): number | undefined; + static getRepeatedFloatingPointField(msg: Message, fieldNumber: number): number[]; + static bytesAsB64(bytes: Uint8Array): string; + static bytesAsU8(str: string): Uint8Array; + static bytesListAsB64(bytesList: Uint8Array[]): string[]; + static bytesListAsU8(strList: string[]): Uint8Array[]; + static getFieldWithDefault(msg: Message, fieldNumber: number, defaultValue: T): T; + static getMapField( + msg: Message, + fieldNumber: number, + noLazyCreate: boolean, + valueCtor: typeof Message): Map; + static setField( + msg: Message, + fieldNumber: number, + value: FieldValue): void; + static addToRepeatedField( + msg: Message, + fieldNumber: number, + value: any, + index?: number): void; + static setOneofField( + msg: Message, + fieldNumber: number, + oneof: number[], + value: FieldValue): void; + static computeOneofCase(msg: Message, oneof: number[]): number; + static getWrapperField( + msg: Message, + ctor: typeof Message, + fieldNumber: number, + required?: number): Message; + static getRepeatedWrapperField( + msg: Message, + ctor: typeof Message, + fieldNumber: number): Message[]; + static setWrapperField( + msg: Message, + fieldNumber: number, + value?: (Message|Map)): void; + static setOneofWrapperField( + msg: Message, + fieldNumber: number, + oneof: number[], + value: any): void; + static setRepeatedWrapperField( + msg: Message, + fieldNumber: number, + value: any): void; + static addToRepeatedWrapperField( + msg: Message, + fieldNumber: number, + value: any, + ctor: typeof Message, + index: number): any; + static toMap( + field: any[], + mapKeyGetterFn: (field: any) => string, + toObjectFn?: Message.StaticToObject, + includeInstance?: boolean): void; + toArray(): Message.MessageArray; + toString(): string; + getExtension(fieldInfo: ExtensionFieldInfo): T; + setExtension(fieldInfo: ExtensionFieldInfo, value: T): void; + static difference(m1: T, m2: T): T; + static equals(m1: Message, m2: Message): boolean; + static compareExtensions(extension1: {}, extension2: {}): boolean; + static compareFields(field1: any, field2: any): boolean; + cloneMessage(): Message; + clone(): Message; + static clone(msg: T): T; + static cloneMessage(msg: T): T; + static copyInto(fromMessage: Message, toMessage: Message): void; + static registerMessageType(id: number, constructor: typeof Message): void; + + abstract serializeBinary(): Uint8Array; + abstract toObject(includeInstance?: boolean): {}; + + // These are `abstract static`, but that isn't allowed. Subclasses of Message will have these methods and properties + // and not having them on Message makes using this class for its intended purpose quite difficult. + static deserializeBinary(bytes: Uint8Array): Message; + static deserializeBinaryFromReader(message: Message, reader: BinaryReader): Message; + static serializeBinaryToWriter(message: Message, writer: BinaryWriter): void; + static toObject(includeInstance: boolean, msg: Message): {}; + static extensions: { [key: number]: ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: ExtensionFieldBinaryInfo }; +} + +export namespace Message { + type MessageArray = any[]; // This type needs to reference itself + type StaticToObject = (includeInstance: boolean, msg: Message) => {}; +} + +export class ExtensionFieldInfo { + fieldIndex: number; + fieldName: number; + ctor: typeof Message; + toObjectFn: Message.StaticToObject; + isRepeated: number; + constructor( + fieldIndex: number, + fieldName: {[key: string]: number}, + ctor: typeof Message, + toObjectFn: Message.StaticToObject, + isRepeated: number); + isMessageType(): boolean; +} + +export class ExtensionFieldBinaryInfo { + fieldInfo: ExtensionFieldInfo; + binaryReaderFn: BinaryRead; + binaryWriterFn: BinaryWrite; + opt_binaryMessageSerializeFn: (msg: Message, writer: BinaryWriter) => void; + opt_binaryMessageDeserializeFn: (msg: Message, reader: BinaryReader) => Message; + opt_isPacked: boolean; + constructor( + fieldInfo: ExtensionFieldInfo, + binaryReaderFn: BinaryRead, + binaryWriterFn: BinaryWrite, + opt_binaryMessageSerializeFn: (msg: Message, writer: BinaryWriter) => void, + opt_binaryMessageDeserializeFn: (msg: Message, reader: BinaryReader) => Message, + opt_isPacked: boolean); +} + +export class Map { + constructor( + arr: Array<[K, V]>, + valueCtor?: {new(init: any): V}); + toArray(): Array<[K, V]>; + toObject( + includeInstance: boolean, + valueToObject: (includeInstance: boolean) => any): Array<[K, V]>; + static fromObject( + entries: Array<[K, V]>, + valueCtor: any, + valueFromObject: any): Map; + getLength(): number; + clear(): void; + del(key: K): boolean; + getEntryList(): Array<[K, V]>; + entries(): Map.Iterator<[K, V]>; + keys(): Map.Iterator; + forEach( + callback: (entry: V, key: K) => void, + thisArg?: {}): void; + set(key: K, value: V): void; + get(key: K): (V | undefined); + has(key: K): boolean; +} + +export namespace Map { + // This is implemented by jspb.Map.ArrayIteratorIterable_, but that class shouldn't be exported + interface Iterator { + next(): IteratorResult; + } + interface IteratorResult { + done: boolean; + value: T; + } +} + +type BinaryReadReader = (msg: any, binaryReader: BinaryReader) => void; + +type BinaryRead = (msg: any, reader: BinaryReadReader) => void; + +type BinaryWriteCallback = (value: any, binaryWriter: BinaryWriter) => void; + +type BinaryWrite = (fieldNumber: number, value: any, writerCallback: BinaryWriteCallback) => void; + +export class BinaryReader { + constructor(bytes?: ByteSource, start?: number, length?: number); + static alloc(bytes?: ByteSource, start?: number, length?: number): BinaryReader; + alloc(bytes?: ByteSource, start?: number, length?: number): BinaryReader; + free(): void; + getFieldCursor(): number; + getCursor(): number; + getBuffer(): Uint8Array; + getFieldNumber(): number; + getWireType(): BinaryConstants.WireType; + isEndGroup(): boolean; + getError(): boolean; + setBlock(bytes?: ByteSource, start?: number, length?: number): void; + reset(): void; + advance(count: number): void; + nextField(): boolean; + unskipHeader(): void; + skipMatchingFields(): void; + skipVarintField(): void; + skipDelimitedField(): void; + skipFixed32Field(): void; + skipFixed64Field(): void; + skipGroup(): void; + skipField(): void; + registerReadCallback(callbackName: string, callback: (binaryReader: BinaryReader) => any): void; + runReadCallback(callbackName: string): any; + readAny(fieldType: BinaryConstants.FieldType): AnyFieldType; + readMessage: BinaryRead; + readGroup(field: number, message: Message, reader: BinaryReadReader): void; + getFieldDecoder(): BinaryDecoder; + readInt32(): number; + readInt32String(): string; + readInt64(): number; + readInt64String(): string; + readUint32(): number; + readUint32String(): string; + readUint64(): number; + readUint64String(): string; + readSint32(): number; + readSint64(): number; + readSint64String(): string; + readFixed32(): number; + readFixed64(): number; + readFixed64String(): string; + readSfixed32(): number; + readSfixed32String(): string; + readSfixed64(): number; + readSfixed64String(): string; + readFloat(): number; + readDouble(): number; + readBool(): boolean; + readEnum(): number; + readString(): string; + readBytes(): Uint8Array; + readVarintHash64(): string; + readFixedHash64(): string; + readPackedInt32(): number[]; + readPackedInt32String(): string[]; + readPackedInt64(): number[]; + readPackedInt64String(): string[]; + readPackedUint32(): number[]; + readPackedUint32String(): string[]; + readPackedUint64(): number[]; + readPackedUint64String(): string[]; + readPackedSint32(): number[]; + readPackedSint64(): number[]; + readPackedSint64String(): string[]; + readPackedFixed32(): number[]; + readPackedFixed64(): number[]; + readPackedFixed64String(): string[]; + readPackedSfixed32(): number[]; + readPackedSfixed64(): number[]; + readPackedSfixed64String(): string[]; + readPackedFloat(): number[]; + readPackedDouble(): number[]; + readPackedBool(): boolean[]; + readPackedEnum(): number[]; + readPackedVarintHash64(): string[]; + readPackedFixedHash64(): string[]; +} + +export class BinaryWriter { + constructor(); + writeSerializedMessage(bytes: Uint8Array, start: number, end: number): void; + maybeWriteSerializedMessage(bytes?: Uint8Array, start?: number, end?: number): void; + reset(): void; + getResultBuffer(): Uint8Array; + getResultBase64String(): string; + beginSubMessage(field: number): void; + endSubMessage(field: number): void; + writeAny(fieldType: BinaryConstants.FieldType, field: number, value: AnyFieldType): void; + writeInt32(field: number, value?: number): void; + writeInt32String(field: number, value?: string): void; + writeInt64(field: number, value?: number): void; + writeInt64String(field: number, value?: string): void; + writeUint32(field: number, value?: number): void; + writeUint32String(field: number, value?: string): void; + writeUint64(field: number, value?: number): void; + writeUint64String(field: number, value?: string): void; + writeSint32(field: number, value?: number): void; + writeSint64(field: number, value?: number): void; + writeSint64String(field: number, value?: string): void; + writeFixed32(field: number, value?: number): void; + writeFixed64(field: number, value?: number): void; + writeFixed64String(field: number, value?: string): void; + writeSfixed32(field: number, value?: number): void; + writeSfixed64(field: number, value?: number): void; + writeSfixed64String(field: number, value?: string): void; + writeFloat(field: number, value?: number): void; + writeDouble(field: number, value?: number): void; + writeBool(field: number, value?: boolean): void; + writeEnum(field: number, value?: number): void; + writeString(field: number, value?: string): void; + writeBytes(field: number, value?: ByteSource): void; + writeMessage: BinaryWrite; + writeGroup(field: number, value: any, writeCallback: BinaryWriteCallback): void; + writeFixedHash64(field: number, value?: string): void; + writeVarintHash64(field: number, value?: string): void; + writeRepeatedInt32(field: number, value?: number[]): void; + writeRepeatedInt32String(field: number, value?: string[]): void; + writeRepeatedInt64(field: number, value?: number[]): void; + writeRepeatedInt64String(field: number, value?: string[]): void; + writeRepeatedUint32(field: number, value?: number[]): void; + writeRepeatedUint32String(field: number, value?: string[]): void; + writeRepeatedUint64(field: number, value?: number[]): void; + writeRepeatedUint64String(field: number, value?: string[]): void; + writeRepeatedSint32(field: number, value?: number[]): void; + writeRepeatedSint64(field: number, value?: number[]): void; + writeRepeatedSint64String(field: number, value?: string[]): void; + writeRepeatedFixed32(field: number, value?: number[]): void; + writeRepeatedFixed64(field: number, value?: number[]): void; + writeRepeatedFixed64String(field: number, value?: string[]): void; + writeRepeatedSfixed32(field: number, value?: number[]): void; + writeRepeatedSfixed64(field: number, value?: number[]): void; + writeRepeatedSfixed64String(field: number, value?: string[]): void; + writeRepeatedFloat(field: number, value?: number[]): void; + writeRepeatedDouble(field: number, value?: number[]): void; + writeRepeatedBool(field: number, value?: boolean[]): void; + writeRepeatedEnum(field: number, value?: number[]): void; + writeRepeatedString(field: number, value?: string[]): void; + writeRepeatedBytes(field: number, value?: ByteSource[]): void; + writeRepeatedMessage(field: number, value: Message[], writerCallback: BinaryWriteCallback): void; + writeRepeatedGroup(field: number, value: Message[], writerCallback: BinaryWriteCallback): void; + writeRepeatedFixedHash64(field: number, value?: string[]): void; + writeRepeatedVarintHash64(field: number, value?: string[]): void; + writePackedInt32(field: number, value?: number[]): void; + writePackedInt32String(field: number, value?: string[]): void; + writePackedInt64(field: number, value?: number[]): void; + writePackedInt64String(field: number, value?: string[]): void; + writePackedUint32(field: number, value?: number[]): void; + writePackedUint32String(field: number, value?: string[]): void; + writePackedUint64(field: number, value?: number[]): void; + writePackedUint64String(field: number, value?: string[]): void; + writePackedSint32(field: number, value?: number[]): void; + writePackedSint64(field: number, value?: number[]): void; + writePackedSint64String(field: number, value?: string[]): void; + writePackedFixed32(field: number, value?: number[]): void; + writePackedFixed64(field: number, value?: number[]): void; + writePackedFixed64String(field: number, value?: string[]): void; + writePackedSfixed32(field: number, value?: number[]): void; + writePackedSfixed64(field: number, value?: number[]): void; + writePackedSfixed64String(field: number, value?: string[]): void; + writePackedFloat(field: number, value?: number[]): void; + writePackedDouble(field: number, value?: number[]): void; + writePackedBool(field: number, value?: boolean[]): void; + writePackedEnum(field: number, value?: number[]): void; + writePackedFixedHash64(field: number, value?: string[]): void; + writePackedVarintHash64(field: number, value?: string[]): void; +} + +export class BinaryEncoder { + constructor(); + length(): number; + end(): number[]; + writeSplitVarint64(lowBits: number, highBits: number): void; + writeSplitFixed64(lowBits: number, highBits: number): void; + writeUnsignedVarint32(value: number): void; + writeSignedVarint32(value: number): void; + writeUnsignedVarint64(value: number): void; + writeSignedVarint64(value: number): void; + writeZigzagVarint32(value: number): void; + writeZigzagVarint64(value: number): void; + writeZigzagVarint64String(value: string): void; + writeUint8(value: number): void; + writeUint16(value: number): void; + writeUint32(value: number): void; + writeUint64(value: number): void; + writeInt8(value: number): void; + writeInt16(value: number): void; + writeInt32(value: number): void; + writeInt64(value: number): void; + writeInt64String(value: string): void; + writeFloat(value: number): void; + writeDouble(value: number): void; + writeBool(value: boolean): void; + writeEnum(value: number): void; + writeBytes(bytes: Uint8Array): void; + writeVarintHash64(hash: string): void; + writeFixedHash64(hash: string): void; + writeString(value: string): number; +} + +export class BinaryDecoder { + constructor(bytes?: ByteSource, start?: number, length?: number) + static alloc(bytes?: ByteSource, start?: number, length?: number): BinaryDecoder; + free(): void; + clone(): BinaryDecoder; + clear(): void; + getBuffer(): Uint8Array; + setBlock(data: ByteSource, start?: number, length?: number): void; + getEnd(): number; + setEnd(end: number): void; + reset(): void; + getCursor(): number; + setCursor(cursor: number): void; + advance(count: number): void; + atEnd(): boolean; + pastEnd(): boolean; + getError(): boolean; + skipVarint(): void; + unskipVarint(value: number): void; + readUnsignedVarint32(): number; + readSignedVarint32(): number; + readUnsignedVarint32String(): number; + readSignedVarint32String(): number; + readZigzagVarint32(): number; + readUnsignedVarint64(): number; + readUnsignedVarint64String(): number; + readSignedVarint64(): number; + readSignedVarint64String(): number; + readZigzagVarint64(): number; + readZigzagVarint64String(): number; + readUint8(): number; + readUint16(): number; + readUint32(): number; + readUint64(): number; + readUint64String(): string; + readInt8(): number; + readInt16(): number; + readInt32(): number; + readInt64(): number; + readInt64String(): string; + readFloat(): number; + readDouble(): number; + readBool(): boolean; + readEnum(): number; + readString(length: number): string; + readStringWithLength(): string; + readBytes(length: number): Uint8Array; + readVarintHash64(): string; + readFixedHash64(): string; +} + +export class BinaryIterator { + constructor( + decoder?: BinaryDecoder, next?: () => number | boolean | string | null, + elements?: Array) + static alloc( + decoder?: BinaryDecoder, + next?: () => number | boolean | string | null, + elements?: Array): BinaryIterator; + free(): void; + clear(): void; + get(): ScalarFieldType | null; + atEnd(): boolean; + next(): ScalarFieldType | null; +} + +export namespace BinaryConstants { + enum FieldType { + INVALID = -1, + DOUBLE = 1, + FLOAT = 2, + INT64 = 3, + UINT64 = 4, + INT32 = 5, + FIXED64 = 6, + FIXED32 = 7, + BOOL = 8, + STRING = 9, + GROUP = 10, + MESSAGE = 11, + BYTES = 12, + UINT32 = 13, + ENUM = 14, + SFIXED32 = 15, + SFIXED64 = 16, + SINT32 = 17, + SINT64 = 18, + FHASH64 = 30, + VHASH64 = 31, + } + + enum WireType { + INVALID = -1, + VARINT = 0, + FIXED64 = 1, + DELIMITED = 2, + START_GROUP = 3, + END_GROUP = 4, + FIXED32 = 5, + } + + const FieldTypeToWireType: (fieldType: FieldType) => WireType; + + const INVALID_FIELD_NUMBER: number; + const FLOAT32_EPS: number; + const FLOAT32_MIN: number; + const FLOAT32_MAX: number; + const FLOAT64_EPS: number; + const FLOAT64_MIN: number; + const FLOAT64_MAX: number; + const TWO_TO_20: number; + const TWO_TO_23: number; + const TWO_TO_31: number; + const TWO_TO_32: number; + const TWO_TO_52: number; + const TWO_TO_63: number; + const TWO_TO_64: number; + const ZERO_HASH: string; +} + +export namespace arith { + class UInt64 { + lo: number; + hi: number; + constructor(lo: number, hi: number); + cmp(other: UInt64): number; + rightShift(): UInt64; + leftShift(): UInt64; + msb(): boolean; + lsb(): boolean; + zero(): boolean; + add(other: UInt64): UInt64; + sub(other: UInt64): UInt64; + static mul32x32(a: number, b: number): UInt64; + mul(a: number): UInt64; + div(divisor: number): [UInt64, UInt64]; + toString(): string; + static fromString(str: string): UInt64; + clone(): UInt64; + } + + class Int64 { + lo: number; + hi: number; + constructor(lo: number, hi: number); + add(other: Int64): Int64; + sub(other: Int64): Int64; + clone(): Int64; + toString(): string; + static fromString(str: string): Int64; + } +} + +// jspb.utils package excluded as it likely shouldn't be called by user code diff --git a/google-protobuf/tsconfig.json b/types/google-protobuf/tsconfig.json similarity index 100% rename from google-protobuf/tsconfig.json rename to types/google-protobuf/tsconfig.json diff --git a/google-protobuf/tslint.json b/types/google-protobuf/tslint.json similarity index 100% rename from google-protobuf/tslint.json rename to types/google-protobuf/tslint.json diff --git a/google.analytics/google.analytics-tests.ts b/types/google.analytics/google.analytics-tests.ts similarity index 90% rename from google.analytics/google.analytics-tests.ts rename to types/google.analytics/google.analytics-tests.ts index 32df930cc9..ac2a99fd2e 100644 --- a/google.analytics/google.analytics-tests.ts +++ b/types/google.analytics/google.analytics-tests.ts @@ -40,10 +40,10 @@ describe('UniversalAnalytics', () => { ga.getByName('aNamedTracker'); }); it('should excercise Tracker APIs', () => { - var tracker: UniversalAnalytics.Tracker = ga.create('UA-65432-1', 'auto'); - var aString: string = tracker.get('aString'); - var aNumber: number = tracker.get('aNumber'); - var anObject: {} = tracker.get<{}>('anObject'); + const tracker: UniversalAnalytics.Tracker = ga.create('UA-65432-1', 'auto'); + const aString: string = tracker.get('aString'); + const aNumber: number = tracker.get('aNumber'); + const anObject: {} = tracker.get<{}>('anObject'); tracker.send('pageview'); tracker.send('pageview', {some: 'details'}); tracker.set('aString', aString); @@ -66,7 +66,6 @@ describe("tester Google Analytics Tracker _gat object", () => { it("can create _anonymizeIp", () => { _gat._anonymizeIp(); }); - }); describe("tester Google Analytics Code _gaq object", () => { @@ -76,17 +75,16 @@ describe("tester Google Analytics Code _gaq object", () => { _gaq.push(['_trackPageview']); _gaq.push(() => { - var tracker = _gat._getTrackerByName('UA-65432-1'); + const tracker = _gat._getTrackerByName('UA-65432-1'); tracker._trackPageview(); } ); }); }); - describe("tester Google Analytics Code Tracker object", () => { it("can create Tracker object and call methods", () => { - var tracker = _gat._getTrackerByName('UA-65432-1'); + const tracker = _gat._getTrackerByName('UA-65432-1'); tracker._trackPageview(); tracker._getName(); tracker._getAccount(); diff --git a/google.analytics/index.d.ts b/types/google.analytics/index.d.ts similarity index 99% rename from google.analytics/index.d.ts rename to types/google.analytics/index.d.ts index bfed2eb277..c8bf91fd74 100644 --- a/google.analytics/index.d.ts +++ b/types/google.analytics/index.d.ts @@ -42,7 +42,7 @@ declare namespace UniversalAnalytics { enum HitType { 'pageview', 'screenview', 'event', 'transaction', 'item', 'social', 'exception', 'timing' } - + // https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference interface FieldsObject { diff --git a/google.analytics/tsconfig.json b/types/google.analytics/tsconfig.json similarity index 100% rename from google.analytics/tsconfig.json rename to types/google.analytics/tsconfig.json diff --git a/google.analytics/tslint.json b/types/google.analytics/tslint.json similarity index 100% rename from google.analytics/tslint.json rename to types/google.analytics/tslint.json diff --git a/google.feeds/index.d.ts b/types/google.feeds/index.d.ts similarity index 100% rename from google.feeds/index.d.ts rename to types/google.feeds/index.d.ts diff --git a/google.feeds/tsconfig.json b/types/google.feeds/tsconfig.json similarity index 100% rename from google.feeds/tsconfig.json rename to types/google.feeds/tsconfig.json diff --git a/google.fonts/google.fonts-tests.ts b/types/google.fonts/google.fonts-tests.ts similarity index 69% rename from google.fonts/google.fonts-tests.ts rename to types/google.fonts/google.fonts-tests.ts index 7d63cd77fd..dd401a340e 100644 --- a/google.fonts/google.fonts-tests.ts +++ b/types/google.fonts/google.fonts-tests.ts @@ -1,8 +1,7 @@ function test(list: google.fonts.WebfontList) { + const f = list.items[0]; - var f = list.items[0]; - - var info = [ + const info = [ f.category, f.family, f.kind, @@ -10,7 +9,7 @@ function test(list: google.fonts.WebfontList) { f.version ]; - var urls = f.variants.map( + const urls = f.variants.map( v => f.files[v] ); } diff --git a/google.fonts/index.d.ts b/types/google.fonts/index.d.ts similarity index 88% rename from google.fonts/index.d.ts rename to types/google.fonts/index.d.ts index 959447b198..b5741ff196 100644 --- a/google.fonts/index.d.ts +++ b/types/google.fonts/index.d.ts @@ -4,13 +4,12 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace google.fonts { - - export interface WebfontList { + interface WebfontList { kind: string; items: WebfontFamily[]; } - export interface WebfontFamily { + interface WebfontFamily { category?: string; kind: string; family: string; diff --git a/google.fonts/tsconfig.json b/types/google.fonts/tsconfig.json similarity index 100% rename from google.fonts/tsconfig.json rename to types/google.fonts/tsconfig.json diff --git a/google.fonts/tslint.json b/types/google.fonts/tslint.json similarity index 100% rename from google.fonts/tslint.json rename to types/google.fonts/tslint.json diff --git a/google.geolocation/google.geolocation-tests.ts b/types/google.geolocation/google.geolocation-tests.ts similarity index 100% rename from google.geolocation/google.geolocation-tests.ts rename to types/google.geolocation/google.geolocation-tests.ts diff --git a/google.geolocation/index.d.ts b/types/google.geolocation/index.d.ts similarity index 100% rename from google.geolocation/index.d.ts rename to types/google.geolocation/index.d.ts diff --git a/google.geolocation/tsconfig.json b/types/google.geolocation/tsconfig.json similarity index 100% rename from google.geolocation/tsconfig.json rename to types/google.geolocation/tsconfig.json diff --git a/google.picker/google.picker-tests.ts b/types/google.picker/google.picker-tests.ts similarity index 100% rename from google.picker/google.picker-tests.ts rename to types/google.picker/google.picker-tests.ts diff --git a/google.picker/index.d.ts b/types/google.picker/index.d.ts similarity index 100% rename from google.picker/index.d.ts rename to types/google.picker/index.d.ts diff --git a/google.picker/tsconfig.json b/types/google.picker/tsconfig.json similarity index 100% rename from google.picker/tsconfig.json rename to types/google.picker/tsconfig.json diff --git a/google.visualization/google.visualization-tests.ts b/types/google.visualization/google.visualization-tests.ts similarity index 100% rename from google.visualization/google.visualization-tests.ts rename to types/google.visualization/google.visualization-tests.ts diff --git a/google.visualization/index.d.ts b/types/google.visualization/index.d.ts similarity index 100% rename from google.visualization/index.d.ts rename to types/google.visualization/index.d.ts diff --git a/google.visualization/tsconfig.json b/types/google.visualization/tsconfig.json similarity index 100% rename from google.visualization/tsconfig.json rename to types/google.visualization/tsconfig.json diff --git a/googlemaps.infobubble/googlemaps.infobubble-tests.ts b/types/googlemaps.infobubble/googlemaps.infobubble-tests.ts similarity index 100% rename from googlemaps.infobubble/googlemaps.infobubble-tests.ts rename to types/googlemaps.infobubble/googlemaps.infobubble-tests.ts diff --git a/googlemaps.infobubble/index.d.ts b/types/googlemaps.infobubble/index.d.ts similarity index 100% rename from googlemaps.infobubble/index.d.ts rename to types/googlemaps.infobubble/index.d.ts diff --git a/googlemaps.infobubble/tsconfig.json b/types/googlemaps.infobubble/tsconfig.json similarity index 100% rename from googlemaps.infobubble/tsconfig.json rename to types/googlemaps.infobubble/tsconfig.json diff --git a/googlemaps/googlemaps-tests.ts b/types/googlemaps/googlemaps-tests.ts similarity index 92% rename from googlemaps/googlemaps-tests.ts rename to types/googlemaps/googlemaps-tests.ts index 0be531a89f..6397aab58b 100644 --- a/googlemaps/googlemaps-tests.ts +++ b/types/googlemaps/googlemaps-tests.ts @@ -267,3 +267,26 @@ var rectangle = new google.maps.Rectangle({ west: -116.251 } }); + +/***** Circles *****/ +// circleOptions with LatLng center +var circle1 = new google.maps.Circle({ + center: new google.maps.LatLng(59.327, 18.067), + radius: 20, + fillColor: '#FF0000', + strokeColor: '#FF0000', + fillOpacity: 0.35, + strokeOpacity: 0.5, + strokeWeight: 1 +}); + +// circleOptions with LatLngLiteral center +var circle2 = new google.maps.Circle({ + center: {lat: 59.327, lng: 18.067}, + radius: 20, + fillColor: '#FF0000', + strokeColor: '#FF0000', + fillOpacity: 0.35, + strokeOpacity: 0.5, + strokeWeight: 1 +}); diff --git a/googlemaps/index.d.ts b/types/googlemaps/index.d.ts similarity index 99% rename from googlemaps/index.d.ts rename to types/googlemaps/index.d.ts index e8d6d8dc2b..5f25ea0cab 100644 --- a/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -999,7 +999,7 @@ declare namespace google.maps { } export interface CircleOptions { - center?: LatLng; + center?: LatLng|LatLngLiteral; clickable?: boolean; draggable?: boolean; editable?: boolean; diff --git a/googlemaps/tsconfig.json b/types/googlemaps/tsconfig.json similarity index 100% rename from googlemaps/tsconfig.json rename to types/googlemaps/tsconfig.json diff --git a/graceful-fs/graceful-fs-tests.ts b/types/graceful-fs/graceful-fs-tests.ts similarity index 100% rename from graceful-fs/graceful-fs-tests.ts rename to types/graceful-fs/graceful-fs-tests.ts diff --git a/graceful-fs/index.d.ts b/types/graceful-fs/index.d.ts similarity index 100% rename from graceful-fs/index.d.ts rename to types/graceful-fs/index.d.ts diff --git a/graceful-fs/tsconfig.json b/types/graceful-fs/tsconfig.json similarity index 100% rename from graceful-fs/tsconfig.json rename to types/graceful-fs/tsconfig.json diff --git a/graham_scan/graham_scan-tests.ts b/types/graham_scan/graham_scan-tests.ts similarity index 100% rename from graham_scan/graham_scan-tests.ts rename to types/graham_scan/graham_scan-tests.ts diff --git a/graham_scan/index.d.ts b/types/graham_scan/index.d.ts similarity index 100% rename from graham_scan/index.d.ts rename to types/graham_scan/index.d.ts diff --git a/graham_scan/tsconfig.json b/types/graham_scan/tsconfig.json similarity index 100% rename from graham_scan/tsconfig.json rename to types/graham_scan/tsconfig.json diff --git a/graphene-pk11/graphene-pk11-tests.ts b/types/graphene-pk11/graphene-pk11-tests.ts similarity index 100% rename from graphene-pk11/graphene-pk11-tests.ts rename to types/graphene-pk11/graphene-pk11-tests.ts diff --git a/graphene-pk11/index.d.ts b/types/graphene-pk11/index.d.ts similarity index 100% rename from graphene-pk11/index.d.ts rename to types/graphene-pk11/index.d.ts diff --git a/graphene-pk11/tsconfig.json b/types/graphene-pk11/tsconfig.json similarity index 100% rename from graphene-pk11/tsconfig.json rename to types/graphene-pk11/tsconfig.json diff --git a/graphite-udp/graphite-udp-tests.ts b/types/graphite-udp/graphite-udp-tests.ts similarity index 78% rename from graphite-udp/graphite-udp-tests.ts rename to types/graphite-udp/graphite-udp-tests.ts index c61ad172cd..1cdb5d74e6 100644 --- a/graphite-udp/graphite-udp-tests.ts +++ b/types/graphite-udp/graphite-udp-tests.ts @@ -1,13 +1,13 @@ import graphite = require('graphite-udp'); // Test creation of client directly. -let client = new graphite.Client(); +const client = new graphite.Client(); client.put('test', 1); client.add('test', 1); client.close(); // Create client with helper -let client2 = graphite.createClient(); +const client2 = graphite.createClient(); client2.put('test2', 1); client2.add('test2', 1); client2.close(); @@ -22,9 +22,7 @@ graphite.createClient({ suffix: 'suffix', interval: 60 * 1000, verbose: true, - callback: (error: Error, metrics: any): void => { - - } + callback: (error: Error, metrics: any): void => {} }); // Test creation options with class directly. @@ -37,7 +35,5 @@ new graphite.Client({ suffix: 'suffix', interval: 60 * 1000, verbose: true, - callback: (error: Error, metrics: any): void => { - - } + callback: (error: Error, metrics: any): void => {} }); diff --git a/graphite-udp/index.d.ts b/types/graphite-udp/index.d.ts similarity index 99% rename from graphite-udp/index.d.ts rename to types/graphite-udp/index.d.ts index 218888b39a..e36afa76d0 100644 --- a/graphite-udp/index.d.ts +++ b/types/graphite-udp/index.d.ts @@ -3,7 +3,6 @@ // Definitions by: Eric Byers // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - interface ClientOptions { /** * graphite server host or ip @@ -65,7 +64,6 @@ interface ClientOptions { } export class Client { - constructor(clientOptions?: ClientOptions); /** diff --git a/graphite-udp/tsconfig.json b/types/graphite-udp/tsconfig.json similarity index 100% rename from graphite-udp/tsconfig.json rename to types/graphite-udp/tsconfig.json diff --git a/globule/tslint.json b/types/graphite-udp/tslint.json similarity index 100% rename from globule/tslint.json rename to types/graphite-udp/tslint.json diff --git a/graphlib/graphlib-tests.ts b/types/graphlib/graphlib-tests.ts similarity index 100% rename from graphlib/graphlib-tests.ts rename to types/graphlib/graphlib-tests.ts diff --git a/graphlib/index.d.ts b/types/graphlib/index.d.ts similarity index 100% rename from graphlib/index.d.ts rename to types/graphlib/index.d.ts diff --git a/graphlib/tsconfig.json b/types/graphlib/tsconfig.json similarity index 100% rename from graphlib/tsconfig.json rename to types/graphlib/tsconfig.json diff --git a/graphql-date/graphql-date-tests.ts b/types/graphql-date/graphql-date-tests.ts similarity index 100% rename from graphql-date/graphql-date-tests.ts rename to types/graphql-date/graphql-date-tests.ts diff --git a/graphql-date/index.d.ts b/types/graphql-date/index.d.ts similarity index 100% rename from graphql-date/index.d.ts rename to types/graphql-date/index.d.ts diff --git a/graphql-date/tsconfig.json b/types/graphql-date/tsconfig.json similarity index 100% rename from graphql-date/tsconfig.json rename to types/graphql-date/tsconfig.json diff --git a/graphite-udp/tslint.json b/types/graphql-date/tslint.json similarity index 100% rename from graphite-udp/tslint.json rename to types/graphql-date/tslint.json diff --git a/graphql-relay/graphql-relay-tests.ts b/types/graphql-relay/graphql-relay-tests.ts similarity index 100% rename from graphql-relay/graphql-relay-tests.ts rename to types/graphql-relay/graphql-relay-tests.ts diff --git a/graphql-relay/index.d.ts b/types/graphql-relay/index.d.ts similarity index 100% rename from graphql-relay/index.d.ts rename to types/graphql-relay/index.d.ts diff --git a/graphql-relay/tsconfig.json b/types/graphql-relay/tsconfig.json similarity index 100% rename from graphql-relay/tsconfig.json rename to types/graphql-relay/tsconfig.json diff --git a/graphql-date/tslint.json b/types/graphql-relay/tslint.json similarity index 100% rename from graphql-date/tslint.json rename to types/graphql-relay/tslint.json diff --git a/graphql/UNUSED_FILES.txt b/types/graphql/UNUSED_FILES.txt similarity index 100% rename from graphql/UNUSED_FILES.txt rename to types/graphql/UNUSED_FILES.txt diff --git a/graphql/error/GraphQLError.d.ts b/types/graphql/error/GraphQLError.d.ts similarity index 100% rename from graphql/error/GraphQLError.d.ts rename to types/graphql/error/GraphQLError.d.ts diff --git a/graphql/error/formatError.d.ts b/types/graphql/error/formatError.d.ts similarity index 100% rename from graphql/error/formatError.d.ts rename to types/graphql/error/formatError.d.ts diff --git a/graphql/error/index.d.ts b/types/graphql/error/index.d.ts similarity index 100% rename from graphql/error/index.d.ts rename to types/graphql/error/index.d.ts diff --git a/graphql/error/locatedError.d.ts b/types/graphql/error/locatedError.d.ts similarity index 100% rename from graphql/error/locatedError.d.ts rename to types/graphql/error/locatedError.d.ts diff --git a/graphql/error/syntaxError.d.ts b/types/graphql/error/syntaxError.d.ts similarity index 100% rename from graphql/error/syntaxError.d.ts rename to types/graphql/error/syntaxError.d.ts diff --git a/graphql/execution/execute.d.ts b/types/graphql/execution/execute.d.ts similarity index 100% rename from graphql/execution/execute.d.ts rename to types/graphql/execution/execute.d.ts diff --git a/graphql/execution/index.d.ts b/types/graphql/execution/index.d.ts similarity index 100% rename from graphql/execution/index.d.ts rename to types/graphql/execution/index.d.ts diff --git a/graphql/execution/values.d.ts b/types/graphql/execution/values.d.ts similarity index 100% rename from graphql/execution/values.d.ts rename to types/graphql/execution/values.d.ts diff --git a/graphql/graphql-tests.ts b/types/graphql/graphql-tests.ts similarity index 100% rename from graphql/graphql-tests.ts rename to types/graphql/graphql-tests.ts diff --git a/graphql/graphql.d.ts b/types/graphql/graphql.d.ts similarity index 100% rename from graphql/graphql.d.ts rename to types/graphql/graphql.d.ts diff --git a/graphql/index.d.ts b/types/graphql/index.d.ts similarity index 100% rename from graphql/index.d.ts rename to types/graphql/index.d.ts diff --git a/graphql/language/ast.d.ts b/types/graphql/language/ast.d.ts similarity index 100% rename from graphql/language/ast.d.ts rename to types/graphql/language/ast.d.ts diff --git a/graphql/language/index.d.ts b/types/graphql/language/index.d.ts similarity index 100% rename from graphql/language/index.d.ts rename to types/graphql/language/index.d.ts diff --git a/graphql/language/kinds.d.ts b/types/graphql/language/kinds.d.ts similarity index 100% rename from graphql/language/kinds.d.ts rename to types/graphql/language/kinds.d.ts diff --git a/graphql/language/lexer.d.ts b/types/graphql/language/lexer.d.ts similarity index 100% rename from graphql/language/lexer.d.ts rename to types/graphql/language/lexer.d.ts diff --git a/graphql/language/location.d.ts b/types/graphql/language/location.d.ts similarity index 100% rename from graphql/language/location.d.ts rename to types/graphql/language/location.d.ts diff --git a/graphql/language/parser.d.ts b/types/graphql/language/parser.d.ts similarity index 100% rename from graphql/language/parser.d.ts rename to types/graphql/language/parser.d.ts diff --git a/graphql/language/printer.d.ts b/types/graphql/language/printer.d.ts similarity index 100% rename from graphql/language/printer.d.ts rename to types/graphql/language/printer.d.ts diff --git a/graphql/language/source.d.ts b/types/graphql/language/source.d.ts similarity index 100% rename from graphql/language/source.d.ts rename to types/graphql/language/source.d.ts diff --git a/graphql/language/visitor.d.ts b/types/graphql/language/visitor.d.ts similarity index 100% rename from graphql/language/visitor.d.ts rename to types/graphql/language/visitor.d.ts diff --git a/graphql/tsconfig.json b/types/graphql/tsconfig.json similarity index 100% rename from graphql/tsconfig.json rename to types/graphql/tsconfig.json diff --git a/graphql/type/definition.d.ts b/types/graphql/type/definition.d.ts similarity index 100% rename from graphql/type/definition.d.ts rename to types/graphql/type/definition.d.ts diff --git a/graphql/type/directives.d.ts b/types/graphql/type/directives.d.ts similarity index 100% rename from graphql/type/directives.d.ts rename to types/graphql/type/directives.d.ts diff --git a/graphql/type/index.d.ts b/types/graphql/type/index.d.ts similarity index 100% rename from graphql/type/index.d.ts rename to types/graphql/type/index.d.ts diff --git a/graphql/type/introspection.d.ts b/types/graphql/type/introspection.d.ts similarity index 100% rename from graphql/type/introspection.d.ts rename to types/graphql/type/introspection.d.ts diff --git a/graphql/type/scalars.d.ts b/types/graphql/type/scalars.d.ts similarity index 100% rename from graphql/type/scalars.d.ts rename to types/graphql/type/scalars.d.ts diff --git a/graphql/type/schema.d.ts b/types/graphql/type/schema.d.ts similarity index 100% rename from graphql/type/schema.d.ts rename to types/graphql/type/schema.d.ts diff --git a/graphql/utilities/TypeInfo.d.ts b/types/graphql/utilities/TypeInfo.d.ts similarity index 100% rename from graphql/utilities/TypeInfo.d.ts rename to types/graphql/utilities/TypeInfo.d.ts diff --git a/graphql/utilities/assertValidName.d.ts b/types/graphql/utilities/assertValidName.d.ts similarity index 100% rename from graphql/utilities/assertValidName.d.ts rename to types/graphql/utilities/assertValidName.d.ts diff --git a/graphql/utilities/astFromValue.d.ts b/types/graphql/utilities/astFromValue.d.ts similarity index 100% rename from graphql/utilities/astFromValue.d.ts rename to types/graphql/utilities/astFromValue.d.ts diff --git a/graphql/utilities/buildASTSchema.d.ts b/types/graphql/utilities/buildASTSchema.d.ts similarity index 100% rename from graphql/utilities/buildASTSchema.d.ts rename to types/graphql/utilities/buildASTSchema.d.ts diff --git a/graphql/utilities/buildClientSchema.d.ts b/types/graphql/utilities/buildClientSchema.d.ts similarity index 100% rename from graphql/utilities/buildClientSchema.d.ts rename to types/graphql/utilities/buildClientSchema.d.ts diff --git a/graphql/utilities/concatAST.d.ts b/types/graphql/utilities/concatAST.d.ts similarity index 100% rename from graphql/utilities/concatAST.d.ts rename to types/graphql/utilities/concatAST.d.ts diff --git a/graphql/utilities/extendSchema.d.ts b/types/graphql/utilities/extendSchema.d.ts similarity index 100% rename from graphql/utilities/extendSchema.d.ts rename to types/graphql/utilities/extendSchema.d.ts diff --git a/graphql/utilities/findBreakingChanges.d.ts b/types/graphql/utilities/findBreakingChanges.d.ts similarity index 100% rename from graphql/utilities/findBreakingChanges.d.ts rename to types/graphql/utilities/findBreakingChanges.d.ts diff --git a/graphql/utilities/getOperationAST.d.ts b/types/graphql/utilities/getOperationAST.d.ts similarity index 100% rename from graphql/utilities/getOperationAST.d.ts rename to types/graphql/utilities/getOperationAST.d.ts diff --git a/graphql/utilities/index.d.ts b/types/graphql/utilities/index.d.ts similarity index 100% rename from graphql/utilities/index.d.ts rename to types/graphql/utilities/index.d.ts diff --git a/graphql/utilities/introspectionQuery.d.ts b/types/graphql/utilities/introspectionQuery.d.ts similarity index 100% rename from graphql/utilities/introspectionQuery.d.ts rename to types/graphql/utilities/introspectionQuery.d.ts diff --git a/graphql/utilities/isValidJSValue.d.ts b/types/graphql/utilities/isValidJSValue.d.ts similarity index 100% rename from graphql/utilities/isValidJSValue.d.ts rename to types/graphql/utilities/isValidJSValue.d.ts diff --git a/graphql/utilities/isValidLiteralValue.d.ts b/types/graphql/utilities/isValidLiteralValue.d.ts similarity index 100% rename from graphql/utilities/isValidLiteralValue.d.ts rename to types/graphql/utilities/isValidLiteralValue.d.ts diff --git a/graphql/utilities/schemaPrinter.d.ts b/types/graphql/utilities/schemaPrinter.d.ts similarity index 100% rename from graphql/utilities/schemaPrinter.d.ts rename to types/graphql/utilities/schemaPrinter.d.ts diff --git a/graphql/utilities/separateOperations.d.ts b/types/graphql/utilities/separateOperations.d.ts similarity index 100% rename from graphql/utilities/separateOperations.d.ts rename to types/graphql/utilities/separateOperations.d.ts diff --git a/graphql/utilities/typeComparators.d.ts b/types/graphql/utilities/typeComparators.d.ts similarity index 100% rename from graphql/utilities/typeComparators.d.ts rename to types/graphql/utilities/typeComparators.d.ts diff --git a/graphql/utilities/typeFromAST.d.ts b/types/graphql/utilities/typeFromAST.d.ts similarity index 100% rename from graphql/utilities/typeFromAST.d.ts rename to types/graphql/utilities/typeFromAST.d.ts diff --git a/graphql/utilities/valueFromAST.d.ts b/types/graphql/utilities/valueFromAST.d.ts similarity index 100% rename from graphql/utilities/valueFromAST.d.ts rename to types/graphql/utilities/valueFromAST.d.ts diff --git a/graphql/validation/index.d.ts b/types/graphql/validation/index.d.ts similarity index 100% rename from graphql/validation/index.d.ts rename to types/graphql/validation/index.d.ts diff --git a/graphql/validation/specifiedRules.d.ts b/types/graphql/validation/specifiedRules.d.ts similarity index 100% rename from graphql/validation/specifiedRules.d.ts rename to types/graphql/validation/specifiedRules.d.ts diff --git a/graphql/validation/validate.d.ts b/types/graphql/validation/validate.d.ts similarity index 100% rename from graphql/validation/validate.d.ts rename to types/graphql/validation/validate.d.ts diff --git a/graphviz/graphviz-tests.ts b/types/graphviz/graphviz-tests.ts similarity index 100% rename from graphviz/graphviz-tests.ts rename to types/graphviz/graphviz-tests.ts diff --git a/graphviz/index.d.ts b/types/graphviz/index.d.ts similarity index 100% rename from graphviz/index.d.ts rename to types/graphviz/index.d.ts diff --git a/graphviz/tsconfig.json b/types/graphviz/tsconfig.json similarity index 100% rename from graphviz/tsconfig.json rename to types/graphviz/tsconfig.json diff --git a/gravatar/gravatar-tests.ts b/types/gravatar/gravatar-tests.ts similarity index 100% rename from gravatar/gravatar-tests.ts rename to types/gravatar/gravatar-tests.ts diff --git a/gravatar/index.d.ts b/types/gravatar/index.d.ts similarity index 100% rename from gravatar/index.d.ts rename to types/gravatar/index.d.ts diff --git a/gravatar/tsconfig.json b/types/gravatar/tsconfig.json similarity index 100% rename from gravatar/tsconfig.json rename to types/gravatar/tsconfig.json diff --git a/greasemonkey/greasemonkey-tests.ts b/types/greasemonkey/greasemonkey-tests.ts similarity index 100% rename from greasemonkey/greasemonkey-tests.ts rename to types/greasemonkey/greasemonkey-tests.ts diff --git a/greasemonkey/index.d.ts b/types/greasemonkey/index.d.ts similarity index 100% rename from greasemonkey/index.d.ts rename to types/greasemonkey/index.d.ts diff --git a/greasemonkey/tsconfig.json b/types/greasemonkey/tsconfig.json similarity index 100% rename from greasemonkey/tsconfig.json rename to types/greasemonkey/tsconfig.json diff --git a/grecaptcha/grecaptcha-tests.ts b/types/grecaptcha/grecaptcha-tests.ts similarity index 100% rename from grecaptcha/grecaptcha-tests.ts rename to types/grecaptcha/grecaptcha-tests.ts diff --git a/grecaptcha/index.d.ts b/types/grecaptcha/index.d.ts similarity index 100% rename from grecaptcha/index.d.ts rename to types/grecaptcha/index.d.ts diff --git a/grecaptcha/tsconfig.json b/types/grecaptcha/tsconfig.json similarity index 100% rename from grecaptcha/tsconfig.json rename to types/grecaptcha/tsconfig.json diff --git a/gregorian-calendar/gregorian-calendar-tests.ts b/types/gregorian-calendar/gregorian-calendar-tests.ts similarity index 100% rename from gregorian-calendar/gregorian-calendar-tests.ts rename to types/gregorian-calendar/gregorian-calendar-tests.ts diff --git a/gregorian-calendar/index.d.ts b/types/gregorian-calendar/index.d.ts similarity index 100% rename from gregorian-calendar/index.d.ts rename to types/gregorian-calendar/index.d.ts diff --git a/gregorian-calendar/tsconfig.json b/types/gregorian-calendar/tsconfig.json similarity index 100% rename from gregorian-calendar/tsconfig.json rename to types/gregorian-calendar/tsconfig.json diff --git a/griddle-react/index.d.ts b/types/griddle-react/index.d.ts similarity index 92% rename from griddle-react/index.d.ts rename to types/griddle-react/index.d.ts index 7586e4dcbd..e8f817b5a1 100644 --- a/griddle-react/index.d.ts +++ b/types/griddle-react/index.d.ts @@ -30,7 +30,7 @@ SOFTWARE. import * as React from 'react'; -type ReactClass = React.ComponentClass | React.StatelessComponent +type ReactClass = React.ComponentClass | React.StatelessComponent; export interface CustomColumnComponentProps { data: any; @@ -80,9 +80,7 @@ export interface ColumnMetaData { visible?: boolean; } -export interface BodyCssClassNameFunction { - (rowData: T): string; -} +export type BodyCssClassNameFunction = (rowData: T) => string; export interface RowMetaData { bodyCssClassName?: BodyCssClassNameFunction | string; @@ -90,7 +88,7 @@ export interface RowMetaData { export interface GriddleProps { columns?: string[]; - columnMetadata?: ColumnMetaData[]; + columnMetadata?: Array>; rowMetadata?: RowMetaData; results?: T[]; resultsPerPage?: number; @@ -115,15 +113,15 @@ export interface GriddleProps { useCustomFilterer?: boolean; useCustomFilterComponent?: boolean; useGriddleStyles?: boolean; - customRowComponent?: ReactClass> - customGridComponent?: ReactClass> - customPagerComponent?: ReactClass - customFilterComponent?: ReactClass + customRowComponent?: ReactClass>; + customGridComponent?: ReactClass>; + customPagerComponent?: ReactClass; + customFilterComponent?: ReactClass; customFilterer?(items: T[], query: any): T[]; enableToggleCustom?: boolean; noDataMessage?: string; noDataClassName?: string; - customNoDataComponent?: ReactClass + customNoDataComponent?: ReactClass; showTableHeading?: boolean; showPager?: boolean; useFixedHeader?: boolean; @@ -136,7 +134,7 @@ export interface GriddleProps { externalCurrentPage?: number; externalSortColumn?: string; externalSortAscending?: boolean; - externalLoadingComponent?: ReactClass + externalLoadingComponent?: ReactClass; externalIsLoading?: boolean; enableInfiniteScroll?: boolean; bodyHeight?: number; diff --git a/griddle-react/test/CustomColumnComponent.tsx b/types/griddle-react/test/CustomColumnComponent.tsx similarity index 76% rename from griddle-react/test/CustomColumnComponent.tsx rename to types/griddle-react/test/CustomColumnComponent.tsx index 83adc8f05a..e47b2c36bb 100644 --- a/griddle-react/test/CustomColumnComponent.tsx +++ b/types/griddle-react/test/CustomColumnComponent.tsx @@ -8,23 +8,23 @@ import * as React from 'react'; import Griddle, { CustomColumnComponentProps } from 'griddle-react'; interface MyCustomResult { - name: string, - test: string + name: string; + test: string; } class LinkComponent extends React.Component, any> { render() { - var url = "speakers/" + this.props.rowData.test + "/" + this.props.data; - return {this.props.data} + const url = "speakers/" + this.props.rowData.test + "/" + this.props.data; + return {this.props.data}; } } const StatelessFunctionComponent = (props: CustomColumnComponentProps) => { - var url = "speakers/" + props.rowData.test + "/" + props.data; - return {props.data} + const url = "speakers/" + props.rowData.test + "/" + props.data; + return {props.data}; }; -var columnMeta = [ +const columnMeta = [ { columnName: "name", order: 1, @@ -33,7 +33,7 @@ var columnMeta = [ customComponent: StatelessFunctionComponent }]; -var results: MyCustomResult[] = [ +const results: MyCustomResult[] = [ { name: 'David Hara', test: 'blah' @@ -44,7 +44,7 @@ var results: MyCustomResult[] = [ } ]; -var rowMetaData = { +const rowMetaData = { bodyCssClassName: (rowData: MyCustomResult) => { return rowData.test; } @@ -54,7 +54,7 @@ class CustomColumnComponentGrid extends React.Component { render() { type TypedGriddle = new () => Griddle; const TypedGriddle = Griddle as TypedGriddle; - + return ( { }; } -export default CustomColumnComponentGrid; \ No newline at end of file +export default CustomColumnComponentGrid; diff --git a/griddle-react/test/CustomFilterComponent.tsx b/types/griddle-react/test/CustomFilterComponent.tsx similarity index 82% rename from griddle-react/test/CustomFilterComponent.tsx rename to types/griddle-react/test/CustomFilterComponent.tsx index e7508887f5..3de40132f1 100644 --- a/griddle-react/test/CustomFilterComponent.tsx +++ b/types/griddle-react/test/CustomFilterComponent.tsx @@ -10,7 +10,6 @@ import Griddle, { CustomFilterComponentProps } from 'griddle-react'; const CustomFilterFunction = (items: ResultType[], query: string): ResultType[] => { return _.filter(items, (item) => { - let match = false; _.forIn(item, (value, key) => { if (String(value).toLowerCase().indexOf(query.toLowerCase()) >= 0) { @@ -53,30 +52,29 @@ interface ResultType { favoriteNumber: number; } -var someData: ResultType[] = [ +const someData: ResultType[] = [ { - "id": 0, - "name": "Mayer Leonard", - "city": "Kapowsin", - "state": "Hawaii", - "country": "United Kingdom", - "company": "Ovolo", - "favoriteNumber": 7 + id: 0, + name: "Mayer Leonard", + city: "Kapowsin", + state: "Hawaii", + country: "United Kingdom", + company: "Ovolo", + favoriteNumber: 7 }, { - "id": 1, - "name": "Koch Becker", - "city": "Johnsonburg", - "state": "New Jersey", - "country": "Madagascar", - "company": "Eventage", - "favoriteNumber": 2 + id: 1, + name: "Koch Becker", + city: "Johnsonburg", + state: "New Jersey", + country: "Madagascar", + company: "Eventage", + favoriteNumber: 2 } ]; class CustomFilterComponentGrid extends React.Component { render() { - type TypedGriddle = new () => Griddle; const TypedGriddle = Griddle as TypedGriddle; diff --git a/griddle-react/test/CustomHeaderComponent.tsx b/types/griddle-react/test/CustomHeaderComponent.tsx similarity index 79% rename from griddle-react/test/CustomHeaderComponent.tsx rename to types/griddle-react/test/CustomHeaderComponent.tsx index aed7d348aa..af9d1d6ea3 100644 --- a/griddle-react/test/CustomHeaderComponent.tsx +++ b/types/griddle-react/test/CustomHeaderComponent.tsx @@ -17,7 +17,7 @@ class HeaderComponent extends React.Component) { - this.props.filterByColumn(e.currentTarget.value, this.props.columnName) + this.props.filterByColumn(e.currentTarget.value, this.props.columnName); } render() { @@ -40,28 +40,28 @@ interface ResultType { favoriteNumber: number; } -var someData: ResultType[] = [ +const someData: ResultType[] = [ { - "id": 0, - "name": "Mayer Leonard", - "city": "Kapowsin", - "state": "Hawaii", - "country": "United Kingdom", - "company": "Ovolo", - "favoriteNumber": 7 + id: 0, + name: "Mayer Leonard", + city: "Kapowsin", + state: "Hawaii", + country: "United Kingdom", + company: "Ovolo", + favoriteNumber: 7 }, { - "id": 1, - "name": "Koch Becker", - "city": "Johnsonburg", - "state": "New Jersey", - "country": "Madagascar", - "company": "Eventage", - "favoriteNumber": 2 + id: 1, + name: "Koch Becker", + city: "Johnsonburg", + state: "New Jersey", + country: "Madagascar", + company: "Eventage", + favoriteNumber: 2 } ]; -var columnMeta: ColumnMetaData[] = [ +const columnMeta: Array> = [ { columnName: 'name', order: 1, @@ -82,7 +82,6 @@ var columnMeta: ColumnMetaData[] = [ class CustomHeaderComponentGrid extends React.Component { render() { - type TypedGriddle = new () => Griddle; const TypedGriddle = Griddle as TypedGriddle; diff --git a/griddle-react/griddle-react-tests.tsx b/types/griddle-react/test/index.tsx similarity index 73% rename from griddle-react/griddle-react-tests.tsx rename to types/griddle-react/test/index.tsx index 5f241feeb5..3e0b1c76ff 100644 --- a/griddle-react/griddle-react-tests.tsx +++ b/types/griddle-react/test/index.tsx @@ -7,28 +7,28 @@ Copyright (c) 2016 David Hara import * as React from 'react'; import { render } from 'react-dom'; import Griddle, { CustomColumnComponentProps } from 'griddle-react'; -import CustomColumnComponentGrid from './test/CustomColumnComponent'; -import CustomHeaderComponentGrid from './test/CustomHeaderComponent'; -import CustomFilterComponentGrid from './test/CustomFilterComponent'; +import CustomColumnComponentGrid from './CustomColumnComponent'; +import CustomHeaderComponentGrid from './CustomHeaderComponent'; +import CustomFilterComponentGrid from './CustomFilterComponent'; interface MyCustomResult { - name: string, - test: string + name: string; + test: string; } class LinkComponent extends React.Component, any> { render() { - var url = "speakers/" + this.props.rowData.test + "/" + this.props.data; - return {this.props.data} + const url = "speakers/" + this.props.rowData.test + "/" + this.props.data; + return {this.props.data}; } } const StatelessFunctionComponent = (props: CustomColumnComponentProps) => { - var url = "speakers/" + props.rowData.test + "/" + props.data; - return {props.data} + const url = "speakers/" + props.rowData.test + "/" + props.data; + return {props.data}; }; -var columnMeta = [ +const columnMeta = [ { columnName: "name", order: 1, @@ -37,7 +37,7 @@ var columnMeta = [ customComponent: StatelessFunctionComponent }]; -var results: MyCustomResult[] = [ +const results: MyCustomResult[] = [ { name: 'David Hara', test: 'blah' @@ -48,7 +48,7 @@ var results: MyCustomResult[] = [ } ]; -var rowMetaData = { +const rowMetaData = { bodyCssClassName: (rowData: MyCustomResult) => { return rowData.test; } diff --git a/griddle-react/tsconfig.json b/types/griddle-react/tsconfig.json similarity index 94% rename from griddle-react/tsconfig.json rename to types/griddle-react/tsconfig.json index 5dd6f9d98b..3de8b9abda 100644 --- a/griddle-react/tsconfig.json +++ b/types/griddle-react/tsconfig.json @@ -19,7 +19,7 @@ }, "files": [ "index.d.ts", - "griddle-react-tests.tsx", + "test/index.tsx", "test/CustomColumnComponent.tsx", "test/CustomFilterComponent.tsx", "test/CustomHeaderComponent.tsx" diff --git a/griddle-react/tslint.json b/types/griddle-react/tslint.json similarity index 100% rename from griddle-react/tslint.json rename to types/griddle-react/tslint.json diff --git a/gridfs-stream/gridfs-stream-tests.ts b/types/gridfs-stream/gridfs-stream-tests.ts similarity index 100% rename from gridfs-stream/gridfs-stream-tests.ts rename to types/gridfs-stream/gridfs-stream-tests.ts diff --git a/gridfs-stream/index.d.ts b/types/gridfs-stream/index.d.ts similarity index 100% rename from gridfs-stream/index.d.ts rename to types/gridfs-stream/index.d.ts diff --git a/gridfs-stream/tsconfig.json b/types/gridfs-stream/tsconfig.json similarity index 100% rename from gridfs-stream/tsconfig.json rename to types/gridfs-stream/tsconfig.json diff --git a/gridstack/gridstack-tests.ts b/types/gridstack/gridstack-tests.ts similarity index 100% rename from gridstack/gridstack-tests.ts rename to types/gridstack/gridstack-tests.ts diff --git a/gridstack/index.d.ts b/types/gridstack/index.d.ts similarity index 100% rename from gridstack/index.d.ts rename to types/gridstack/index.d.ts diff --git a/gridstack/tsconfig.json b/types/gridstack/tsconfig.json similarity index 100% rename from gridstack/tsconfig.json rename to types/gridstack/tsconfig.json diff --git a/grunt/grunt-tests.ts b/types/grunt/grunt-tests.ts similarity index 100% rename from grunt/grunt-tests.ts rename to types/grunt/grunt-tests.ts diff --git a/grunt/index.d.ts b/types/grunt/index.d.ts similarity index 100% rename from grunt/index.d.ts rename to types/grunt/index.d.ts diff --git a/grunt/tsconfig.json b/types/grunt/tsconfig.json similarity index 100% rename from grunt/tsconfig.json rename to types/grunt/tsconfig.json diff --git a/gsap/Animation.d.ts b/types/gsap/Animation.d.ts similarity index 100% rename from gsap/Animation.d.ts rename to types/gsap/Animation.d.ts diff --git a/gsap/Ease.d.ts b/types/gsap/Ease.d.ts similarity index 100% rename from gsap/Ease.d.ts rename to types/gsap/Ease.d.ts diff --git a/gsap/Plugins.d.ts b/types/gsap/Plugins.d.ts similarity index 100% rename from gsap/Plugins.d.ts rename to types/gsap/Plugins.d.ts diff --git a/gsap/Timeline.d.ts b/types/gsap/Timeline.d.ts similarity index 100% rename from gsap/Timeline.d.ts rename to types/gsap/Timeline.d.ts diff --git a/gsap/Tween.d.ts b/types/gsap/Tween.d.ts similarity index 100% rename from gsap/Tween.d.ts rename to types/gsap/Tween.d.ts diff --git a/gsap/TweenConfig.d.ts b/types/gsap/TweenConfig.d.ts similarity index 100% rename from gsap/TweenConfig.d.ts rename to types/gsap/TweenConfig.d.ts diff --git a/gsap/gsap-tests.ts b/types/gsap/gsap-tests.ts similarity index 100% rename from gsap/gsap-tests.ts rename to types/gsap/gsap-tests.ts diff --git a/gsap/index.d.ts b/types/gsap/index.d.ts similarity index 100% rename from gsap/index.d.ts rename to types/gsap/index.d.ts diff --git a/gsap/tsconfig.json b/types/gsap/tsconfig.json similarity index 100% rename from gsap/tsconfig.json rename to types/gsap/tsconfig.json diff --git a/gsap/tslint.json b/types/gsap/tslint.json similarity index 100% rename from gsap/tslint.json rename to types/gsap/tslint.json diff --git a/gulp-angular-templatecache/gulp-angular-templatecache-tests.ts b/types/gulp-angular-templatecache/gulp-angular-templatecache-tests.ts similarity index 100% rename from gulp-angular-templatecache/gulp-angular-templatecache-tests.ts rename to types/gulp-angular-templatecache/gulp-angular-templatecache-tests.ts diff --git a/gulp-angular-templatecache/index.d.ts b/types/gulp-angular-templatecache/index.d.ts similarity index 100% rename from gulp-angular-templatecache/index.d.ts rename to types/gulp-angular-templatecache/index.d.ts diff --git a/gulp-angular-templatecache/tsconfig.json b/types/gulp-angular-templatecache/tsconfig.json similarity index 100% rename from gulp-angular-templatecache/tsconfig.json rename to types/gulp-angular-templatecache/tsconfig.json diff --git a/gulp-autoprefixer/gulp-autoprefixer-tests.ts b/types/gulp-autoprefixer/gulp-autoprefixer-tests.ts similarity index 100% rename from gulp-autoprefixer/gulp-autoprefixer-tests.ts rename to types/gulp-autoprefixer/gulp-autoprefixer-tests.ts diff --git a/gulp-autoprefixer/index.d.ts b/types/gulp-autoprefixer/index.d.ts similarity index 100% rename from gulp-autoprefixer/index.d.ts rename to types/gulp-autoprefixer/index.d.ts diff --git a/gulp-autoprefixer/tsconfig.json b/types/gulp-autoprefixer/tsconfig.json similarity index 100% rename from gulp-autoprefixer/tsconfig.json rename to types/gulp-autoprefixer/tsconfig.json diff --git a/gulp-babel/gulp-babel-tests.ts b/types/gulp-babel/gulp-babel-tests.ts similarity index 100% rename from gulp-babel/gulp-babel-tests.ts rename to types/gulp-babel/gulp-babel-tests.ts diff --git a/gulp-babel/index.d.ts b/types/gulp-babel/index.d.ts similarity index 100% rename from gulp-babel/index.d.ts rename to types/gulp-babel/index.d.ts diff --git a/gulp-babel/tsconfig.json b/types/gulp-babel/tsconfig.json similarity index 100% rename from gulp-babel/tsconfig.json rename to types/gulp-babel/tsconfig.json diff --git a/gulp-batch/gulp-batch-tests.ts b/types/gulp-batch/gulp-batch-tests.ts similarity index 100% rename from gulp-batch/gulp-batch-tests.ts rename to types/gulp-batch/gulp-batch-tests.ts diff --git a/gulp-batch/index.d.ts b/types/gulp-batch/index.d.ts similarity index 100% rename from gulp-batch/index.d.ts rename to types/gulp-batch/index.d.ts diff --git a/gulp-batch/tsconfig.json b/types/gulp-batch/tsconfig.json similarity index 100% rename from gulp-batch/tsconfig.json rename to types/gulp-batch/tsconfig.json diff --git a/graphql-relay/tslint.json b/types/gulp-batch/tslint.json similarity index 100% rename from graphql-relay/tslint.json rename to types/gulp-batch/tslint.json diff --git a/gulp-cache/gulp-cache-tests.ts b/types/gulp-cache/gulp-cache-tests.ts similarity index 100% rename from gulp-cache/gulp-cache-tests.ts rename to types/gulp-cache/gulp-cache-tests.ts diff --git a/gulp-cache/index.d.ts b/types/gulp-cache/index.d.ts similarity index 100% rename from gulp-cache/index.d.ts rename to types/gulp-cache/index.d.ts diff --git a/gulp-cache/tsconfig.json b/types/gulp-cache/tsconfig.json similarity index 100% rename from gulp-cache/tsconfig.json rename to types/gulp-cache/tsconfig.json diff --git a/gulp-cached/gulp-cached-tests.ts b/types/gulp-cached/gulp-cached-tests.ts similarity index 100% rename from gulp-cached/gulp-cached-tests.ts rename to types/gulp-cached/gulp-cached-tests.ts diff --git a/gulp-cached/index.d.ts b/types/gulp-cached/index.d.ts similarity index 100% rename from gulp-cached/index.d.ts rename to types/gulp-cached/index.d.ts diff --git a/gulp-cached/tsconfig.json b/types/gulp-cached/tsconfig.json similarity index 100% rename from gulp-cached/tsconfig.json rename to types/gulp-cached/tsconfig.json diff --git a/gulp-changed/gulp-changed-tests.ts b/types/gulp-changed/gulp-changed-tests.ts similarity index 100% rename from gulp-changed/gulp-changed-tests.ts rename to types/gulp-changed/gulp-changed-tests.ts diff --git a/gulp-changed/index.d.ts b/types/gulp-changed/index.d.ts similarity index 100% rename from gulp-changed/index.d.ts rename to types/gulp-changed/index.d.ts diff --git a/gulp-changed/tsconfig.json b/types/gulp-changed/tsconfig.json similarity index 100% rename from gulp-changed/tsconfig.json rename to types/gulp-changed/tsconfig.json diff --git a/gulp-cheerio/gulp-cheerio-tests.ts b/types/gulp-cheerio/gulp-cheerio-tests.ts similarity index 100% rename from gulp-cheerio/gulp-cheerio-tests.ts rename to types/gulp-cheerio/gulp-cheerio-tests.ts diff --git a/gulp-cheerio/index.d.ts b/types/gulp-cheerio/index.d.ts similarity index 100% rename from gulp-cheerio/index.d.ts rename to types/gulp-cheerio/index.d.ts diff --git a/gulp-cheerio/tsconfig.json b/types/gulp-cheerio/tsconfig.json similarity index 100% rename from gulp-cheerio/tsconfig.json rename to types/gulp-cheerio/tsconfig.json diff --git a/gulp-coffeeify/gulp-coffeeify-tests.ts b/types/gulp-coffeeify/gulp-coffeeify-tests.ts similarity index 100% rename from gulp-coffeeify/gulp-coffeeify-tests.ts rename to types/gulp-coffeeify/gulp-coffeeify-tests.ts diff --git a/gulp-coffeeify/index.d.ts b/types/gulp-coffeeify/index.d.ts similarity index 100% rename from gulp-coffeeify/index.d.ts rename to types/gulp-coffeeify/index.d.ts diff --git a/gulp-coffeeify/tsconfig.json b/types/gulp-coffeeify/tsconfig.json similarity index 100% rename from gulp-coffeeify/tsconfig.json rename to types/gulp-coffeeify/tsconfig.json diff --git a/gulp-coffeelint/gulp-coffeelint-tests.ts b/types/gulp-coffeelint/gulp-coffeelint-tests.ts similarity index 100% rename from gulp-coffeelint/gulp-coffeelint-tests.ts rename to types/gulp-coffeelint/gulp-coffeelint-tests.ts diff --git a/gulp-coffeelint/index.d.ts b/types/gulp-coffeelint/index.d.ts similarity index 100% rename from gulp-coffeelint/index.d.ts rename to types/gulp-coffeelint/index.d.ts diff --git a/gulp-coffeelint/tsconfig.json b/types/gulp-coffeelint/tsconfig.json similarity index 100% rename from gulp-coffeelint/tsconfig.json rename to types/gulp-coffeelint/tsconfig.json diff --git a/gulp-concat/gulp-concat-tests.ts b/types/gulp-concat/gulp-concat-tests.ts similarity index 100% rename from gulp-concat/gulp-concat-tests.ts rename to types/gulp-concat/gulp-concat-tests.ts diff --git a/gulp-concat/index.d.ts b/types/gulp-concat/index.d.ts similarity index 100% rename from gulp-concat/index.d.ts rename to types/gulp-concat/index.d.ts diff --git a/gulp-concat/tsconfig.json b/types/gulp-concat/tsconfig.json similarity index 100% rename from gulp-concat/tsconfig.json rename to types/gulp-concat/tsconfig.json diff --git a/gulp-copy/gulp-copy-tests.ts b/types/gulp-copy/gulp-copy-tests.ts similarity index 100% rename from gulp-copy/gulp-copy-tests.ts rename to types/gulp-copy/gulp-copy-tests.ts diff --git a/gulp-copy/index.d.ts b/types/gulp-copy/index.d.ts similarity index 100% rename from gulp-copy/index.d.ts rename to types/gulp-copy/index.d.ts diff --git a/gulp-copy/tsconfig.json b/types/gulp-copy/tsconfig.json similarity index 100% rename from gulp-copy/tsconfig.json rename to types/gulp-copy/tsconfig.json diff --git a/gulp-csso/gulp-csso-tests.ts b/types/gulp-csso/gulp-csso-tests.ts similarity index 100% rename from gulp-csso/gulp-csso-tests.ts rename to types/gulp-csso/gulp-csso-tests.ts diff --git a/gulp-csso/index.d.ts b/types/gulp-csso/index.d.ts similarity index 100% rename from gulp-csso/index.d.ts rename to types/gulp-csso/index.d.ts diff --git a/gulp-csso/tsconfig.json b/types/gulp-csso/tsconfig.json similarity index 100% rename from gulp-csso/tsconfig.json rename to types/gulp-csso/tsconfig.json diff --git a/gulp-debug/gulp-debug-tests.ts b/types/gulp-debug/gulp-debug-tests.ts similarity index 100% rename from gulp-debug/gulp-debug-tests.ts rename to types/gulp-debug/gulp-debug-tests.ts diff --git a/gulp-debug/index.d.ts b/types/gulp-debug/index.d.ts similarity index 100% rename from gulp-debug/index.d.ts rename to types/gulp-debug/index.d.ts diff --git a/gulp-debug/tsconfig.json b/types/gulp-debug/tsconfig.json similarity index 100% rename from gulp-debug/tsconfig.json rename to types/gulp-debug/tsconfig.json diff --git a/gulp-dtsm/gulp-dtsm-tests.ts b/types/gulp-dtsm/gulp-dtsm-tests.ts similarity index 100% rename from gulp-dtsm/gulp-dtsm-tests.ts rename to types/gulp-dtsm/gulp-dtsm-tests.ts diff --git a/gulp-dtsm/index.d.ts b/types/gulp-dtsm/index.d.ts similarity index 100% rename from gulp-dtsm/index.d.ts rename to types/gulp-dtsm/index.d.ts diff --git a/gulp-dtsm/tsconfig.json b/types/gulp-dtsm/tsconfig.json similarity index 100% rename from gulp-dtsm/tsconfig.json rename to types/gulp-dtsm/tsconfig.json diff --git a/gulp-espower/gulp-espower-tests.ts b/types/gulp-espower/gulp-espower-tests.ts similarity index 100% rename from gulp-espower/gulp-espower-tests.ts rename to types/gulp-espower/gulp-espower-tests.ts diff --git a/gulp-espower/index.d.ts b/types/gulp-espower/index.d.ts similarity index 100% rename from gulp-espower/index.d.ts rename to types/gulp-espower/index.d.ts diff --git a/gulp-espower/tsconfig.json b/types/gulp-espower/tsconfig.json similarity index 100% rename from gulp-espower/tsconfig.json rename to types/gulp-espower/tsconfig.json diff --git a/gulp-file-include/gulp-file-include-tests.ts b/types/gulp-file-include/gulp-file-include-tests.ts similarity index 100% rename from gulp-file-include/gulp-file-include-tests.ts rename to types/gulp-file-include/gulp-file-include-tests.ts diff --git a/gulp-file-include/index.d.ts b/types/gulp-file-include/index.d.ts similarity index 100% rename from gulp-file-include/index.d.ts rename to types/gulp-file-include/index.d.ts diff --git a/gulp-file-include/tsconfig.json b/types/gulp-file-include/tsconfig.json similarity index 100% rename from gulp-file-include/tsconfig.json rename to types/gulp-file-include/tsconfig.json diff --git a/gulp-filter/gulp-filter-tests.ts b/types/gulp-filter/gulp-filter-tests.ts similarity index 100% rename from gulp-filter/gulp-filter-tests.ts rename to types/gulp-filter/gulp-filter-tests.ts diff --git a/gulp-filter/index.d.ts b/types/gulp-filter/index.d.ts similarity index 100% rename from gulp-filter/index.d.ts rename to types/gulp-filter/index.d.ts diff --git a/gulp-filter/tsconfig.json b/types/gulp-filter/tsconfig.json similarity index 100% rename from gulp-filter/tsconfig.json rename to types/gulp-filter/tsconfig.json diff --git a/gulp-flatten/gulp-flatten-tests.ts b/types/gulp-flatten/gulp-flatten-tests.ts similarity index 100% rename from gulp-flatten/gulp-flatten-tests.ts rename to types/gulp-flatten/gulp-flatten-tests.ts diff --git a/gulp-flatten/index.d.ts b/types/gulp-flatten/index.d.ts similarity index 100% rename from gulp-flatten/index.d.ts rename to types/gulp-flatten/index.d.ts diff --git a/gulp-flatten/tsconfig.json b/types/gulp-flatten/tsconfig.json similarity index 100% rename from gulp-flatten/tsconfig.json rename to types/gulp-flatten/tsconfig.json diff --git a/gulp-gh-pages/gulp-gh-pages-tests.ts b/types/gulp-gh-pages/gulp-gh-pages-tests.ts similarity index 100% rename from gulp-gh-pages/gulp-gh-pages-tests.ts rename to types/gulp-gh-pages/gulp-gh-pages-tests.ts diff --git a/gulp-gh-pages/index.d.ts b/types/gulp-gh-pages/index.d.ts similarity index 100% rename from gulp-gh-pages/index.d.ts rename to types/gulp-gh-pages/index.d.ts diff --git a/gulp-gh-pages/tsconfig.json b/types/gulp-gh-pages/tsconfig.json similarity index 100% rename from gulp-gh-pages/tsconfig.json rename to types/gulp-gh-pages/tsconfig.json diff --git a/gulp-gzip/gulp-gzip-tests.ts b/types/gulp-gzip/gulp-gzip-tests.ts similarity index 100% rename from gulp-gzip/gulp-gzip-tests.ts rename to types/gulp-gzip/gulp-gzip-tests.ts diff --git a/gulp-gzip/index.d.ts b/types/gulp-gzip/index.d.ts similarity index 100% rename from gulp-gzip/index.d.ts rename to types/gulp-gzip/index.d.ts diff --git a/gulp-gzip/tsconfig.json b/types/gulp-gzip/tsconfig.json similarity index 100% rename from gulp-gzip/tsconfig.json rename to types/gulp-gzip/tsconfig.json diff --git a/gulp-help-doc/gulp-help-doc-tests.ts b/types/gulp-help-doc/gulp-help-doc-tests.ts similarity index 100% rename from gulp-help-doc/gulp-help-doc-tests.ts rename to types/gulp-help-doc/gulp-help-doc-tests.ts diff --git a/gulp-help-doc/index.d.ts b/types/gulp-help-doc/index.d.ts similarity index 100% rename from gulp-help-doc/index.d.ts rename to types/gulp-help-doc/index.d.ts diff --git a/gulp-help-doc/tsconfig.json b/types/gulp-help-doc/tsconfig.json similarity index 100% rename from gulp-help-doc/tsconfig.json rename to types/gulp-help-doc/tsconfig.json diff --git a/gulp-help/gulp-help-tests.ts b/types/gulp-help/gulp-help-tests.ts similarity index 100% rename from gulp-help/gulp-help-tests.ts rename to types/gulp-help/gulp-help-tests.ts diff --git a/gulp-help/index.d.ts b/types/gulp-help/index.d.ts similarity index 100% rename from gulp-help/index.d.ts rename to types/gulp-help/index.d.ts diff --git a/gulp-help/tsconfig.json b/types/gulp-help/tsconfig.json similarity index 100% rename from gulp-help/tsconfig.json rename to types/gulp-help/tsconfig.json diff --git a/gulp-html-replace/gulp-html-replace-tests.ts b/types/gulp-html-replace/gulp-html-replace-tests.ts similarity index 100% rename from gulp-html-replace/gulp-html-replace-tests.ts rename to types/gulp-html-replace/gulp-html-replace-tests.ts diff --git a/gulp-html-replace/index.d.ts b/types/gulp-html-replace/index.d.ts similarity index 100% rename from gulp-html-replace/index.d.ts rename to types/gulp-html-replace/index.d.ts diff --git a/gulp-html-replace/tsconfig.json b/types/gulp-html-replace/tsconfig.json similarity index 100% rename from gulp-html-replace/tsconfig.json rename to types/gulp-html-replace/tsconfig.json diff --git a/gulp-htmlmin/gulp-htmlmin-tests.ts b/types/gulp-htmlmin/gulp-htmlmin-tests.ts similarity index 100% rename from gulp-htmlmin/gulp-htmlmin-tests.ts rename to types/gulp-htmlmin/gulp-htmlmin-tests.ts diff --git a/gulp-htmlmin/index.d.ts b/types/gulp-htmlmin/index.d.ts similarity index 100% rename from gulp-htmlmin/index.d.ts rename to types/gulp-htmlmin/index.d.ts diff --git a/gulp-htmlmin/tsconfig.json b/types/gulp-htmlmin/tsconfig.json similarity index 100% rename from gulp-htmlmin/tsconfig.json rename to types/gulp-htmlmin/tsconfig.json diff --git a/gulp-if/gulp-if-tests.ts b/types/gulp-if/gulp-if-tests.ts similarity index 100% rename from gulp-if/gulp-if-tests.ts rename to types/gulp-if/gulp-if-tests.ts diff --git a/gulp-if/index.d.ts b/types/gulp-if/index.d.ts similarity index 100% rename from gulp-if/index.d.ts rename to types/gulp-if/index.d.ts diff --git a/gulp-if/tsconfig.json b/types/gulp-if/tsconfig.json similarity index 100% rename from gulp-if/tsconfig.json rename to types/gulp-if/tsconfig.json diff --git a/gulp-inject/gulp-inject-tests.ts b/types/gulp-inject/gulp-inject-tests.ts similarity index 100% rename from gulp-inject/gulp-inject-tests.ts rename to types/gulp-inject/gulp-inject-tests.ts diff --git a/gulp-inject/index.d.ts b/types/gulp-inject/index.d.ts similarity index 100% rename from gulp-inject/index.d.ts rename to types/gulp-inject/index.d.ts diff --git a/gulp-inject/tsconfig.json b/types/gulp-inject/tsconfig.json similarity index 100% rename from gulp-inject/tsconfig.json rename to types/gulp-inject/tsconfig.json diff --git a/gulp-insert/gulp-insert-tests.ts b/types/gulp-insert/gulp-insert-tests.ts similarity index 100% rename from gulp-insert/gulp-insert-tests.ts rename to types/gulp-insert/gulp-insert-tests.ts diff --git a/gulp-insert/index.d.ts b/types/gulp-insert/index.d.ts similarity index 100% rename from gulp-insert/index.d.ts rename to types/gulp-insert/index.d.ts diff --git a/gulp-insert/tsconfig.json b/types/gulp-insert/tsconfig.json similarity index 100% rename from gulp-insert/tsconfig.json rename to types/gulp-insert/tsconfig.json diff --git a/gulp-install/gulp-install-tests.ts b/types/gulp-install/gulp-install-tests.ts similarity index 100% rename from gulp-install/gulp-install-tests.ts rename to types/gulp-install/gulp-install-tests.ts diff --git a/gulp-install/index.d.ts b/types/gulp-install/index.d.ts similarity index 100% rename from gulp-install/index.d.ts rename to types/gulp-install/index.d.ts diff --git a/gulp-install/tsconfig.json b/types/gulp-install/tsconfig.json similarity index 100% rename from gulp-install/tsconfig.json rename to types/gulp-install/tsconfig.json diff --git a/gulp-istanbul/gulp-istanbul-tests.ts b/types/gulp-istanbul/gulp-istanbul-tests.ts similarity index 100% rename from gulp-istanbul/gulp-istanbul-tests.ts rename to types/gulp-istanbul/gulp-istanbul-tests.ts diff --git a/gulp-istanbul/index.d.ts b/types/gulp-istanbul/index.d.ts similarity index 100% rename from gulp-istanbul/index.d.ts rename to types/gulp-istanbul/index.d.ts diff --git a/gulp-istanbul/tsconfig.json b/types/gulp-istanbul/tsconfig.json similarity index 100% rename from gulp-istanbul/tsconfig.json rename to types/gulp-istanbul/tsconfig.json diff --git a/gulp-jade/gulp-jade-tests.ts b/types/gulp-jade/gulp-jade-tests.ts similarity index 100% rename from gulp-jade/gulp-jade-tests.ts rename to types/gulp-jade/gulp-jade-tests.ts diff --git a/gulp-jade/index.d.ts b/types/gulp-jade/index.d.ts similarity index 100% rename from gulp-jade/index.d.ts rename to types/gulp-jade/index.d.ts diff --git a/gulp-jade/tsconfig.json b/types/gulp-jade/tsconfig.json similarity index 100% rename from gulp-jade/tsconfig.json rename to types/gulp-jade/tsconfig.json diff --git a/gulp-jasmine-browser/gulp-jasmine-browser-tests.ts b/types/gulp-jasmine-browser/gulp-jasmine-browser-tests.ts similarity index 100% rename from gulp-jasmine-browser/gulp-jasmine-browser-tests.ts rename to types/gulp-jasmine-browser/gulp-jasmine-browser-tests.ts diff --git a/gulp-jasmine-browser/index.d.ts b/types/gulp-jasmine-browser/index.d.ts similarity index 100% rename from gulp-jasmine-browser/index.d.ts rename to types/gulp-jasmine-browser/index.d.ts diff --git a/gulp-jasmine-browser/tsconfig.json b/types/gulp-jasmine-browser/tsconfig.json similarity index 100% rename from gulp-jasmine-browser/tsconfig.json rename to types/gulp-jasmine-browser/tsconfig.json diff --git a/gulp-json-editor/gulp-json-editor-tests.ts b/types/gulp-json-editor/gulp-json-editor-tests.ts similarity index 100% rename from gulp-json-editor/gulp-json-editor-tests.ts rename to types/gulp-json-editor/gulp-json-editor-tests.ts diff --git a/gulp-json-editor/index.d.ts b/types/gulp-json-editor/index.d.ts similarity index 100% rename from gulp-json-editor/index.d.ts rename to types/gulp-json-editor/index.d.ts diff --git a/gulp-json-editor/tsconfig.json b/types/gulp-json-editor/tsconfig.json similarity index 100% rename from gulp-json-editor/tsconfig.json rename to types/gulp-json-editor/tsconfig.json diff --git a/gulp-jspm/gulp-jspm-tests.ts b/types/gulp-jspm/gulp-jspm-tests.ts similarity index 100% rename from gulp-jspm/gulp-jspm-tests.ts rename to types/gulp-jspm/gulp-jspm-tests.ts diff --git a/gulp-jspm/index.d.ts b/types/gulp-jspm/index.d.ts similarity index 100% rename from gulp-jspm/index.d.ts rename to types/gulp-jspm/index.d.ts diff --git a/gulp-jspm/tsconfig.json b/types/gulp-jspm/tsconfig.json similarity index 100% rename from gulp-jspm/tsconfig.json rename to types/gulp-jspm/tsconfig.json diff --git a/gulp-less/gulp-less-tests.ts b/types/gulp-less/gulp-less-tests.ts similarity index 100% rename from gulp-less/gulp-less-tests.ts rename to types/gulp-less/gulp-less-tests.ts diff --git a/gulp-less/index.d.ts b/types/gulp-less/index.d.ts similarity index 100% rename from gulp-less/index.d.ts rename to types/gulp-less/index.d.ts diff --git a/gulp-less/tsconfig.json b/types/gulp-less/tsconfig.json similarity index 100% rename from gulp-less/tsconfig.json rename to types/gulp-less/tsconfig.json diff --git a/gulp-load-plugins/gulp-load-plugins-tests.ts b/types/gulp-load-plugins/gulp-load-plugins-tests.ts similarity index 100% rename from gulp-load-plugins/gulp-load-plugins-tests.ts rename to types/gulp-load-plugins/gulp-load-plugins-tests.ts diff --git a/gulp-load-plugins/index.d.ts b/types/gulp-load-plugins/index.d.ts similarity index 100% rename from gulp-load-plugins/index.d.ts rename to types/gulp-load-plugins/index.d.ts diff --git a/gulp-load-plugins/tsconfig.json b/types/gulp-load-plugins/tsconfig.json similarity index 100% rename from gulp-load-plugins/tsconfig.json rename to types/gulp-load-plugins/tsconfig.json diff --git a/gulp-minify-css/gulp-minify-css-tests.ts b/types/gulp-minify-css/gulp-minify-css-tests.ts similarity index 100% rename from gulp-minify-css/gulp-minify-css-tests.ts rename to types/gulp-minify-css/gulp-minify-css-tests.ts diff --git a/gulp-minify-css/index.d.ts b/types/gulp-minify-css/index.d.ts similarity index 100% rename from gulp-minify-css/index.d.ts rename to types/gulp-minify-css/index.d.ts diff --git a/gulp-minify-css/tsconfig.json b/types/gulp-minify-css/tsconfig.json similarity index 100% rename from gulp-minify-css/tsconfig.json rename to types/gulp-minify-css/tsconfig.json diff --git a/gulp-minify-html/gulp-minify-html-tests.ts b/types/gulp-minify-html/gulp-minify-html-tests.ts similarity index 100% rename from gulp-minify-html/gulp-minify-html-tests.ts rename to types/gulp-minify-html/gulp-minify-html-tests.ts diff --git a/gulp-minify-html/index.d.ts b/types/gulp-minify-html/index.d.ts similarity index 100% rename from gulp-minify-html/index.d.ts rename to types/gulp-minify-html/index.d.ts diff --git a/gulp-minify-html/tsconfig.json b/types/gulp-minify-html/tsconfig.json similarity index 100% rename from gulp-minify-html/tsconfig.json rename to types/gulp-minify-html/tsconfig.json diff --git a/gulp-mocha/gulp-mocha-tests.ts b/types/gulp-mocha/gulp-mocha-tests.ts similarity index 100% rename from gulp-mocha/gulp-mocha-tests.ts rename to types/gulp-mocha/gulp-mocha-tests.ts diff --git a/gulp-mocha/index.d.ts b/types/gulp-mocha/index.d.ts similarity index 100% rename from gulp-mocha/index.d.ts rename to types/gulp-mocha/index.d.ts diff --git a/gulp-mocha/tsconfig.json b/types/gulp-mocha/tsconfig.json similarity index 100% rename from gulp-mocha/tsconfig.json rename to types/gulp-mocha/tsconfig.json diff --git a/gulp-newer/gulp-newer-tests.ts b/types/gulp-newer/gulp-newer-tests.ts similarity index 100% rename from gulp-newer/gulp-newer-tests.ts rename to types/gulp-newer/gulp-newer-tests.ts diff --git a/gulp-newer/index.d.ts b/types/gulp-newer/index.d.ts similarity index 100% rename from gulp-newer/index.d.ts rename to types/gulp-newer/index.d.ts diff --git a/gulp-newer/tsconfig.json b/types/gulp-newer/tsconfig.json similarity index 100% rename from gulp-newer/tsconfig.json rename to types/gulp-newer/tsconfig.json diff --git a/gulp-ng-annotate/gulp-ng-annotate-tests.ts b/types/gulp-ng-annotate/gulp-ng-annotate-tests.ts similarity index 100% rename from gulp-ng-annotate/gulp-ng-annotate-tests.ts rename to types/gulp-ng-annotate/gulp-ng-annotate-tests.ts diff --git a/gulp-ng-annotate/index.d.ts b/types/gulp-ng-annotate/index.d.ts similarity index 100% rename from gulp-ng-annotate/index.d.ts rename to types/gulp-ng-annotate/index.d.ts diff --git a/gulp-ng-annotate/tsconfig.json b/types/gulp-ng-annotate/tsconfig.json similarity index 100% rename from gulp-ng-annotate/tsconfig.json rename to types/gulp-ng-annotate/tsconfig.json diff --git a/gulp-nodemon/gulp-nodemon-tests.ts b/types/gulp-nodemon/gulp-nodemon-tests.ts similarity index 100% rename from gulp-nodemon/gulp-nodemon-tests.ts rename to types/gulp-nodemon/gulp-nodemon-tests.ts diff --git a/gulp-nodemon/index.d.ts b/types/gulp-nodemon/index.d.ts similarity index 100% rename from gulp-nodemon/index.d.ts rename to types/gulp-nodemon/index.d.ts diff --git a/gulp-nodemon/tsconfig.json b/types/gulp-nodemon/tsconfig.json similarity index 100% rename from gulp-nodemon/tsconfig.json rename to types/gulp-nodemon/tsconfig.json diff --git a/gulp-plumber/gulp-plumber-tests.ts b/types/gulp-plumber/gulp-plumber-tests.ts similarity index 100% rename from gulp-plumber/gulp-plumber-tests.ts rename to types/gulp-plumber/gulp-plumber-tests.ts diff --git a/gulp-plumber/index.d.ts b/types/gulp-plumber/index.d.ts similarity index 100% rename from gulp-plumber/index.d.ts rename to types/gulp-plumber/index.d.ts diff --git a/gulp-plumber/tsconfig.json b/types/gulp-plumber/tsconfig.json similarity index 100% rename from gulp-plumber/tsconfig.json rename to types/gulp-plumber/tsconfig.json diff --git a/gulp-protractor/gulp-protractor-tests.ts b/types/gulp-protractor/gulp-protractor-tests.ts similarity index 100% rename from gulp-protractor/gulp-protractor-tests.ts rename to types/gulp-protractor/gulp-protractor-tests.ts diff --git a/gulp-protractor/index.d.ts b/types/gulp-protractor/index.d.ts similarity index 100% rename from gulp-protractor/index.d.ts rename to types/gulp-protractor/index.d.ts diff --git a/gulp-protractor/tsconfig.json b/types/gulp-protractor/tsconfig.json similarity index 100% rename from gulp-protractor/tsconfig.json rename to types/gulp-protractor/tsconfig.json diff --git a/gulp-remember/gulp-remember-tests.ts b/types/gulp-remember/gulp-remember-tests.ts similarity index 100% rename from gulp-remember/gulp-remember-tests.ts rename to types/gulp-remember/gulp-remember-tests.ts diff --git a/gulp-remember/index.d.ts b/types/gulp-remember/index.d.ts similarity index 100% rename from gulp-remember/index.d.ts rename to types/gulp-remember/index.d.ts diff --git a/gulp-remember/tsconfig.json b/types/gulp-remember/tsconfig.json similarity index 100% rename from gulp-remember/tsconfig.json rename to types/gulp-remember/tsconfig.json diff --git a/gulp-rename/gulp-rename-tests.ts b/types/gulp-rename/gulp-rename-tests.ts similarity index 100% rename from gulp-rename/gulp-rename-tests.ts rename to types/gulp-rename/gulp-rename-tests.ts diff --git a/gulp-rename/index.d.ts b/types/gulp-rename/index.d.ts similarity index 100% rename from gulp-rename/index.d.ts rename to types/gulp-rename/index.d.ts diff --git a/gulp-rename/tsconfig.json b/types/gulp-rename/tsconfig.json similarity index 100% rename from gulp-rename/tsconfig.json rename to types/gulp-rename/tsconfig.json diff --git a/gulp-replace/gulp-replace-tests.ts b/types/gulp-replace/gulp-replace-tests.ts similarity index 100% rename from gulp-replace/gulp-replace-tests.ts rename to types/gulp-replace/gulp-replace-tests.ts diff --git a/gulp-replace/index.d.ts b/types/gulp-replace/index.d.ts similarity index 100% rename from gulp-replace/index.d.ts rename to types/gulp-replace/index.d.ts diff --git a/gulp-replace/tsconfig.json b/types/gulp-replace/tsconfig.json similarity index 100% rename from gulp-replace/tsconfig.json rename to types/gulp-replace/tsconfig.json diff --git a/gulp-rev-replace/gulp-rev-replace-tests.ts b/types/gulp-rev-replace/gulp-rev-replace-tests.ts similarity index 100% rename from gulp-rev-replace/gulp-rev-replace-tests.ts rename to types/gulp-rev-replace/gulp-rev-replace-tests.ts diff --git a/gulp-rev-replace/index.d.ts b/types/gulp-rev-replace/index.d.ts similarity index 100% rename from gulp-rev-replace/index.d.ts rename to types/gulp-rev-replace/index.d.ts diff --git a/gulp-rev-replace/tsconfig.json b/types/gulp-rev-replace/tsconfig.json similarity index 100% rename from gulp-rev-replace/tsconfig.json rename to types/gulp-rev-replace/tsconfig.json diff --git a/gulp-rev/gulp-rev-tests.ts b/types/gulp-rev/gulp-rev-tests.ts similarity index 100% rename from gulp-rev/gulp-rev-tests.ts rename to types/gulp-rev/gulp-rev-tests.ts diff --git a/gulp-rev/index.d.ts b/types/gulp-rev/index.d.ts similarity index 100% rename from gulp-rev/index.d.ts rename to types/gulp-rev/index.d.ts diff --git a/gulp-rev/tsconfig.json b/types/gulp-rev/tsconfig.json similarity index 100% rename from gulp-rev/tsconfig.json rename to types/gulp-rev/tsconfig.json diff --git a/gulp-ruby-sass/gulp-ruby-sass-tests.ts b/types/gulp-ruby-sass/gulp-ruby-sass-tests.ts similarity index 100% rename from gulp-ruby-sass/gulp-ruby-sass-tests.ts rename to types/gulp-ruby-sass/gulp-ruby-sass-tests.ts diff --git a/gulp-ruby-sass/index.d.ts b/types/gulp-ruby-sass/index.d.ts similarity index 100% rename from gulp-ruby-sass/index.d.ts rename to types/gulp-ruby-sass/index.d.ts diff --git a/gulp-ruby-sass/tsconfig.json b/types/gulp-ruby-sass/tsconfig.json similarity index 100% rename from gulp-ruby-sass/tsconfig.json rename to types/gulp-ruby-sass/tsconfig.json diff --git a/gulp-sass/gulp-sass-tests.ts b/types/gulp-sass/gulp-sass-tests.ts similarity index 100% rename from gulp-sass/gulp-sass-tests.ts rename to types/gulp-sass/gulp-sass-tests.ts diff --git a/gulp-sass/index.d.ts b/types/gulp-sass/index.d.ts similarity index 100% rename from gulp-sass/index.d.ts rename to types/gulp-sass/index.d.ts diff --git a/gulp-sass/tsconfig.json b/types/gulp-sass/tsconfig.json similarity index 100% rename from gulp-sass/tsconfig.json rename to types/gulp-sass/tsconfig.json diff --git a/gulp-shell/gulp-shell-tests.ts b/types/gulp-shell/gulp-shell-tests.ts similarity index 100% rename from gulp-shell/gulp-shell-tests.ts rename to types/gulp-shell/gulp-shell-tests.ts diff --git a/gulp-shell/index.d.ts b/types/gulp-shell/index.d.ts similarity index 100% rename from gulp-shell/index.d.ts rename to types/gulp-shell/index.d.ts diff --git a/gulp-shell/tsconfig.json b/types/gulp-shell/tsconfig.json similarity index 100% rename from gulp-shell/tsconfig.json rename to types/gulp-shell/tsconfig.json diff --git a/gulp-size/gulp-size-tests.ts b/types/gulp-size/gulp-size-tests.ts similarity index 100% rename from gulp-size/gulp-size-tests.ts rename to types/gulp-size/gulp-size-tests.ts diff --git a/gulp-size/index.d.ts b/types/gulp-size/index.d.ts similarity index 100% rename from gulp-size/index.d.ts rename to types/gulp-size/index.d.ts diff --git a/gulp-size/tsconfig.json b/types/gulp-size/tsconfig.json similarity index 100% rename from gulp-size/tsconfig.json rename to types/gulp-size/tsconfig.json diff --git a/gulp-sort/gulp-sort-tests.ts b/types/gulp-sort/gulp-sort-tests.ts similarity index 100% rename from gulp-sort/gulp-sort-tests.ts rename to types/gulp-sort/gulp-sort-tests.ts diff --git a/gulp-sort/index.d.ts b/types/gulp-sort/index.d.ts similarity index 100% rename from gulp-sort/index.d.ts rename to types/gulp-sort/index.d.ts diff --git a/gulp-sort/tsconfig.json b/types/gulp-sort/tsconfig.json similarity index 100% rename from gulp-sort/tsconfig.json rename to types/gulp-sort/tsconfig.json diff --git a/gulp-sourcemaps/gulp-sourcemaps-tests.ts b/types/gulp-sourcemaps/gulp-sourcemaps-tests.ts similarity index 100% rename from gulp-sourcemaps/gulp-sourcemaps-tests.ts rename to types/gulp-sourcemaps/gulp-sourcemaps-tests.ts diff --git a/gulp-sourcemaps/index.d.ts b/types/gulp-sourcemaps/index.d.ts similarity index 100% rename from gulp-sourcemaps/index.d.ts rename to types/gulp-sourcemaps/index.d.ts diff --git a/gulp-sourcemaps/tsconfig.json b/types/gulp-sourcemaps/tsconfig.json similarity index 100% rename from gulp-sourcemaps/tsconfig.json rename to types/gulp-sourcemaps/tsconfig.json diff --git a/gulp-strip-debug/gulp-strip-debug-tests.ts b/types/gulp-strip-debug/gulp-strip-debug-tests.ts similarity index 100% rename from gulp-strip-debug/gulp-strip-debug-tests.ts rename to types/gulp-strip-debug/gulp-strip-debug-tests.ts diff --git a/gulp-strip-debug/index.d.ts b/types/gulp-strip-debug/index.d.ts similarity index 100% rename from gulp-strip-debug/index.d.ts rename to types/gulp-strip-debug/index.d.ts diff --git a/gulp-strip-debug/tsconfig.json b/types/gulp-strip-debug/tsconfig.json similarity index 100% rename from gulp-strip-debug/tsconfig.json rename to types/gulp-strip-debug/tsconfig.json diff --git a/gulp-svg-sprite/gulp-svg-sprite-tests.ts b/types/gulp-svg-sprite/gulp-svg-sprite-tests.ts similarity index 100% rename from gulp-svg-sprite/gulp-svg-sprite-tests.ts rename to types/gulp-svg-sprite/gulp-svg-sprite-tests.ts diff --git a/gulp-svg-sprite/index.d.ts b/types/gulp-svg-sprite/index.d.ts similarity index 100% rename from gulp-svg-sprite/index.d.ts rename to types/gulp-svg-sprite/index.d.ts diff --git a/gulp-svg-sprite/tsconfig.json b/types/gulp-svg-sprite/tsconfig.json similarity index 100% rename from gulp-svg-sprite/tsconfig.json rename to types/gulp-svg-sprite/tsconfig.json diff --git a/gulp-task-listing/gulp-task-listing-tests.ts b/types/gulp-task-listing/gulp-task-listing-tests.ts similarity index 100% rename from gulp-task-listing/gulp-task-listing-tests.ts rename to types/gulp-task-listing/gulp-task-listing-tests.ts diff --git a/gulp-task-listing/index.d.ts b/types/gulp-task-listing/index.d.ts similarity index 100% rename from gulp-task-listing/index.d.ts rename to types/gulp-task-listing/index.d.ts diff --git a/gulp-task-listing/tsconfig.json b/types/gulp-task-listing/tsconfig.json similarity index 100% rename from gulp-task-listing/tsconfig.json rename to types/gulp-task-listing/tsconfig.json diff --git a/gulp-tsd/gulp-tsd-tests.ts b/types/gulp-tsd/gulp-tsd-tests.ts similarity index 100% rename from gulp-tsd/gulp-tsd-tests.ts rename to types/gulp-tsd/gulp-tsd-tests.ts diff --git a/gulp-tsd/index.d.ts b/types/gulp-tsd/index.d.ts similarity index 100% rename from gulp-tsd/index.d.ts rename to types/gulp-tsd/index.d.ts diff --git a/gulp-tsd/tsconfig.json b/types/gulp-tsd/tsconfig.json similarity index 100% rename from gulp-tsd/tsconfig.json rename to types/gulp-tsd/tsconfig.json diff --git a/gulp-tslint/gulp-tslint-tests.ts b/types/gulp-tslint/gulp-tslint-tests.ts similarity index 100% rename from gulp-tslint/gulp-tslint-tests.ts rename to types/gulp-tslint/gulp-tslint-tests.ts diff --git a/gulp-tslint/index.d.ts b/types/gulp-tslint/index.d.ts similarity index 100% rename from gulp-tslint/index.d.ts rename to types/gulp-tslint/index.d.ts diff --git a/gulp-tslint/tsconfig.json b/types/gulp-tslint/tsconfig.json similarity index 100% rename from gulp-tslint/tsconfig.json rename to types/gulp-tslint/tsconfig.json diff --git a/gulp-typedoc/gulp-typedoc-tests.ts b/types/gulp-typedoc/gulp-typedoc-tests.ts similarity index 100% rename from gulp-typedoc/gulp-typedoc-tests.ts rename to types/gulp-typedoc/gulp-typedoc-tests.ts diff --git a/gulp-typedoc/index.d.ts b/types/gulp-typedoc/index.d.ts similarity index 100% rename from gulp-typedoc/index.d.ts rename to types/gulp-typedoc/index.d.ts diff --git a/gulp-typedoc/tsconfig.json b/types/gulp-typedoc/tsconfig.json similarity index 100% rename from gulp-typedoc/tsconfig.json rename to types/gulp-typedoc/tsconfig.json diff --git a/gulp-typescript/gulp-typescript-tests.ts b/types/gulp-typescript/gulp-typescript-tests.ts similarity index 100% rename from gulp-typescript/gulp-typescript-tests.ts rename to types/gulp-typescript/gulp-typescript-tests.ts diff --git a/gulp-typescript/index.d.ts b/types/gulp-typescript/index.d.ts similarity index 100% rename from gulp-typescript/index.d.ts rename to types/gulp-typescript/index.d.ts diff --git a/gulp-typescript/tsconfig.json b/types/gulp-typescript/tsconfig.json similarity index 100% rename from gulp-typescript/tsconfig.json rename to types/gulp-typescript/tsconfig.json diff --git a/gulp-uglify/gulp-uglify-tests.ts b/types/gulp-uglify/gulp-uglify-tests.ts similarity index 100% rename from gulp-uglify/gulp-uglify-tests.ts rename to types/gulp-uglify/gulp-uglify-tests.ts diff --git a/gulp-uglify/index.d.ts b/types/gulp-uglify/index.d.ts similarity index 100% rename from gulp-uglify/index.d.ts rename to types/gulp-uglify/index.d.ts diff --git a/gulp-uglify/tsconfig.json b/types/gulp-uglify/tsconfig.json similarity index 100% rename from gulp-uglify/tsconfig.json rename to types/gulp-uglify/tsconfig.json diff --git a/gulp-useref/gulp-useref-tests.ts b/types/gulp-useref/gulp-useref-tests.ts similarity index 100% rename from gulp-useref/gulp-useref-tests.ts rename to types/gulp-useref/gulp-useref-tests.ts diff --git a/gulp-useref/index.d.ts b/types/gulp-useref/index.d.ts similarity index 100% rename from gulp-useref/index.d.ts rename to types/gulp-useref/index.d.ts diff --git a/gulp-useref/tsconfig.json b/types/gulp-useref/tsconfig.json similarity index 100% rename from gulp-useref/tsconfig.json rename to types/gulp-useref/tsconfig.json diff --git a/gulp-util/gulp-util-tests.ts b/types/gulp-util/gulp-util-tests.ts similarity index 100% rename from gulp-util/gulp-util-tests.ts rename to types/gulp-util/gulp-util-tests.ts diff --git a/gulp-util/index.d.ts b/types/gulp-util/index.d.ts similarity index 100% rename from gulp-util/index.d.ts rename to types/gulp-util/index.d.ts diff --git a/gulp-util/tsconfig.json b/types/gulp-util/tsconfig.json similarity index 100% rename from gulp-util/tsconfig.json rename to types/gulp-util/tsconfig.json diff --git a/gulp-watch/gulp-watch-tests.ts b/types/gulp-watch/gulp-watch-tests.ts similarity index 100% rename from gulp-watch/gulp-watch-tests.ts rename to types/gulp-watch/gulp-watch-tests.ts diff --git a/gulp-watch/index.d.ts b/types/gulp-watch/index.d.ts similarity index 100% rename from gulp-watch/index.d.ts rename to types/gulp-watch/index.d.ts diff --git a/gulp-watch/tsconfig.json b/types/gulp-watch/tsconfig.json similarity index 100% rename from gulp-watch/tsconfig.json rename to types/gulp-watch/tsconfig.json diff --git a/gulp/gulp-tests.ts b/types/gulp/gulp-tests.ts similarity index 100% rename from gulp/gulp-tests.ts rename to types/gulp/gulp-tests.ts diff --git a/gulp/index.d.ts b/types/gulp/index.d.ts similarity index 100% rename from gulp/index.d.ts rename to types/gulp/index.d.ts diff --git a/gulp/tsconfig.json b/types/gulp/tsconfig.json similarity index 100% rename from gulp/tsconfig.json rename to types/gulp/tsconfig.json diff --git a/halfred/halfred-tests.ts b/types/halfred/halfred-tests.ts similarity index 100% rename from halfred/halfred-tests.ts rename to types/halfred/halfred-tests.ts diff --git a/halfred/index.d.ts b/types/halfred/index.d.ts similarity index 100% rename from halfred/index.d.ts rename to types/halfred/index.d.ts diff --git a/halfred/tsconfig.json b/types/halfred/tsconfig.json similarity index 100% rename from halfred/tsconfig.json rename to types/halfred/tsconfig.json diff --git a/halogen/index.d.ts b/types/halogen/index.d.ts similarity index 100% rename from halogen/index.d.ts rename to types/halogen/index.d.ts diff --git a/halogen/test/clip-loader.tsx b/types/halogen/test/clip-loader.tsx similarity index 100% rename from halogen/test/clip-loader.tsx rename to types/halogen/test/clip-loader.tsx diff --git a/halogen/test/fade-loader.tsx b/types/halogen/test/fade-loader.tsx similarity index 100% rename from halogen/test/fade-loader.tsx rename to types/halogen/test/fade-loader.tsx diff --git a/halogen/test/pacman-loader.tsx b/types/halogen/test/pacman-loader.tsx similarity index 100% rename from halogen/test/pacman-loader.tsx rename to types/halogen/test/pacman-loader.tsx diff --git a/halogen/test/rotate-loader.tsx b/types/halogen/test/rotate-loader.tsx similarity index 100% rename from halogen/test/rotate-loader.tsx rename to types/halogen/test/rotate-loader.tsx diff --git a/halogen/tsconfig.json b/types/halogen/tsconfig.json similarity index 100% rename from halogen/tsconfig.json rename to types/halogen/tsconfig.json diff --git a/gulp-batch/tslint.json b/types/halogen/tslint.json similarity index 100% rename from gulp-batch/tslint.json rename to types/halogen/tslint.json diff --git a/hammerjs/hammerjs-tests.ts b/types/hammerjs/hammerjs-tests.ts similarity index 100% rename from hammerjs/hammerjs-tests.ts rename to types/hammerjs/hammerjs-tests.ts diff --git a/hammerjs/index.d.ts b/types/hammerjs/index.d.ts similarity index 100% rename from hammerjs/index.d.ts rename to types/hammerjs/index.d.ts diff --git a/hammerjs/tsconfig.json b/types/hammerjs/tsconfig.json similarity index 100% rename from hammerjs/tsconfig.json rename to types/hammerjs/tsconfig.json diff --git a/hammerjs/v1/hammerjs-tests.ts b/types/hammerjs/v1/hammerjs-tests.ts similarity index 100% rename from hammerjs/v1/hammerjs-tests.ts rename to types/hammerjs/v1/hammerjs-tests.ts diff --git a/hammerjs/v1/index.d.ts b/types/hammerjs/v1/index.d.ts similarity index 100% rename from hammerjs/v1/index.d.ts rename to types/hammerjs/v1/index.d.ts diff --git a/hammerjs/v1/tsconfig.json b/types/hammerjs/v1/tsconfig.json similarity index 100% rename from hammerjs/v1/tsconfig.json rename to types/hammerjs/v1/tsconfig.json diff --git a/handlebars/handlebars-tests.ts b/types/handlebars/handlebars-tests.ts similarity index 100% rename from handlebars/handlebars-tests.ts rename to types/handlebars/handlebars-tests.ts diff --git a/handlebars/index.d.ts b/types/handlebars/index.d.ts similarity index 100% rename from handlebars/index.d.ts rename to types/handlebars/index.d.ts diff --git a/handlebars/tsconfig.json b/types/handlebars/tsconfig.json similarity index 100% rename from handlebars/tsconfig.json rename to types/handlebars/tsconfig.json diff --git a/handlebars/v1/index.d.ts b/types/handlebars/v1/index.d.ts similarity index 100% rename from handlebars/v1/index.d.ts rename to types/handlebars/v1/index.d.ts diff --git a/handlebars/v1/tsconfig.json b/types/handlebars/v1/tsconfig.json similarity index 100% rename from handlebars/v1/tsconfig.json rename to types/handlebars/v1/tsconfig.json diff --git a/handsontable/handsontable-tests.ts b/types/handsontable/handsontable-tests.ts similarity index 98% rename from handsontable/handsontable-tests.ts rename to types/handsontable/handsontable-tests.ts index f744c10483..8ff99cc0b7 100644 --- a/handsontable/handsontable-tests.ts +++ b/types/handsontable/handsontable-tests.ts @@ -1,8 +1,6 @@ - - function test_HandsontableInit() { - var elem = document.createElement('div'); - var hot = new Handsontable(elem, { + const elem = document.createElement('div'); + const hot = new Handsontable(elem, { allowEmpty: true, allowInsertColumn: true, allowInsertRow: true, @@ -206,8 +204,8 @@ function test_HandsontableInit() { } function test_HandsontableMethods() { - var elem = document.createElement('div'); - var hot = new Handsontable(elem, {}); + const elem = document.createElement('div'); + const hot = new Handsontable(elem, {}); hot.addHook('foo', []); hot.addHookOnce('foo', []); hot.alter('foo', 123, 123, 'foo', true); @@ -298,4 +296,4 @@ class MyCustomHotPlugin extends Handsontable.plugins.BasePlugin { isEnabled(): boolean { return !!this.hot.getSettings().manualRowMove; } -} \ No newline at end of file +} diff --git a/handsontable/index.d.ts b/types/handsontable/index.d.ts similarity index 99% rename from handsontable/index.d.ts rename to types/handsontable/index.d.ts index e569ee58f7..ed2f0db27f 100644 --- a/handsontable/index.d.ts +++ b/types/handsontable/index.d.ts @@ -311,7 +311,6 @@ declare namespace ht { editor?: string | EditorConstructor; selectOptions?: any[]; width?: number; - } interface CellProperties { @@ -506,7 +505,7 @@ declare var Handsontable: { }; declare module "handsontable" { - export var Handsontable: { + const Handsontable: { new (element: Element, options: ht.Options): ht.Methods; plugins: ht.Plugins; hooks: ht.Hooks; diff --git a/handsontable/tsconfig.json b/types/handsontable/tsconfig.json similarity index 100% rename from handsontable/tsconfig.json rename to types/handsontable/tsconfig.json diff --git a/handsontable/tslint.json b/types/handsontable/tslint.json similarity index 100% rename from handsontable/tslint.json rename to types/handsontable/tslint.json diff --git a/hapi-auth-jwt2/hapi-auth-jwt2-tests.ts b/types/hapi-auth-jwt2/hapi-auth-jwt2-tests.ts similarity index 100% rename from hapi-auth-jwt2/hapi-auth-jwt2-tests.ts rename to types/hapi-auth-jwt2/hapi-auth-jwt2-tests.ts diff --git a/hapi-auth-jwt2/index.d.ts b/types/hapi-auth-jwt2/index.d.ts similarity index 100% rename from hapi-auth-jwt2/index.d.ts rename to types/hapi-auth-jwt2/index.d.ts diff --git a/hapi-auth-jwt2/tsconfig.json b/types/hapi-auth-jwt2/tsconfig.json similarity index 100% rename from hapi-auth-jwt2/tsconfig.json rename to types/hapi-auth-jwt2/tsconfig.json diff --git a/halogen/tslint.json b/types/hapi-auth-jwt2/tslint.json similarity index 100% rename from halogen/tslint.json rename to types/hapi-auth-jwt2/tslint.json diff --git a/hapi-decorators/hapi-decorators-tests.ts b/types/hapi-decorators/hapi-decorators-tests.ts similarity index 100% rename from hapi-decorators/hapi-decorators-tests.ts rename to types/hapi-decorators/hapi-decorators-tests.ts diff --git a/hapi-decorators/index.d.ts b/types/hapi-decorators/index.d.ts similarity index 100% rename from hapi-decorators/index.d.ts rename to types/hapi-decorators/index.d.ts diff --git a/hapi-decorators/tsconfig.json b/types/hapi-decorators/tsconfig.json similarity index 100% rename from hapi-decorators/tsconfig.json rename to types/hapi-decorators/tsconfig.json diff --git a/hapi/hapi-tests.ts b/types/hapi/hapi-tests.ts similarity index 100% rename from hapi/hapi-tests.ts rename to types/hapi/hapi-tests.ts diff --git a/hapi/index.d.ts b/types/hapi/index.d.ts similarity index 100% rename from hapi/index.d.ts rename to types/hapi/index.d.ts diff --git a/hapi/tsconfig.json b/types/hapi/tsconfig.json similarity index 100% rename from hapi/tsconfig.json rename to types/hapi/tsconfig.json diff --git a/hapi/v8/hapi-tests.ts b/types/hapi/v8/hapi-tests.ts similarity index 100% rename from hapi/v8/hapi-tests.ts rename to types/hapi/v8/hapi-tests.ts diff --git a/hapi/v8/index.d.ts b/types/hapi/v8/index.d.ts similarity index 100% rename from hapi/v8/index.d.ts rename to types/hapi/v8/index.d.ts diff --git a/hapi/v8/tsconfig.json b/types/hapi/v8/tsconfig.json similarity index 100% rename from hapi/v8/tsconfig.json rename to types/hapi/v8/tsconfig.json diff --git a/har-format/har-format-tests.ts b/types/har-format/har-format-tests.ts similarity index 100% rename from har-format/har-format-tests.ts rename to types/har-format/har-format-tests.ts diff --git a/har-format/index.d.ts b/types/har-format/index.d.ts similarity index 100% rename from har-format/index.d.ts rename to types/har-format/index.d.ts diff --git a/har-format/tsconfig.json b/types/har-format/tsconfig.json similarity index 100% rename from har-format/tsconfig.json rename to types/har-format/tsconfig.json diff --git a/hapi-auth-jwt2/tslint.json b/types/har-format/tslint.json similarity index 100% rename from hapi-auth-jwt2/tslint.json rename to types/har-format/tslint.json diff --git a/harmony-proxy/harmony-proxy-tests.ts b/types/harmony-proxy/harmony-proxy-tests.ts similarity index 100% rename from harmony-proxy/harmony-proxy-tests.ts rename to types/harmony-proxy/harmony-proxy-tests.ts diff --git a/harmony-proxy/index.d.ts b/types/harmony-proxy/index.d.ts similarity index 100% rename from harmony-proxy/index.d.ts rename to types/harmony-proxy/index.d.ts diff --git a/harmony-proxy/tsconfig.json b/types/harmony-proxy/tsconfig.json similarity index 100% rename from harmony-proxy/tsconfig.json rename to types/harmony-proxy/tsconfig.json diff --git a/hasher/hasher-tests.ts b/types/hasher/hasher-tests.ts similarity index 100% rename from hasher/hasher-tests.ts rename to types/hasher/hasher-tests.ts diff --git a/hasher/index.d.ts b/types/hasher/index.d.ts similarity index 100% rename from hasher/index.d.ts rename to types/hasher/index.d.ts diff --git a/hasher/tsconfig.json b/types/hasher/tsconfig.json similarity index 100% rename from hasher/tsconfig.json rename to types/hasher/tsconfig.json diff --git a/hashids/hashids-tests.ts b/types/hashids/hashids-tests.ts similarity index 100% rename from hashids/hashids-tests.ts rename to types/hashids/hashids-tests.ts diff --git a/hashids/index.d.ts b/types/hashids/index.d.ts similarity index 100% rename from hashids/index.d.ts rename to types/hashids/index.d.ts diff --git a/hashids/tsconfig.json b/types/hashids/tsconfig.json similarity index 100% rename from hashids/tsconfig.json rename to types/hashids/tsconfig.json diff --git a/hashmap/hashmap-tests.ts b/types/hashmap/hashmap-tests.ts similarity index 100% rename from hashmap/hashmap-tests.ts rename to types/hashmap/hashmap-tests.ts diff --git a/hashmap/index.d.ts b/types/hashmap/index.d.ts similarity index 100% rename from hashmap/index.d.ts rename to types/hashmap/index.d.ts diff --git a/hashmap/tsconfig.json b/types/hashmap/tsconfig.json similarity index 100% rename from hashmap/tsconfig.json rename to types/hashmap/tsconfig.json diff --git a/hashmap/v1/hashmap-tests.ts b/types/hashmap/v1/hashmap-tests.ts similarity index 100% rename from hashmap/v1/hashmap-tests.ts rename to types/hashmap/v1/hashmap-tests.ts diff --git a/hashmap/v1/index.d.ts b/types/hashmap/v1/index.d.ts similarity index 100% rename from hashmap/v1/index.d.ts rename to types/hashmap/v1/index.d.ts diff --git a/hashmap/v1/tsconfig.json b/types/hashmap/v1/tsconfig.json similarity index 100% rename from hashmap/v1/tsconfig.json rename to types/hashmap/v1/tsconfig.json diff --git a/hashset/hashset-tests.ts b/types/hashset/hashset-tests.ts similarity index 100% rename from hashset/hashset-tests.ts rename to types/hashset/hashset-tests.ts diff --git a/hashset/index.d.ts b/types/hashset/index.d.ts similarity index 100% rename from hashset/index.d.ts rename to types/hashset/index.d.ts diff --git a/hashset/tsconfig.json b/types/hashset/tsconfig.json similarity index 100% rename from hashset/tsconfig.json rename to types/hashset/tsconfig.json diff --git a/hashtable/hashtable-tests.ts b/types/hashtable/hashtable-tests.ts similarity index 100% rename from hashtable/hashtable-tests.ts rename to types/hashtable/hashtable-tests.ts diff --git a/hashtable/index.d.ts b/types/hashtable/index.d.ts similarity index 100% rename from hashtable/index.d.ts rename to types/hashtable/index.d.ts diff --git a/hashtable/tsconfig.json b/types/hashtable/tsconfig.json similarity index 100% rename from hashtable/tsconfig.json rename to types/hashtable/tsconfig.json diff --git a/he/he-tests.ts b/types/he/he-tests.ts similarity index 100% rename from he/he-tests.ts rename to types/he/he-tests.ts diff --git a/he/index.d.ts b/types/he/index.d.ts similarity index 100% rename from he/index.d.ts rename to types/he/index.d.ts diff --git a/he/tsconfig.json b/types/he/tsconfig.json similarity index 100% rename from he/tsconfig.json rename to types/he/tsconfig.json diff --git a/headroom/headroom-tests.ts b/types/headroom/headroom-tests.ts similarity index 100% rename from headroom/headroom-tests.ts rename to types/headroom/headroom-tests.ts diff --git a/headroom/index.d.ts b/types/headroom/index.d.ts similarity index 100% rename from headroom/index.d.ts rename to types/headroom/index.d.ts diff --git a/headroom/tsconfig.json b/types/headroom/tsconfig.json similarity index 100% rename from headroom/tsconfig.json rename to types/headroom/tsconfig.json diff --git a/heap/heap-tests.ts b/types/heap/heap-tests.ts similarity index 100% rename from heap/heap-tests.ts rename to types/heap/heap-tests.ts diff --git a/heap/index.d.ts b/types/heap/index.d.ts similarity index 100% rename from heap/index.d.ts rename to types/heap/index.d.ts diff --git a/heap/tsconfig.json b/types/heap/tsconfig.json similarity index 100% rename from heap/tsconfig.json rename to types/heap/tsconfig.json diff --git a/heatmap.js/heatmap.js-tests.ts b/types/heatmap.js/heatmap.js-tests.ts similarity index 100% rename from heatmap.js/heatmap.js-tests.ts rename to types/heatmap.js/heatmap.js-tests.ts diff --git a/heatmap.js/index.d.ts b/types/heatmap.js/index.d.ts similarity index 100% rename from heatmap.js/index.d.ts rename to types/heatmap.js/index.d.ts diff --git a/heatmap.js/package.json b/types/heatmap.js/package.json similarity index 100% rename from heatmap.js/package.json rename to types/heatmap.js/package.json diff --git a/heatmap.js/tsconfig.json b/types/heatmap.js/tsconfig.json similarity index 100% rename from heatmap.js/tsconfig.json rename to types/heatmap.js/tsconfig.json diff --git a/hellojs/hellojs-tests.ts b/types/hellojs/hellojs-tests.ts similarity index 100% rename from hellojs/hellojs-tests.ts rename to types/hellojs/hellojs-tests.ts diff --git a/hellojs/index.d.ts b/types/hellojs/index.d.ts similarity index 100% rename from hellojs/index.d.ts rename to types/hellojs/index.d.ts diff --git a/hellojs/tsconfig.json b/types/hellojs/tsconfig.json similarity index 100% rename from hellojs/tsconfig.json rename to types/hellojs/tsconfig.json diff --git a/hellosign-embedded/hellosign-embedded-tests.ts b/types/hellosign-embedded/hellosign-embedded-tests.ts similarity index 100% rename from hellosign-embedded/hellosign-embedded-tests.ts rename to types/hellosign-embedded/hellosign-embedded-tests.ts diff --git a/hellosign-embedded/index.d.ts b/types/hellosign-embedded/index.d.ts similarity index 100% rename from hellosign-embedded/index.d.ts rename to types/hellosign-embedded/index.d.ts diff --git a/hellosign-embedded/tsconfig.json b/types/hellosign-embedded/tsconfig.json similarity index 100% rename from hellosign-embedded/tsconfig.json rename to types/hellosign-embedded/tsconfig.json diff --git a/helmet/helmet-tests.ts b/types/helmet/helmet-tests.ts similarity index 100% rename from helmet/helmet-tests.ts rename to types/helmet/helmet-tests.ts diff --git a/helmet/index.d.ts b/types/helmet/index.d.ts similarity index 100% rename from helmet/index.d.ts rename to types/helmet/index.d.ts diff --git a/helmet/tsconfig.json b/types/helmet/tsconfig.json similarity index 100% rename from helmet/tsconfig.json rename to types/helmet/tsconfig.json diff --git a/heremaps/heremaps-tests.ts b/types/heremaps/heremaps-tests.ts similarity index 100% rename from heremaps/heremaps-tests.ts rename to types/heremaps/heremaps-tests.ts diff --git a/heremaps/index.d.ts b/types/heremaps/index.d.ts similarity index 100% rename from heremaps/index.d.ts rename to types/heremaps/index.d.ts diff --git a/heremaps/tsconfig.json b/types/heremaps/tsconfig.json similarity index 100% rename from heremaps/tsconfig.json rename to types/heremaps/tsconfig.json diff --git a/highcharts-ng/highcharts-ng-tests.ts b/types/highcharts-ng/highcharts-ng-tests.ts similarity index 100% rename from highcharts-ng/highcharts-ng-tests.ts rename to types/highcharts-ng/highcharts-ng-tests.ts diff --git a/highcharts-ng/index.d.ts b/types/highcharts-ng/index.d.ts similarity index 100% rename from highcharts-ng/index.d.ts rename to types/highcharts-ng/index.d.ts diff --git a/highcharts-ng/tsconfig.json b/types/highcharts-ng/tsconfig.json similarity index 100% rename from highcharts-ng/tsconfig.json rename to types/highcharts-ng/tsconfig.json diff --git a/highcharts/highcharts-more.d.ts b/types/highcharts/highcharts-more.d.ts similarity index 100% rename from highcharts/highcharts-more.d.ts rename to types/highcharts/highcharts-more.d.ts diff --git a/highcharts/highstock.d.ts b/types/highcharts/highstock.d.ts similarity index 94% rename from highcharts/highstock.d.ts rename to types/highcharts/highstock.d.ts index bd7f0bffd4..35c1179ff1 100644 --- a/highcharts/highstock.d.ts +++ b/types/highcharts/highstock.d.ts @@ -30,10 +30,10 @@ declare namespace Highstock { } interface RangeSelectorButton { - type: string; //Defines the timespan, can be one of 'millisecond', 'second', 'minute', 'day', 'week', 'month', 'ytd' (year to date), 'year' and 'all'. + type: string; // Defines the timespan, can be one of 'millisecond', 'second', 'minute', 'day', 'week', 'month', 'ytd' (year to date), 'year' and 'all'. count?: number; text: string; - dataGrouping?: any; //not sure how this works + dataGrouping?: any; // not sure how this works } interface RangeSelectorOptions { @@ -97,7 +97,6 @@ declare namespace Highstock { } } - declare global { interface JQuery { highcharts(type: "StockChart"): Highstock.ChartObject; @@ -117,7 +116,6 @@ declare global { **/ highcharts(type: "StockChart", options: Highstock.Options, callback: (chart: Highstock.ChartObject) => void): JQuery; - highcharts(type: string): Highcharts.ChartObject; highcharts(type: string, options: Highcharts.Options): JQuery; highcharts(type: string, options: Highcharts.Options, callback: (chart: Highcharts.ChartObject) => void): JQuery; @@ -126,4 +124,4 @@ declare global { declare var Highstock: Highstock.Static; export = Highstock; -export as namespace Highstock; \ No newline at end of file +export as namespace Highstock; diff --git a/highcharts/index.d.ts b/types/highcharts/index.d.ts similarity index 99% rename from highcharts/index.d.ts rename to types/highcharts/index.d.ts index 1885d5940f..9fe60ef542 100644 --- a/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -530,8 +530,8 @@ declare namespace Highcharts { */ gridLineColor?: string; /** - * The dash or dot style of the grid lines. For possible values, - * see {@http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/|this demonstration}. + * The dash or dot style of the grid lines. For possible values, + * see {@http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/|this demonstration}. * Defaults to Solid. * @since 1.2 */ @@ -629,7 +629,7 @@ declare namespace Highcharts { */ minorGridLineColor?: string; /** - * The dash or dot style of the minor grid lines. For possible values, + * The dash or dot style of the minor grid lines. For possible values, * see {@link http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/|this demonstration}. * @default 'Solid' */ @@ -3329,7 +3329,6 @@ declare namespace Highcharts { * The default action is to toggle the visibility of the point. This can be prevented by calling event.preventDefault(). */ legendItemClick?: (event: Event) => boolean | void; - } interface Halo { @@ -5318,7 +5317,7 @@ declare namespace Highcharts { interface CrosshairObject { color?: string | Gradient; width?: number; - dashStyle?: string; //Solid ShortDash ShortDot ShortDashDot ShortDashDotDot Dot Dash LongDash DashDot LongDashDot LongDashDotDot + dashStyle?: string; // Solid ShortDash ShortDot ShortDashDot ShortDashDotDot Dot Dash LongDash DashDot LongDashDot LongDashDotDot zIndex?: number; } @@ -5741,7 +5740,7 @@ declare namespace Highcharts { * @param {number} min The new minimum value * @param {number} max The new maximum value * @param {boolean} redraw Whether to redraw the chart or wait for an explicit call to chart.redraw(). - * @param {boolean | Animation} animation When true, the resize will be animated with default animation options. + * @param {boolean | Animation} animation When true, the resize will be animated with default animation options. * The animation can also be a configuration object with properties duration and easing. * @since 1.2.0 */ @@ -5792,7 +5791,7 @@ declare namespace Highcharts { * @param {AxisOptions} options The Axis options, as documented under xAxis and yAxis. * @param [boolean] isX Whether it is an X axis or Y axis * @param [boolean] redraw Defaults to true. Whether to redraw the chart after the series is added. See the redraw() method. - * @param [boolean | Animation] animation Defaults to true. When true, the series' updating will be animated with default animation options. + * @param [boolean | Animation] animation Defaults to true. When true, the series' updating will be animated with default animation options. * The animation can also be a configuration object with properties duration and easing. * @return {AxisObject} * @since 3.0 @@ -5841,9 +5840,9 @@ declare namespace Highcharts { /** * Exporting module required. Submit an SVG version of the chart to a server along with some parameters for * conversion. - * @param {ExportingOptions} options Exporting options. Out of the exporting options, the following options can be given as parameters to the exportChart method. - * All options default to the values given in the exporting config options. filename: the filename for the export without extension, - * url: the URL for the server module to do the conversion, width: the width of the PNG or JPEG image generated on the server, + * @param {ExportingOptions} options Exporting options. Out of the exporting options, the following options can be given as parameters to the exportChart method. + * All options default to the values given in the exporting config options. filename: the filename for the export without extension, + * url: the URL for the server module to do the conversion, width: the width of the PNG or JPEG image generated on the server, * type: the MIME type of the converted image, sourceWidth: the width of the source (in-page) chart, sourceHeight: the height of the source chart. * @since 2.0 */ @@ -5851,9 +5850,9 @@ declare namespace Highcharts { /** * Exporting module required. Submit an SVG version of the chart to a server along with some parameters for * conversion. - * @param {ExportingOptions} options Exporting options. Out of the exporting options, the following options can be given as parameters to the exportChart method. - * All options default to the values given in the exporting config options. filename: the filename for the export without extension, - * url: the URL for the server module to do the conversion, width: the width of the PNG or JPEG image generated on the server, + * @param {ExportingOptions} options Exporting options. Out of the exporting options, the following options can be given as parameters to the exportChart method. + * All options default to the values given in the exporting config options. filename: the filename for the export without extension, + * url: the URL for the server module to do the conversion, width: the width of the PNG or JPEG image generated on the server, * type: the MIME type of the converted image, sourceWidth: the width of the source (in-page) chart, sourceHeight: the height of the source chart. * @param {Options} chartOptions Additional chart options for the exported chart. For example a different background color can be added here. * @since 2.0 @@ -5892,7 +5891,7 @@ declare namespace Highcharts { get(id: string): AxisObject | SeriesObject | PointObject; /** * Exporting module required. Get an SVG string representing the chart. - * @param {Options} additionalOptions Chart options to add to the exported chart in addition to the options given for the original chart. + * @param {Options} additionalOptions Chart options to add to the exported chart in addition to the options given for the original chart. * For example if series.lineWidth should be greater in the exported chart than in the original, or the chart should have a different background color, this is added here. * @return {string} * @since 2.0 @@ -5934,7 +5933,7 @@ declare namespace Highcharts { * more than one operation on the chart before redrawing, for example add a number of points. In those cases it is a * waste of resources to redraw the chart for each new point added. So you add the points and call chart.redraw() * after. - * @param [boolean | Animation] animation Defaults to true. When true, the update will be animated with default animation options. + * @param [boolean | Animation] animation Defaults to true. When true, the update will be animated with default animation options. * The animation can also be a configuration object with properties duration and easing. * @since 1.2.0 */ @@ -6018,9 +6017,9 @@ declare namespace Highcharts { /** * This is the constructor for creating a new chart object. * @param {Options} options The chart options - * @param callback A function to execute when the chart object is finished loading and rendering. In most cases the chart is built in one thread, - * but in Internet Explorer version 8 or less the chart is sometimes initiated before the document is ready, - * and in these cases the chart object will not be finished directly after callingnew Highcharts.Chart(). + * @param callback A function to execute when the chart object is finished loading and rendering. In most cases the chart is built in one thread, + * but in Internet Explorer version 8 or less the chart is sometimes initiated before the document is ready, + * and in these cases the chart object will not be finished directly after callingnew Highcharts.Chart(). * s a consequence, code that relies on the newly built Chart object should always run in the callback. Defining a chart.event.load handler is equivalent. * @return {ChartObject} */ @@ -6036,9 +6035,9 @@ declare namespace Highcharts { * This is the constructor for creating a new chart object. * @param {string|HTMLElement} renderTo The id or a reference to a DOM element where the chart should be rendered (since v4.2.0). * @param {Options} options The chart options - * @param callback A function to execute when the chart object is finished loading and rendering. In most cases the chart is built in one thread, - * but in Internet Explorer version 8 or less the chart is sometimes initiated before the document is ready, - * and in these cases the chart object will not be finished directly after callingnew Highcharts.Chart(). + * @param callback A function to execute when the chart object is finished loading and rendering. In most cases the chart is built in one thread, + * but in Internet Explorer version 8 or less the chart is sometimes initiated before the document is ready, + * and in these cases the chart object will not be finished directly after callingnew Highcharts.Chart(). * As a consequence, code that relies on the newly built Chart object should always run in the callback. Defining a chart.event.load handler is equivalent. * @return {ChartObject} */ @@ -6062,7 +6061,7 @@ declare namespace Highcharts { * Apply numeric attributes to the SVG/VML element by animation. See Element.attr() for more information on setting * attributes. * @param {any} attributes A set of attributes to apply. - * @param {any} animation Optional animation parameters that are passed over to jQuery or other framework. + * @param {any} animation Optional animation parameters that are passed over to jQuery or other framework. * Valid properties depend on the library, but options like duration, easing and complete are supported by jQuery. * @return {ElementObject} * @since 2.0 @@ -6152,7 +6151,7 @@ declare namespace Highcharts { circle(centerX: number, centerY: number, radius: number): ElementObject; /** * Add an SVG/VML group. - * @param [string] name The name of the group. This will be used in the class name, which will be 'highcharts-'+ name. + * @param [string] name The name of the group. This will be used in the class name, which will be 'highcharts-'+ name. * Other Element objects are added to the group by using the group as the first parameter in .add() for the wrappers * @return {ElementObject} * @since 2.0 @@ -6181,7 +6180,7 @@ declare namespace Highcharts { * @param [number] anchorX If the shape has a pointer, like the chevron on a callout shape, anchorX is the x position to point to. * @param [number] anchorY If the shape has a pointer, like the chevron on a callout shape, anchorY is the y position to point to. * @param [boolean] useHTML Use HTML to render the text of the label. - * @param [boolean] baseline Whether the label should be vertically aligned by the text baseline, which makes it behave like the text element, + * @param [boolean] baseline Whether the label should be vertically aligned by the text baseline, which makes it behave like the text element, * or by the top left side, which makes it behave like a HTML div. * @param [string] className A class name for the g element surrounding the label. * @return {ElementObject} @@ -6309,9 +6308,9 @@ declare namespace Highcharts { percentage: number; /** * Remove the point from the series. - * @param [boolean] redraw Defaults to true. Whether to redraw the chart after the point is removed.If doing more operations on the chart, + * @param [boolean] redraw Defaults to true. Whether to redraw the chart after the point is removed.If doing more operations on the chart, * it is a good idea to set redraw to false and call chart.redraw() after. - * @param [boolean|Animation] animation Defaults to true. When true, the graph's updating will be animated with default animation options. + * @param [boolean|Animation] animation Defaults to true. When true, the graph's updating will be animated with default animation options. * The animation can also be a configuration object with properties duration and easing. * @since 1.2.0 */ @@ -6319,7 +6318,7 @@ declare namespace Highcharts { /** * Select or unselect the point. * @param [boolean] select When true, the point is selected. When false, the point is unselected. When null or undefined, the selection state is toggled. - * @param [boolean] accumulate When true, the selection is added to other selected points. When false, other selected points are deselected. + * @param [boolean] accumulate When true, the selection is added to other selected points. When false, other selected points are deselected. * Internally in Highcharts,selected points are accumulated on Control, Shift or Cmd clicking the point. * @since 1.2.0 */ @@ -6339,7 +6338,7 @@ declare namespace Highcharts { * is selected. * @param [boolean] sliced When true, the point is sliced out. When false, the point is set in. When null or undefined, the sliced state is toggled. * @param [boolean] redraw Defaults to true. Whether to redraw the chart after the point is altered. - * @param [boolean|Animation] animation Defaults to true. When true, the move will be animated with default animation options. + * @param [boolean|Animation] animation Defaults to true. When true, the move will be animated with default animation options. * The animation can also be a configuration object with properties duration and easing. * @since 1.2.0 */ @@ -6350,12 +6349,12 @@ declare namespace Highcharts { total: number; /** * Update the point with new values. - * @param {number|[number,number]|DataPoint} options The point options. Point options are handled as described under the series.data item for each series type. - * For example for a line series, if options is a single number, the point will be given that number as the main y value. If it is an array, + * @param {number|[number,number]|DataPoint} options The point options. Point options are handled as described under the series.data item for each series type. + * For example for a line series, if options is a single number, the point will be given that number as the main y value. If it is an array, * it will be interpreted as x and y values respectively. If it is an object, advanced options are applied. - * @param [boolean] redraw Defaults to true. Whether to redraw the chart after the point is updated.If doing more operations on the chart, + * @param [boolean] redraw Defaults to true. Whether to redraw the chart after the point is updated.If doing more operations on the chart, * it is a good idea to set redraw to false and call chart.redraw() after. - * @param {boolean|Animation} animation Defaults to true. When true, the update will be animated with default animation options. + * @param {boolean|Animation} animation Defaults to true. When true, the update will be animated with default animation options. * The animation can also be a configuration object with properties duration and easing. * @since 1.2.0 */ @@ -6392,11 +6391,11 @@ declare namespace Highcharts { * the start or in the middle of the series. * @param {number|[number,number]|DataPoint} The point options. If options is a single number, a point with that y value is appended to the series. * If it is an array, it will be interpreted as x and y values respectively. If it is an object, advanced options as outlined under series.data are applied. - * @param [boolean=true] redraw - Whether to redraw the chart after the point is added. When adding more than one point, + * @param [boolean=true] redraw - Whether to redraw the chart after the point is added. When adding more than one point, * it is highly recommended that the redraw option be set to false, and instead chart.redraw() is explicitly called after the adding of points is finished. - * @param [boolean=false] shift - When shift is true, one point is shifted off the start of the series as one is appended to the end. + * @param [boolean=false] shift - When shift is true, one point is shifted off the start of the series as one is appended to the end. * Use this option for live charts monitoring a value over time. - * @param [(boolean|Animation)=false] animation - When shift is true, one point is shifted off the start of the series as one is appended to the end. + * @param [(boolean|Animation)=false] animation - When shift is true, one point is shifted off the start of the series as one is appended to the end. * Use this option for live charts monitoring a value over time. * @since 1.2.0 */ @@ -6429,7 +6428,7 @@ declare namespace Highcharts { options: IndividualSeriesOptions; /** * Remove the series from the chart. - * @param [boolean=true] redraw - Whether to redraw the chart after the series is removed.If doing more operations on the chart, + * @param [boolean=true] redraw - Whether to redraw the chart after the series is removed.If doing more operations on the chart, * it is a good idea to set redraw to false and call chart.redraw() after. * @since 1.2.0 */ @@ -6440,7 +6439,7 @@ declare namespace Highcharts { * @param {number} index - The index of the point in the data array. * @param [boolean=true] redraw - Whether to redraw the chart after the point is added. When adding more than one point, * it is highly recommended that the redraw option be set to false, and instead chart.redraw() is explicitly called after the adding of points is finished. - * @param [boolean|Animation=true] animation - When true, the graph will be animated with default animation options. + * @param [boolean|Animation=true] animation - When true, the graph will be animated with default animation options. * The animation can also be a configuration object with properties duration and easing. * @since 4.1.0 */ @@ -6461,11 +6460,11 @@ declare namespace Highcharts { * Apply a new set of data to the series and optionally redraw it. Note that this method throws away all points and * creates new ones. For updating the values of existing points, use Point.update() instead. * @param {number[]|number[][]|DataPoint[]} data - Takes an array of data in the same format as described under seriesdata for the given series type. - * @param [boolean=true] redraw - Whether to redraw the chart after the series is altered.If doing more operations on the chart, + * @param [boolean=true] redraw - Whether to redraw the chart after the series is altered.If doing more operations on the chart, * it is a good idea to set redraw to false and call chart.redraw() after. - * @param [boolean|Animation] animation - When the updated data is the same length as the existing data, points will be updated by default, + * @param [boolean|Animation] animation - When the updated data is the same length as the existing data, points will be updated by default, * and animation visualizes how the points are changed. Set false to disable animation, or a configuration object to set duration or easing. - * @param [boolean] updatePoints - When the updated data is the same length as the existing data, points will be updated instead of replace. + * @param [boolean] updatePoints - When the updated data is the same length as the existing data, points will be updated instead of replace. * This option prevents this, and makes setData behave like it did prior to Highcharts 3.0.10. * @since 1.2.0 */ @@ -6473,7 +6472,7 @@ declare namespace Highcharts { /** * A utility function to show or hide the series with an optional redraw. * @param [boolean] visible - Whether to show or hide the series. If undefined, the visibility is toggled. - * @param [boolean=true] redraw - Whether to redraw the chart after the series is altered.If doing more operations on the chart, + * @param [boolean=true] redraw - Whether to redraw the chart after the series is altered.If doing more operations on the chart, * it is a good idea to set redraw to false and call chart.redraw() after. * @since 1.2.0 */ @@ -6493,7 +6492,7 @@ declare namespace Highcharts { * elements from the series is removed, and it is initiated from scratch. Therefore, this method is more performance * expensive than some other utility methods like setData or setVisible. * @param {IndividualSeriesOptions} options New options that will be merged into the series' existing options. - * @param [boolean] redraw - Whether to redraw the chart after the series is altered. If doing more operations on the chart, + * @param [boolean] redraw - Whether to redraw the chart after the series is altered. If doing more operations on the chart, * it is a good idea to set redraw to false and call chart.redraw() after. * @since 1.2.0 */ diff --git a/highcharts/modules/boost.d.ts b/types/highcharts/modules/boost.d.ts similarity index 100% rename from highcharts/modules/boost.d.ts rename to types/highcharts/modules/boost.d.ts diff --git a/highcharts/modules/exporting.d.ts b/types/highcharts/modules/exporting.d.ts similarity index 100% rename from highcharts/modules/exporting.d.ts rename to types/highcharts/modules/exporting.d.ts diff --git a/highcharts/modules/map/index.d.ts b/types/highcharts/modules/map/index.d.ts similarity index 78% rename from highcharts/modules/map/index.d.ts rename to types/highcharts/modules/map/index.d.ts index d5945ddbf7..04d5a77aea 100644 --- a/highcharts/modules/map/index.d.ts +++ b/types/highcharts/modules/map/index.d.ts @@ -7,11 +7,11 @@ import * as highcharts from 'highcharts'; import * as geojson from 'geojson'; declare module 'highcharts' { - export interface Static { + interface Static { mapChart(renderTo: string | HTMLElement, options: MapOptions, callback?: (chart: highcharts.ChartObject) => void): highcharts.ChartObject; } - export interface MapOptions { + interface MapOptions { chart?: highcharts.ChartOptions; legend?: highcharts.LegendOptions; @@ -43,24 +43,13 @@ declare module 'highcharts' { type?: string; } - export interface Navigation { + interface Navigation {} - } + interface MapSeriesOptionsDataLabels {} - export interface MapSeriesOptionsDataLabels { + interface MapSeriesOptionsStates {} - } + interface MapSeriesOptionsTooltip {} - export interface MapSeriesOptionsStates { - - } - - export interface MapSeriesOptionsTooltip { - - } - - export interface ColorAxis { - - } + interface ColorAxis {} } - diff --git a/highcharts/modules/no-data-to-display.d.ts b/types/highcharts/modules/no-data-to-display.d.ts similarity index 100% rename from highcharts/modules/no-data-to-display.d.ts rename to types/highcharts/modules/no-data-to-display.d.ts diff --git a/highcharts/modules/offline-exporting.d.ts b/types/highcharts/modules/offline-exporting.d.ts similarity index 100% rename from highcharts/modules/offline-exporting.d.ts rename to types/highcharts/modules/offline-exporting.d.ts diff --git a/highcharts/test/boost.ts b/types/highcharts/test/boost.ts similarity index 100% rename from highcharts/test/boost.ts rename to types/highcharts/test/boost.ts diff --git a/highcharts/test/exporting.ts b/types/highcharts/test/exporting.ts similarity index 100% rename from highcharts/test/exporting.ts rename to types/highcharts/test/exporting.ts diff --git a/highcharts/test/highstock.ts b/types/highcharts/test/highstock.ts similarity index 97% rename from highcharts/test/highstock.ts rename to types/highcharts/test/highstock.ts index f4ba041caa..7fde17d3ce 100644 --- a/highcharts/test/highstock.ts +++ b/types/highcharts/test/highstock.ts @@ -1,11 +1,10 @@ /// import * as Highcharts from "highcharts"; -var someData = [1, 2, 3, 4, 5, 6, 7, 8, 9]; +const someData = [1, 2, 3, 4, 5, 6, 7, 8, 9]; $(() => { $('#container').highcharts('StockChart', { - chart: { type: "arearange" }, diff --git a/highcharts/test/index.ts b/types/highcharts/test/index.ts similarity index 92% rename from highcharts/test/index.ts rename to types/highcharts/test/index.ts index 88fa3e8114..622ebfa8be 100644 --- a/highcharts/test/index.ts +++ b/types/highcharts/test/index.ts @@ -1,5 +1,5 @@ -/// -import * as Highcharts from "highcharts"; // May also use /// +/// +import * as Highcharts from "highcharts"; // May also use /// function originalTests() { Highcharts.setOptions({ @@ -15,14 +15,12 @@ function originalTests() { } }); - - var animate: Highcharts.Animation = { + const animate: Highcharts.Animation = { duration: 200, easing: "linear" }; - - var gradient: Highcharts.Gradient = { + const gradient: Highcharts.Gradient = { linearGradient: { x1: 0, y1: 0, @@ -33,11 +31,11 @@ function originalTests() { [0, 'rgb(255, 255, 255)'], [1, 'rgb(200, 200, 255)'] ] - } + }; - var color = "#fcfcff"; + const color = "#fcfcff"; - var chart1 = new Highcharts.Chart({ + const chart1 = new Highcharts.Chart({ chart: { renderTo: "container" }, @@ -56,7 +54,7 @@ function originalTests() { console.log(( chart1.series[0].options).dashStyle); - var chart2 = new Highcharts.Chart({ + const chart2 = new Highcharts.Chart({ chart: { renderTo: 'container', width: 400, @@ -109,11 +107,11 @@ function originalTests() { }] }); - var div: HTMLDivElement; - var r = new Highcharts.Renderer(div, 20, 30); - var box = r.text("Hello", 10, 10).getBBox(); + const div: HTMLDivElement = null as any; + const r = new Highcharts.Renderer(div, 20, 30); + const box = r.text("Hello", 10, 10).getBBox(); - var highChartSettings: Highcharts.Options = { + const highChartSettings: Highcharts.Options = { chart: { width: 400, height: 400 @@ -125,18 +123,18 @@ function originalTests() { }] }; - var container = $("#container").highcharts(highChartSettings, (chart) => { + const container = $("#container").highcharts(highChartSettings, (chart) => { chart.series[0].setVisible(true, true); }); - var singleYAxisOptions: Highcharts.Options = { + const singleYAxisOptions: Highcharts.Options = { yAxis: {} }; - var multipleYAxisOptions: Highcharts.Options = { + const multipleYAxisOptions: Highcharts.Options = { yAxis: [{}, {}] }; - var renderToIdChart = new Highcharts.Chart("container", { + const renderToIdChart = new Highcharts.Chart("container", { xAxis: {}, series: [ { data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], @@ -145,7 +143,7 @@ function originalTests() { }] }); - var renderToElementChart = new Highcharts.Chart(div, { + const renderToElementChart = new Highcharts.Chart(div, { xAxis: {}, series: [ { data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], @@ -154,7 +152,7 @@ function originalTests() { }] }); - var createWithFunction = Highcharts.chart({ + const createWithFunction = Highcharts.chart({ xAxis: {}, series: [ { data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], @@ -163,7 +161,7 @@ function originalTests() { }] }); - var createWithFunctionRenderToId = Highcharts.chart("container", { + const createWithFunctionRenderToId = Highcharts.chart("container", { xAxis: {}, series: [ { data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], @@ -172,7 +170,7 @@ function originalTests() { }] }); - var createWithFunctionRenderToElement = Highcharts.chart(div, { + const createWithFunctionRenderToElement = Highcharts.chart(div, { xAxis: {}, series: [ { data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], @@ -183,7 +181,7 @@ function originalTests() { } function test_alldefaults() { - var options: Highcharts.Options = { + const options: Highcharts.Options = { chart: {}, credits: {}, data: {}, @@ -207,13 +205,13 @@ function test_alldefaults() { } function test_ChartOptions() { - var emptyChartOptions: Highcharts.ChartOptions = { + const emptyChartOptions: Highcharts.ChartOptions = { events: {}, options3d: {}, resetZoomButton: {} }; - var allValuesSet: Highcharts.ChartOptions = { + const allValuesSet: Highcharts.ChartOptions = { alignTicks: false, animation: { duration: 500, @@ -320,7 +318,7 @@ function test_ChartOptions() { zoomType: "x" }; - //alignticks example + // alignticks example $('#container').highcharts({ chart: { alignTicks: true, @@ -350,7 +348,7 @@ function test_ChartOptions() { y: 70 }, tooltip: { - formatter: function () { + formatter() { return ' ' + this.series.name + '
' + this.x + ': ' + this.y; } }, @@ -378,9 +376,9 @@ function test_ChartOptions() { data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }] }); - var i = 1; + let i = 1; $('#update').click(() => { - var chart = $('#container').highcharts(); + const chart = $('#container').highcharts(); chart.series[0].data[0].update(i % 2 ? 200 : 0); i += 1; }); @@ -410,7 +408,7 @@ function test_ChartOptions() { y: 70 }, tooltip: { - formatter: function () { + formatter() { return ` ${this.series.name}
${this.x}: ${this.y}`; } }, @@ -448,8 +446,8 @@ function test_ChartOptions() { $('#container').highcharts({ chart: { events: { - addSeries: function () { - var label = ( this).renderer.label('A series was added, about to redraw chart', 100, 120) + addSeries() { + const label = ( this).renderer.label('A series was added, about to redraw chart', 100, 120) .attr({ fill: Highcharts.getOptions().colors[0], padding: 10, @@ -477,7 +475,7 @@ function test_ChartOptions() { // activate the button $('#button').click(() => { - var chart = $('#container').highcharts(); + const chart = $('#container').highcharts(); chart.addSeries({ data: [216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5] @@ -578,7 +576,7 @@ function test_ChartOptions() { } function test_CreditsOptions() { - var allDefaults: Highcharts.CreditsOptions = {}; + const allDefaults: Highcharts.CreditsOptions = {}; // custom url and text example $('#container').highcharts({ @@ -597,7 +595,7 @@ function test_CreditsOptions() { function test_Data() { // all defaults - var data: Highcharts.DataOptions = {}; + const data: Highcharts.DataOptions = {}; // data from table example $('#container').highcharts({ @@ -675,7 +673,7 @@ function test_Data() { } function test_Drilldown() { - var allDefaults: Highcharts.DrilldownOptions = {}; + const allDefaults: Highcharts.DrilldownOptions = {}; // multiseries drilldown example $('#container').highcharts({ @@ -858,7 +856,7 @@ function test_Drilldown() { } function test_Exporting() { - var allDefaults: Highcharts.ExportingOptions = {}; + const allDefaults: Highcharts.ExportingOptions = {}; // source size example $('#container').highcharts({ @@ -890,13 +888,13 @@ function test_Exporting() { } function test_Loading() { - var allDefaults: Highcharts.LoadingOptions = {}; + const allDefaults: Highcharts.LoadingOptions = {}; // examples // the button handler - var isLoading = false, - $button = $('#button'), - chart: Highcharts.ChartObject; + let isLoading = false; + const $button = $('#button'); + let chart: Highcharts.ChartObject; $button.click(() => { if (!isLoading) { @@ -932,7 +930,7 @@ function test_Loading() { } function test_Navigation() { - var allDefaults: Highcharts.NavigationOptions = {}; + const allDefaults: Highcharts.NavigationOptions = {}; // examples $('#container').highcharts({ @@ -974,7 +972,7 @@ function test_Navigation() { } function test_NoData() { - var allDefaults: Highcharts.NoDataOptions = {}; + const allDefaults: Highcharts.NoDataOptions = {}; // example $('#container').highcharts({ @@ -1000,7 +998,7 @@ function test_NoData() { } function test_AreaOptions() { - var allDefaults: Highcharts.AreaChartSeriesOptions = {}; + const allDefaults: Highcharts.AreaChartSeriesOptions = {}; // examples $('#container').highcharts({ @@ -1036,7 +1034,7 @@ function test_AreaOptions() { } function test_AreaRange() { - var allDefaults: Highcharts.AreaRangeChartSeriesOptions = {}; + const allDefaults: Highcharts.AreaRangeChartSeriesOptions = {}; // example $('#container').highcharts({ @@ -1046,8 +1044,7 @@ function test_AreaRange() { }, series: [ { data: (((arr: number[], len: number) => { - var i: number; - for (i = 0; i < len; i = i + 1) { + for (let i = 0; i < len; i = i + 1) { arr.push(i); } return arr; @@ -1092,20 +1089,19 @@ function test_AreaRange() { }, series: [ { name: 'Temperatures', - data: data, + data, dataLabels: { enabled: true, yHigh: 20, yLow: -20 } }] - }); }); } function test_Bar() { - var allDefaults: Highcharts.BarChartSeriesOptions = {}; + const allDefaults: Highcharts.BarChartSeriesOptions = {}; $('#container').highcharts({ chart: { @@ -1230,7 +1226,7 @@ function test_Bar() { } function test_BoxPlot() { - var allDefaults: Highcharts.BoxPlotChartSeriesOptions = {}; + const allDefaults: Highcharts.BoxPlotChartSeriesOptions = {}; // boxplot example $('#container').highcharts({ @@ -1282,7 +1278,7 @@ function test_BoxPlot() { } function test_Bubble() { - var allDefaults: Highcharts.BubbleChartSeriesOptions = {}; + const allDefaults: Highcharts.BubbleChartSeriesOptions = {}; // bubble example $('#container').highcharts({ @@ -1365,19 +1361,19 @@ function test_Bubble() { } function test_Column() { - var allDefaults: Highcharts.ColumnChartSeriesOptions = {}; + const allDefaults: Highcharts.ColumnChartSeriesOptions = {}; // same options as bar chart } function test_ColumnRange() { - var allDefaults: Highcharts.ColumnRangeChartSeriesOptions = {}; + const allDefaults: Highcharts.ColumnRangeChartSeriesOptions = {}; // same options as bar chart and datalabels from arearange } function test_ErrorBar() { - var allDefaults: Highcharts.ErrorBarChartSeriesOptions = {}; + const allDefaults: Highcharts.ErrorBarChartSeriesOptions = {}; // error bar styling example $('#container').highcharts({ @@ -1428,7 +1424,7 @@ function test_ErrorBar() { } function test_Funnel() { - var allDefaults: Highcharts.FunnelChartSeriesOptions = {}; + const allDefaults: Highcharts.FunnelChartSeriesOptions = {}; // funnel demo $('#container').highcharts({ @@ -1472,7 +1468,7 @@ function test_Funnel() { } function test_Gauge() { - var allDefaults: Highcharts.GaugeChartSeriesOptions = {}; + const allDefaults: Highcharts.GaugeChartSeriesOptions = {}; // example $('#container').highcharts({ @@ -1526,7 +1522,7 @@ function test_Gauge() { } function test_HeatMap() { - var allDefaults: Highcharts.HeatMapSeriesOptions = {}; + const allDefaults: Highcharts.HeatMapSeriesOptions = {}; // heatmap demo $('#container').highcharts({ @@ -1586,7 +1582,7 @@ function test_HeatMap() { } function test_Line() { - var allDefaults: Highcharts.LineChartSeriesOptions = {}; + const allDefaults: Highcharts.LineChartSeriesOptions = {}; // step example $('#container').highcharts({ @@ -1616,7 +1612,7 @@ function test_Line() { } function test_Pie() { - var allDefaults: Highcharts.PieChartSeriesOptions = {}; + const allDefaults: Highcharts.PieChartSeriesOptions = {}; // pie demo $('#container').highcharts({ @@ -1757,7 +1753,7 @@ function test_Pie() { } function test_Polygon() { - var allDefaults: Highcharts.PolygonChartSeriesOptions = {}; + const allDefaults: Highcharts.PolygonChartSeriesOptions = {}; $('#container').highcharts({ chart: { @@ -1786,7 +1782,7 @@ function test_Polygon() { } function test_Pyramid() { - var allDefaults: Highcharts.PyramidChartSeriesOptions = {}; + const allDefaults: Highcharts.PyramidChartSeriesOptions = {}; // pyramid demo $('#container').highcharts({ @@ -1825,10 +1821,10 @@ function test_Pyramid() { } function test_SolidGauge() { - var allDefaults: Highcharts.SolidGaugeChartSeriesOptions = {}; + const allDefaults: Highcharts.SolidGaugeChartSeriesOptions = {}; // partial solid gauge demo - var gaugeOptions: Highcharts.Options = { + const gaugeOptions: Highcharts.Options = { chart: { type: 'solidgauge' }, @@ -1880,10 +1876,10 @@ function test_SolidGauge() { } function test_TreeMap() { - var allDefaults: Highcharts.TreeMapChartSeriesOptions = {}; + const allDefaults: Highcharts.TreeMapChartSeriesOptions = {}; // allowDrillToNode - var treeMap: Highcharts.TreeMapChartSeriesOptions = { + const treeMap: Highcharts.TreeMapChartSeriesOptions = { type: "treemap", layoutAlgorithm: 'squarified', allowDrillToNode: true, @@ -1932,10 +1928,10 @@ function test_TreeMap() { } function test_Waterfall() { - var allDefaults: Highcharts.WaterFallChartSeriesOptions = {}; + const allDefaults: Highcharts.WaterFallChartSeriesOptions = {}; // partial waterfall demo - var series: Highcharts.WaterFallChartSeriesOptions = { + const series: Highcharts.WaterFallChartSeriesOptions = { upColor: Highcharts.getOptions().colors[2], color: Highcharts.getOptions().colors[3], data: [{ @@ -1964,7 +1960,7 @@ function test_Waterfall() { }], dataLabels: { enabled: true, - formatter: function () { + formatter() { return Highcharts.numberFormat(this.y / 1000, 0, ',') + 'k'; }, style: { @@ -1978,9 +1974,9 @@ function test_Waterfall() { } function test_AxisOptions() { - var allDefaults: Highcharts.AxisOptions = {}; + const allDefaults: Highcharts.AxisOptions = {}; - var axis: Highcharts.AxisOptions = { + const axis: Highcharts.AxisOptions = { allowDecimals: false, alternateGridColor: '#000000', breaks: [{ @@ -2014,7 +2010,7 @@ function test_AxisOptions() { distance: 10, enabled: true, format: "format", - formatter: function () { return this.value; }, + formatter() { return this.value; }, maxStaggerLines: 5, overflow: false, padding: 10, @@ -2133,7 +2129,7 @@ function test_AxisOptions() { } function test_AxisObject() { - var axis = $("#container").highcharts().xAxis[0]; + const axis = $("#container").highcharts().xAxis[0]; axis.addPlotBand({ from: 5.5, to: 7.5, @@ -2148,7 +2144,7 @@ function test_AxisObject() { id: 'plot-line-1' }); axis.removePlotLine('plot-line-1'); - var extremes = axis.getExtremes(); + const extremes = axis.getExtremes(); console.log('dataMax: ' + extremes.dataMax + '
' + 'dataMin: ' + extremes.dataMin + '
' + 'max: ' + extremes.max + '
' + @@ -2173,7 +2169,7 @@ function test_AxisObject() { } function test_ChartObject() { - var chart = $("#container").highcharts(); + const chart = $("#container").highcharts(); chart.addAxis( {}); chart.addAxis( {}, true); chart.addAxis( {}, true, false); @@ -2184,25 +2180,25 @@ function test_ChartObject() { chart.addSeries( {}, false, false); chart.addSeries( {}, false, { duration: 50 }); chart.addSeriesAsDrilldown( {}, {}); - var container = chart.container; + const container = chart.container; console.log(container.id); chart.destroy(); chart.drillUp(); chart.exportChart( {}, {}); chart.exportChartLocal( {}, {}); - var object = chart.get('axisIdOrSeriesIdOrPointId'); - var svg1 = chart.getSVG(); - var svg2 = chart.getSVG( {}); - var selectedPoints = chart.getSelectedPoints(); - var selectedSeries = chart.getSelectedSeries(); + const object = chart.get('axisIdOrSeriesIdOrPointId'); + const svg1 = chart.getSVG(); + const svg2 = chart.getSVG( {}); + const selectedPoints = chart.getSelectedPoints(); + const selectedSeries = chart.getSelectedSeries(); chart.hideLoading(); - var options = chart.options; + const options = chart.options; chart.print(); chart.redraw(); chart.redraw(false); chart.redraw({ duration: 50, easing: 'fadeIn' }); chart.reflow(); - var series = chart.series; + const series = chart.series; chart.setSize(200, 200); chart.setSize(200, 200, false); chart.setSize(200, 200, { duration: 50 }); @@ -2210,14 +2206,14 @@ function test_ChartObject() { chart.setTitle({}, {}, false); chart.showLoading(); chart.showLoading("Loading label"); - var firstXAxis = chart.xAxis[0]; - var firstYAxis = chart.yAxis[0]; - var legend = chart.legend; + const firstXAxis = chart.xAxis[0]; + const firstYAxis = chart.yAxis[0]; + const legend = chart.legend; } function test_ElementObject() { - var renderer = new Highcharts.Renderer($("#container")[0], 400, 400); - var group = renderer.g().add(); + const renderer = new Highcharts.Renderer($("#container")[0], 400, 400); + const group = renderer.g().add(); renderer .circle(200, 150, 100) .attr({ @@ -2226,7 +2222,7 @@ function test_ElementObject() { 'stroke-width': 1 }) .add(group); - var rect = renderer + const rect = renderer .rect(90, 150, 100, 100, 5) .attr({ fill: '#C5FFC5', @@ -2242,7 +2238,7 @@ function test_ElementObject() { 'stroke-width': 10 }); rect.destroy(); - var styledText = renderer + const styledText = renderer .text('Series 1', 140, 140) .attr({ rotation: -25 @@ -2252,15 +2248,15 @@ function test_ElementObject() { fontSize: '16px' }) .add(); - var bbox = styledText.getBBox(); + const bbox = styledText.getBBox(); styledText.on('click', () => { }); group.toFront(); } function test_PointObject() { - var point = $('#container').highcharts().get('point1'); - var category = point.category; - var percentage = point.percentage; + const point = $('#container').highcharts().get('point1'); + const category = point.category; + const percentage = point.percentage; point.index; point.remove(); point.remove(false); @@ -2268,26 +2264,26 @@ function test_PointObject() { point.select(); point.select(false); point.select(false, true); - var isSelected = point.selected; - var series = point.series; + const isSelected = point.selected; + const series = point.series; point.slice(); point.slice(false); point.slice(false, false); point.slice(false, false, false); point.slice(false, false, { duration: 50 }); - var total = point.total; + const total = point.total; point.update(0); point.update([0, 0]); point.update({}); point.update({}, false); point.update({}, false, false); point.update({}, false, { duration: 50 }); - var x = point.x; - var y = point.y; + const x = point.x; + const y = point.y; } function test_RendererObject() { - var renderer = $('#container').highcharts().renderer; + const renderer = $('#container').highcharts().renderer; renderer.arc(0, 0, 20, 10, 0, Math.PI); renderer.circle(0, 0, 100); renderer.g('groupName'); @@ -2299,7 +2295,7 @@ function test_RendererObject() { } function test_SeriesObject() { - var series = $('#container').highcharts().get('series1'); + const series = $('#container').highcharts().get('series1'); series.addPoint(0); series.addPoint([0, 0]); series.addPoint({}); @@ -2307,11 +2303,11 @@ function test_SeriesObject() { series.addPoint({}, false, true); series.addPoint({}, false, true, false); series.addPoint({}, false, true, { duration: 50 }); - var chart = series.chart; - var data = series.data; + const chart = series.chart; + const data = series.data; series.hide(); - var name = series.name; - var options = series.options; + const name = series.name; + const options = series.options; series.remove(); series.remove(false); series.removePoint(0); @@ -2320,7 +2316,7 @@ function test_SeriesObject() { series.removePoint(0, false, { duration: 50 }); series.select(); series.select(true); - var isSelected = series.selected; + const isSelected = series.selected; series.setData([0, 1, 2]); series.setData([[0, 0], [1, 1], [2, 2]]); series.setData([{}, {}, {}]); @@ -2332,15 +2328,15 @@ function test_SeriesObject() { series.setVisible(true); series.setVisible(true, false); series.show(); - var type = series.type; + const type = series.type; series.update({}); series.update({}, false); - var visible = series.visible; - var xAxis = series.xAxis; - var yAxis = series.yAxis; + const visible = series.visible; + const xAxis = series.xAxis; + const yAxis = series.yAxis; } function test_LegendObject() { - var legend = $('#container').highcharts().legend; + const legend = $('#container').highcharts().legend; legend.update({}); legend.update({}, false); } diff --git a/highcharts/test/more.ts b/types/highcharts/test/more.ts similarity index 100% rename from highcharts/test/more.ts rename to types/highcharts/test/more.ts diff --git a/types/highcharts/test/no-data-to-display.ts b/types/highcharts/test/no-data-to-display.ts new file mode 100644 index 0000000000..348d2a2ad7 --- /dev/null +++ b/types/highcharts/test/no-data-to-display.ts @@ -0,0 +1,8 @@ +function test_NoDataToDisplay() { + const chart = $("#container").highcharts(); + const chartHasData = chart.hasData(); + chart.hideNoData(); + chart.showNoData("Custom no data message"); +} + +HighchartsNoDataToDisplay(Highcharts); diff --git a/highcharts/test/offline-exporting.ts b/types/highcharts/test/offline-exporting.ts similarity index 100% rename from highcharts/test/offline-exporting.ts rename to types/highcharts/test/offline-exporting.ts diff --git a/highcharts/tsconfig.json b/types/highcharts/tsconfig.json similarity index 100% rename from highcharts/tsconfig.json rename to types/highcharts/tsconfig.json diff --git a/highcharts/tslint.json b/types/highcharts/tslint.json similarity index 100% rename from highcharts/tslint.json rename to types/highcharts/tslint.json diff --git a/highland/highland-tests.ts b/types/highland/highland-tests.ts similarity index 100% rename from highland/highland-tests.ts rename to types/highland/highland-tests.ts diff --git a/highland/index.d.ts b/types/highland/index.d.ts similarity index 100% rename from highland/index.d.ts rename to types/highland/index.d.ts diff --git a/highland/tsconfig.json b/types/highland/tsconfig.json similarity index 100% rename from highland/tsconfig.json rename to types/highland/tsconfig.json diff --git a/highlight.js/highlight.js-tests.ts b/types/highlight.js/highlight.js-tests.ts similarity index 100% rename from highlight.js/highlight.js-tests.ts rename to types/highlight.js/highlight.js-tests.ts diff --git a/highlight.js/index.d.ts b/types/highlight.js/index.d.ts similarity index 100% rename from highlight.js/index.d.ts rename to types/highlight.js/index.d.ts diff --git a/highlight.js/tsconfig.json b/types/highlight.js/tsconfig.json similarity index 100% rename from highlight.js/tsconfig.json rename to types/highlight.js/tsconfig.json diff --git a/highlight.js/v7/index.d.ts b/types/highlight.js/v7/index.d.ts similarity index 100% rename from highlight.js/v7/index.d.ts rename to types/highlight.js/v7/index.d.ts diff --git a/highlight.js/v7/tsconfig.json b/types/highlight.js/v7/tsconfig.json similarity index 100% rename from highlight.js/v7/tsconfig.json rename to types/highlight.js/v7/tsconfig.json diff --git a/hiredis/hiredis-tests.ts b/types/hiredis/hiredis-tests.ts similarity index 100% rename from hiredis/hiredis-tests.ts rename to types/hiredis/hiredis-tests.ts diff --git a/hiredis/index.d.ts b/types/hiredis/index.d.ts similarity index 100% rename from hiredis/index.d.ts rename to types/hiredis/index.d.ts diff --git a/hiredis/tsconfig.json b/types/hiredis/tsconfig.json similarity index 100% rename from hiredis/tsconfig.json rename to types/hiredis/tsconfig.json diff --git a/har-format/tslint.json b/types/hiredis/tslint.json similarity index 100% rename from har-format/tslint.json rename to types/hiredis/tslint.json diff --git a/history.js/history.js-tests.ts b/types/history.js/history.js-tests.ts similarity index 100% rename from history.js/history.js-tests.ts rename to types/history.js/history.js-tests.ts diff --git a/history.js/index.d.ts b/types/history.js/index.d.ts similarity index 100% rename from history.js/index.d.ts rename to types/history.js/index.d.ts diff --git a/history.js/tsconfig.json b/types/history.js/tsconfig.json similarity index 100% rename from history.js/tsconfig.json rename to types/history.js/tsconfig.json diff --git a/history/DOMUtils.d.ts b/types/history/DOMUtils.d.ts similarity index 100% rename from history/DOMUtils.d.ts rename to types/history/DOMUtils.d.ts diff --git a/history/ExecutionEnvironment.d.ts b/types/history/ExecutionEnvironment.d.ts similarity index 100% rename from history/ExecutionEnvironment.d.ts rename to types/history/ExecutionEnvironment.d.ts diff --git a/history/LocationUtils.d.ts b/types/history/LocationUtils.d.ts similarity index 100% rename from history/LocationUtils.d.ts rename to types/history/LocationUtils.d.ts diff --git a/history/PathUtils.d.ts b/types/history/PathUtils.d.ts similarity index 100% rename from history/PathUtils.d.ts rename to types/history/PathUtils.d.ts diff --git a/history/createBrowserHistory.d.ts b/types/history/createBrowserHistory.d.ts similarity index 100% rename from history/createBrowserHistory.d.ts rename to types/history/createBrowserHistory.d.ts diff --git a/history/createHashHistory.d.ts b/types/history/createHashHistory.d.ts similarity index 100% rename from history/createHashHistory.d.ts rename to types/history/createHashHistory.d.ts diff --git a/history/createMemoryHistory.d.ts b/types/history/createMemoryHistory.d.ts similarity index 100% rename from history/createMemoryHistory.d.ts rename to types/history/createMemoryHistory.d.ts diff --git a/history/createTransitionManager.d.ts b/types/history/createTransitionManager.d.ts similarity index 100% rename from history/createTransitionManager.d.ts rename to types/history/createTransitionManager.d.ts diff --git a/history/history-tests.ts b/types/history/history-tests.ts similarity index 100% rename from history/history-tests.ts rename to types/history/history-tests.ts diff --git a/history/index.d.ts b/types/history/index.d.ts similarity index 100% rename from history/index.d.ts rename to types/history/index.d.ts diff --git a/history/tsconfig.json b/types/history/tsconfig.json similarity index 100% rename from history/tsconfig.json rename to types/history/tsconfig.json diff --git a/history/v2/history-tests.ts b/types/history/v2/history-tests.ts similarity index 100% rename from history/v2/history-tests.ts rename to types/history/v2/history-tests.ts diff --git a/history/v2/index.d.ts b/types/history/v2/index.d.ts similarity index 100% rename from history/v2/index.d.ts rename to types/history/v2/index.d.ts diff --git a/history/v2/lib/DOMUtils.d.ts b/types/history/v2/lib/DOMUtils.d.ts similarity index 100% rename from history/v2/lib/DOMUtils.d.ts rename to types/history/v2/lib/DOMUtils.d.ts diff --git a/history/v2/lib/actions.d.ts b/types/history/v2/lib/actions.d.ts similarity index 100% rename from history/v2/lib/actions.d.ts rename to types/history/v2/lib/actions.d.ts diff --git a/history/v2/lib/createBrowserHistory.d.ts b/types/history/v2/lib/createBrowserHistory.d.ts similarity index 100% rename from history/v2/lib/createBrowserHistory.d.ts rename to types/history/v2/lib/createBrowserHistory.d.ts diff --git a/history/v2/lib/createHashHistory.d.ts b/types/history/v2/lib/createHashHistory.d.ts similarity index 100% rename from history/v2/lib/createHashHistory.d.ts rename to types/history/v2/lib/createHashHistory.d.ts diff --git a/history/v2/lib/createLocation.d.ts b/types/history/v2/lib/createLocation.d.ts similarity index 100% rename from history/v2/lib/createLocation.d.ts rename to types/history/v2/lib/createLocation.d.ts diff --git a/history/v2/lib/createMemoryHistory.d.ts b/types/history/v2/lib/createMemoryHistory.d.ts similarity index 100% rename from history/v2/lib/createMemoryHistory.d.ts rename to types/history/v2/lib/createMemoryHistory.d.ts diff --git a/history/v2/lib/useBasename.d.ts b/types/history/v2/lib/useBasename.d.ts similarity index 100% rename from history/v2/lib/useBasename.d.ts rename to types/history/v2/lib/useBasename.d.ts diff --git a/history/v2/lib/useBeforeUnload.d.ts b/types/history/v2/lib/useBeforeUnload.d.ts similarity index 100% rename from history/v2/lib/useBeforeUnload.d.ts rename to types/history/v2/lib/useBeforeUnload.d.ts diff --git a/history/v2/lib/useQueries.d.ts b/types/history/v2/lib/useQueries.d.ts similarity index 100% rename from history/v2/lib/useQueries.d.ts rename to types/history/v2/lib/useQueries.d.ts diff --git a/history/v2/tsconfig.json b/types/history/v2/tsconfig.json similarity index 100% rename from history/v2/tsconfig.json rename to types/history/v2/tsconfig.json diff --git a/history/v3/index.d.ts b/types/history/v3/index.d.ts similarity index 100% rename from history/v3/index.d.ts rename to types/history/v3/index.d.ts diff --git a/history/v3/lib/LocationUtils.d.ts b/types/history/v3/lib/LocationUtils.d.ts similarity index 100% rename from history/v3/lib/LocationUtils.d.ts rename to types/history/v3/lib/LocationUtils.d.ts diff --git a/history/v3/lib/actions.d.ts b/types/history/v3/lib/actions.d.ts similarity index 100% rename from history/v3/lib/actions.d.ts rename to types/history/v3/lib/actions.d.ts diff --git a/history/v3/lib/createBrowserHistory.d.ts b/types/history/v3/lib/createBrowserHistory.d.ts similarity index 100% rename from history/v3/lib/createBrowserHistory.d.ts rename to types/history/v3/lib/createBrowserHistory.d.ts diff --git a/history/v3/lib/createHashHistory.d.ts b/types/history/v3/lib/createHashHistory.d.ts similarity index 100% rename from history/v3/lib/createHashHistory.d.ts rename to types/history/v3/lib/createHashHistory.d.ts diff --git a/history/v3/lib/createLocation.d.ts b/types/history/v3/lib/createLocation.d.ts similarity index 100% rename from history/v3/lib/createLocation.d.ts rename to types/history/v3/lib/createLocation.d.ts diff --git a/history/v3/lib/createMemoryHistory.d.ts b/types/history/v3/lib/createMemoryHistory.d.ts similarity index 100% rename from history/v3/lib/createMemoryHistory.d.ts rename to types/history/v3/lib/createMemoryHistory.d.ts diff --git a/history/v3/lib/useBasename.d.ts b/types/history/v3/lib/useBasename.d.ts similarity index 100% rename from history/v3/lib/useBasename.d.ts rename to types/history/v3/lib/useBasename.d.ts diff --git a/history/v3/lib/useBeforeUnload.d.ts b/types/history/v3/lib/useBeforeUnload.d.ts similarity index 100% rename from history/v3/lib/useBeforeUnload.d.ts rename to types/history/v3/lib/useBeforeUnload.d.ts diff --git a/history/v3/lib/useQueries.d.ts b/types/history/v3/lib/useQueries.d.ts similarity index 100% rename from history/v3/lib/useQueries.d.ts rename to types/history/v3/lib/useQueries.d.ts diff --git a/history/v3/tsconfig.json b/types/history/v3/tsconfig.json similarity index 100% rename from history/v3/tsconfig.json rename to types/history/v3/tsconfig.json diff --git a/hoek/hoek-tests.ts b/types/hoek/hoek-tests.ts similarity index 100% rename from hoek/hoek-tests.ts rename to types/hoek/hoek-tests.ts diff --git a/hoek/index.d.ts b/types/hoek/index.d.ts similarity index 100% rename from hoek/index.d.ts rename to types/hoek/index.d.ts diff --git a/hoek/tsconfig.json b/types/hoek/tsconfig.json similarity index 100% rename from hoek/tsconfig.json rename to types/hoek/tsconfig.json diff --git a/hiredis/tslint.json b/types/hoek/tslint.json similarity index 100% rename from hiredis/tslint.json rename to types/hoek/tslint.json diff --git a/hooker/hooker-tests.ts b/types/hooker/hooker-tests.ts similarity index 100% rename from hooker/hooker-tests.ts rename to types/hooker/hooker-tests.ts diff --git a/hooker/index.d.ts b/types/hooker/index.d.ts similarity index 100% rename from hooker/index.d.ts rename to types/hooker/index.d.ts diff --git a/hooker/tsconfig.json b/types/hooker/tsconfig.json similarity index 100% rename from hooker/tsconfig.json rename to types/hooker/tsconfig.json diff --git a/hopscotch/hopscotch-tests.ts b/types/hopscotch/hopscotch-tests.ts similarity index 100% rename from hopscotch/hopscotch-tests.ts rename to types/hopscotch/hopscotch-tests.ts diff --git a/hopscotch/index.d.ts b/types/hopscotch/index.d.ts similarity index 100% rename from hopscotch/index.d.ts rename to types/hopscotch/index.d.ts diff --git a/hopscotch/tsconfig.json b/types/hopscotch/tsconfig.json similarity index 100% rename from hopscotch/tsconfig.json rename to types/hopscotch/tsconfig.json diff --git a/howler/howler-tests.ts b/types/howler/howler-tests.ts similarity index 100% rename from howler/howler-tests.ts rename to types/howler/howler-tests.ts diff --git a/howler/index.d.ts b/types/howler/index.d.ts similarity index 100% rename from howler/index.d.ts rename to types/howler/index.d.ts diff --git a/howler/tsconfig.json b/types/howler/tsconfig.json similarity index 100% rename from howler/tsconfig.json rename to types/howler/tsconfig.json diff --git a/html-entities/html-entities-tests.ts b/types/html-entities/html-entities-tests.ts similarity index 100% rename from html-entities/html-entities-tests.ts rename to types/html-entities/html-entities-tests.ts diff --git a/html-entities/index.d.ts b/types/html-entities/index.d.ts similarity index 100% rename from html-entities/index.d.ts rename to types/html-entities/index.d.ts diff --git a/html-entities/tsconfig.json b/types/html-entities/tsconfig.json similarity index 100% rename from html-entities/tsconfig.json rename to types/html-entities/tsconfig.json diff --git a/html-minifier/html-minifier-tests.ts b/types/html-minifier/html-minifier-tests.ts similarity index 100% rename from html-minifier/html-minifier-tests.ts rename to types/html-minifier/html-minifier-tests.ts diff --git a/html-minifier/index.d.ts b/types/html-minifier/index.d.ts similarity index 100% rename from html-minifier/index.d.ts rename to types/html-minifier/index.d.ts diff --git a/html-minifier/tsconfig.json b/types/html-minifier/tsconfig.json similarity index 100% rename from html-minifier/tsconfig.json rename to types/html-minifier/tsconfig.json diff --git a/html-pdf/html-pdf-tests.ts b/types/html-pdf/html-pdf-tests.ts similarity index 100% rename from html-pdf/html-pdf-tests.ts rename to types/html-pdf/html-pdf-tests.ts diff --git a/html-pdf/index.d.ts b/types/html-pdf/index.d.ts similarity index 100% rename from html-pdf/index.d.ts rename to types/html-pdf/index.d.ts diff --git a/html-pdf/tsconfig.json b/types/html-pdf/tsconfig.json similarity index 100% rename from html-pdf/tsconfig.json rename to types/html-pdf/tsconfig.json diff --git a/html-to-text/html-to-text-tests.ts b/types/html-to-text/html-to-text-tests.ts similarity index 100% rename from html-to-text/html-to-text-tests.ts rename to types/html-to-text/html-to-text-tests.ts diff --git a/html-to-text/index.d.ts b/types/html-to-text/index.d.ts similarity index 100% rename from html-to-text/index.d.ts rename to types/html-to-text/index.d.ts diff --git a/html-to-text/tsconfig.json b/types/html-to-text/tsconfig.json similarity index 100% rename from html-to-text/tsconfig.json rename to types/html-to-text/tsconfig.json diff --git a/html-webpack-plugin/html-webpack-plugin-tests.ts b/types/html-webpack-plugin/html-webpack-plugin-tests.ts similarity index 100% rename from html-webpack-plugin/html-webpack-plugin-tests.ts rename to types/html-webpack-plugin/html-webpack-plugin-tests.ts diff --git a/html-webpack-plugin/index.d.ts b/types/html-webpack-plugin/index.d.ts similarity index 100% rename from html-webpack-plugin/index.d.ts rename to types/html-webpack-plugin/index.d.ts diff --git a/html-webpack-plugin/tsconfig.json b/types/html-webpack-plugin/tsconfig.json similarity index 100% rename from html-webpack-plugin/tsconfig.json rename to types/html-webpack-plugin/tsconfig.json diff --git a/hoek/tslint.json b/types/html-webpack-plugin/tslint.json similarity index 100% rename from hoek/tslint.json rename to types/html-webpack-plugin/tslint.json diff --git a/html-webpack-template/html-webpack-template-tests.ts b/types/html-webpack-template/html-webpack-template-tests.ts similarity index 100% rename from html-webpack-template/html-webpack-template-tests.ts rename to types/html-webpack-template/html-webpack-template-tests.ts diff --git a/html-webpack-template/index.d.ts b/types/html-webpack-template/index.d.ts similarity index 100% rename from html-webpack-template/index.d.ts rename to types/html-webpack-template/index.d.ts diff --git a/html-webpack-template/tsconfig.json b/types/html-webpack-template/tsconfig.json similarity index 100% rename from html-webpack-template/tsconfig.json rename to types/html-webpack-template/tsconfig.json diff --git a/html-webpack-plugin/tslint.json b/types/html-webpack-template/tslint.json similarity index 100% rename from html-webpack-plugin/tslint.json rename to types/html-webpack-template/tslint.json diff --git a/html2canvas/html2canvas-tests.ts b/types/html2canvas/html2canvas-tests.ts similarity index 100% rename from html2canvas/html2canvas-tests.ts rename to types/html2canvas/html2canvas-tests.ts diff --git a/html2canvas/index.d.ts b/types/html2canvas/index.d.ts similarity index 100% rename from html2canvas/index.d.ts rename to types/html2canvas/index.d.ts diff --git a/html2canvas/tsconfig.json b/types/html2canvas/tsconfig.json similarity index 100% rename from html2canvas/tsconfig.json rename to types/html2canvas/tsconfig.json diff --git a/htmlescape/htmlescape-tests.ts b/types/htmlescape/htmlescape-tests.ts similarity index 100% rename from htmlescape/htmlescape-tests.ts rename to types/htmlescape/htmlescape-tests.ts diff --git a/htmlescape/index.d.ts b/types/htmlescape/index.d.ts similarity index 87% rename from htmlescape/index.d.ts rename to types/htmlescape/index.d.ts index 51d8eae58d..23b9425e16 100644 --- a/htmlescape/index.d.ts +++ b/types/htmlescape/index.d.ts @@ -5,7 +5,7 @@ declare function htmlescape(o: any): string; declare namespace htmlescape { - export function sanitize(s: string): string; + function sanitize(s: string): string; } export = htmlescape; diff --git a/htmlescape/tsconfig.json b/types/htmlescape/tsconfig.json similarity index 100% rename from htmlescape/tsconfig.json rename to types/htmlescape/tsconfig.json diff --git a/html-webpack-template/tslint.json b/types/htmlescape/tslint.json similarity index 100% rename from html-webpack-template/tslint.json rename to types/htmlescape/tslint.json diff --git a/htmlhint/htmlhint-tests.ts b/types/htmlhint/htmlhint-tests.ts similarity index 100% rename from htmlhint/htmlhint-tests.ts rename to types/htmlhint/htmlhint-tests.ts diff --git a/htmlhint/index.d.ts b/types/htmlhint/index.d.ts similarity index 100% rename from htmlhint/index.d.ts rename to types/htmlhint/index.d.ts diff --git a/htmlhint/tsconfig.json b/types/htmlhint/tsconfig.json similarity index 100% rename from htmlhint/tsconfig.json rename to types/htmlhint/tsconfig.json diff --git a/htmlparser2/htmlparser2-tests.ts b/types/htmlparser2/htmlparser2-tests.ts similarity index 100% rename from htmlparser2/htmlparser2-tests.ts rename to types/htmlparser2/htmlparser2-tests.ts diff --git a/htmlparser2/index.d.ts b/types/htmlparser2/index.d.ts similarity index 100% rename from htmlparser2/index.d.ts rename to types/htmlparser2/index.d.ts diff --git a/htmlparser2/tsconfig.json b/types/htmlparser2/tsconfig.json similarity index 100% rename from htmlparser2/tsconfig.json rename to types/htmlparser2/tsconfig.json diff --git a/htmltojsx/htmltojsx-tests.ts b/types/htmltojsx/htmltojsx-tests.ts similarity index 100% rename from htmltojsx/htmltojsx-tests.ts rename to types/htmltojsx/htmltojsx-tests.ts diff --git a/htmltojsx/index.d.ts b/types/htmltojsx/index.d.ts similarity index 100% rename from htmltojsx/index.d.ts rename to types/htmltojsx/index.d.ts diff --git a/htmltojsx/tsconfig.json b/types/htmltojsx/tsconfig.json similarity index 100% rename from htmltojsx/tsconfig.json rename to types/htmltojsx/tsconfig.json diff --git a/http-assert/http-assert-tests.ts b/types/http-assert/http-assert-tests.ts similarity index 100% rename from http-assert/http-assert-tests.ts rename to types/http-assert/http-assert-tests.ts diff --git a/http-assert/index.d.ts b/types/http-assert/index.d.ts similarity index 100% rename from http-assert/index.d.ts rename to types/http-assert/index.d.ts diff --git a/http-assert/tsconfig.json b/types/http-assert/tsconfig.json similarity index 100% rename from http-assert/tsconfig.json rename to types/http-assert/tsconfig.json diff --git a/htmlescape/tslint.json b/types/http-assert/tslint.json similarity index 100% rename from htmlescape/tslint.json rename to types/http-assert/tslint.json diff --git a/types/http-codes/index.d.ts b/types/http-codes/index.d.ts new file mode 100644 index 0000000000..0be3973652 --- /dev/null +++ b/types/http-codes/index.d.ts @@ -0,0 +1,67 @@ +// Type definitions for http-codes 1.0 +// Project: https://github.com/flesler/node-http-codes +// Definitions by: Mohamed Hegazy +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export const ACCEPTED: number; +export const ALREADY_REPORTED: number; +export const BAD_GATEWAY: number; +export const BAD_REQUEST: number; +export const BANDWIDTH_LIMIT_EXCEEDED: number; +export const CONFLICT: number; +export const CONTINUE: number; +export const CREATED: number; +export const EXPECTATION_FAILED: number; +export const FAILED_DEPENDENCY: number; +export const FORBIDDEN: number; +export const FOUND: number; +export const GATEWAY_TIMEOUT: number; +export const GONE: number; +export const HTTP_VERSION_NOT_SUPPORTED: number; +export const IM_A_TEAPOT: number; +export const IM_USED: number; +export const INSUFFICIENT_STORAGE: number; +export const INTERNAL_SERVER_ERROR: number; +export const LENGTH_REQUIRED: number; +export const LOCKED: number; +export const LOOP_DETECTED: number; +export const METHOD_NOT_ALLOWED: number; +export const MISDIRECTED_REQUEST: number; +export const MOVED_PERMANENTLY: number; +export const MULTIPLE_CHOICES: number; +export const MULTI_STATUS: number; +export const NETWORK_AUTHENTICATION_REQUIRED: number; +export const NON_AUTHORITATIVE_INFORMATION: number; +export const NOT_ACCEPTABLE: number; +export const NOT_EXTENDED: number; +export const NOT_FOUND: number; +export const NOT_IMPLEMENTED: number; +export const NOT_MODIFIED: number; +export const NO_CONTENT: number; +export const OK: number; +export const PARTIAL_CONTENT: number; +export const PAYLOAD_TOO_LARGE: number; +export const PAYMENT_REQUIRED: number; +export const PERMANENT_REDIRECT: number; +export const PRECONDITION_FAILED: number; +export const PRECONDITION_REQUIRED: number; +export const PROCESSING: number; +export const PROXY_AUTHENTICATION_REQUIRED: number; +export const RANGE_NOT_SATISFIABLE: number; +export const REQUEST_HEADER_FIELDS_TOO_LARGE: number; +export const REQUEST_TIMEOUT: number; +export const RESET_CONTENT: number; +export const SEE_OTHER: number; +export const SERVICE_UNAVAILABLE: number; +export const SWITCHING_PROTOCOLS: number; +export const TEMPORARY_REDIRECT: number; +export const TOO_MANY_REQUESTS: number; +export const UNAUTHORIZED: number; +export const UNAVAILABLE_FOR_LEGAL_REASONS: number; +export const UNORDERED_COLLECTION: number; +export const UNPROCESSABLE_ENTITY: number; +export const UNSUPPORTED_MEDIA_TYPE: number; +export const UPGRADE_REQUIRED: number; +export const URI_TOO_LONG: number; +export const USE_PROXY: number; +export const VARIANT_ALSO_NEGOTIATES: number; diff --git a/http-codes/tsconfig.json b/types/http-codes/tsconfig.json similarity index 100% rename from http-codes/tsconfig.json rename to types/http-codes/tsconfig.json diff --git a/http-assert/tslint.json b/types/http-codes/tslint.json similarity index 100% rename from http-assert/tslint.json rename to types/http-codes/tslint.json diff --git a/http-errors/http-errors-tests.ts b/types/http-errors/http-errors-tests.ts similarity index 100% rename from http-errors/http-errors-tests.ts rename to types/http-errors/http-errors-tests.ts diff --git a/http-errors/index.d.ts b/types/http-errors/index.d.ts similarity index 100% rename from http-errors/index.d.ts rename to types/http-errors/index.d.ts diff --git a/http-errors/tsconfig.json b/types/http-errors/tsconfig.json similarity index 100% rename from http-errors/tsconfig.json rename to types/http-errors/tsconfig.json diff --git a/http-link-header/http-link-header-tests.ts b/types/http-link-header/http-link-header-tests.ts similarity index 100% rename from http-link-header/http-link-header-tests.ts rename to types/http-link-header/http-link-header-tests.ts diff --git a/http-link-header/index.d.ts b/types/http-link-header/index.d.ts similarity index 100% rename from http-link-header/index.d.ts rename to types/http-link-header/index.d.ts diff --git a/http-link-header/tsconfig.json b/types/http-link-header/tsconfig.json similarity index 100% rename from http-link-header/tsconfig.json rename to types/http-link-header/tsconfig.json diff --git a/http-codes/tslint.json b/types/http-link-header/tslint.json similarity index 100% rename from http-codes/tslint.json rename to types/http-link-header/tslint.json diff --git a/http-status-codes/http-status-codes-tests.ts b/types/http-status-codes/http-status-codes-tests.ts similarity index 100% rename from http-status-codes/http-status-codes-tests.ts rename to types/http-status-codes/http-status-codes-tests.ts diff --git a/http-status-codes/index.d.ts b/types/http-status-codes/index.d.ts similarity index 100% rename from http-status-codes/index.d.ts rename to types/http-status-codes/index.d.ts diff --git a/http-status-codes/tsconfig.json b/types/http-status-codes/tsconfig.json similarity index 100% rename from http-status-codes/tsconfig.json rename to types/http-status-codes/tsconfig.json diff --git a/http-status/http-status-tests.ts b/types/http-status/http-status-tests.ts similarity index 100% rename from http-status/http-status-tests.ts rename to types/http-status/http-status-tests.ts diff --git a/http-status/index.d.ts b/types/http-status/index.d.ts similarity index 100% rename from http-status/index.d.ts rename to types/http-status/index.d.ts diff --git a/http-status/tsconfig.json b/types/http-status/tsconfig.json similarity index 100% rename from http-status/tsconfig.json rename to types/http-status/tsconfig.json diff --git a/http-string-parser/http-string-parser-tests.ts b/types/http-string-parser/http-string-parser-tests.ts similarity index 100% rename from http-string-parser/http-string-parser-tests.ts rename to types/http-string-parser/http-string-parser-tests.ts diff --git a/http-string-parser/index.d.ts b/types/http-string-parser/index.d.ts similarity index 100% rename from http-string-parser/index.d.ts rename to types/http-string-parser/index.d.ts diff --git a/http-string-parser/tsconfig.json b/types/http-string-parser/tsconfig.json similarity index 100% rename from http-string-parser/tsconfig.json rename to types/http-string-parser/tsconfig.json diff --git a/httperr/httperr-tests.ts b/types/httperr/httperr-tests.ts similarity index 100% rename from httperr/httperr-tests.ts rename to types/httperr/httperr-tests.ts diff --git a/httperr/index.d.ts b/types/httperr/index.d.ts similarity index 100% rename from httperr/index.d.ts rename to types/httperr/index.d.ts diff --git a/httperr/tsconfig.json b/types/httperr/tsconfig.json similarity index 100% rename from httperr/tsconfig.json rename to types/httperr/tsconfig.json diff --git a/hubspot-pace/hubspot-pace-tests.ts b/types/hubspot-pace/hubspot-pace-tests.ts similarity index 100% rename from hubspot-pace/hubspot-pace-tests.ts rename to types/hubspot-pace/hubspot-pace-tests.ts diff --git a/hubspot-pace/index.d.ts b/types/hubspot-pace/index.d.ts similarity index 100% rename from hubspot-pace/index.d.ts rename to types/hubspot-pace/index.d.ts diff --git a/hubspot-pace/tsconfig.json b/types/hubspot-pace/tsconfig.json similarity index 100% rename from hubspot-pace/tsconfig.json rename to types/hubspot-pace/tsconfig.json diff --git a/humane/humane-tests.ts b/types/humane/humane-tests.ts similarity index 100% rename from humane/humane-tests.ts rename to types/humane/humane-tests.ts diff --git a/humane/index.d.ts b/types/humane/index.d.ts similarity index 100% rename from humane/index.d.ts rename to types/humane/index.d.ts diff --git a/humane/tsconfig.json b/types/humane/tsconfig.json similarity index 100% rename from humane/tsconfig.json rename to types/humane/tsconfig.json diff --git a/humanparser/humanparser-tests.ts b/types/humanparser/humanparser-tests.ts similarity index 100% rename from humanparser/humanparser-tests.ts rename to types/humanparser/humanparser-tests.ts diff --git a/humanparser/index.d.ts b/types/humanparser/index.d.ts similarity index 100% rename from humanparser/index.d.ts rename to types/humanparser/index.d.ts diff --git a/humanparser/tsconfig.json b/types/humanparser/tsconfig.json similarity index 100% rename from humanparser/tsconfig.json rename to types/humanparser/tsconfig.json diff --git a/humps/humps-tests.ts b/types/humps/humps-tests.ts similarity index 100% rename from humps/humps-tests.ts rename to types/humps/humps-tests.ts diff --git a/humps/index.d.ts b/types/humps/index.d.ts similarity index 100% rename from humps/index.d.ts rename to types/humps/index.d.ts diff --git a/humps/tsconfig.json b/types/humps/tsconfig.json similarity index 100% rename from humps/tsconfig.json rename to types/humps/tsconfig.json diff --git a/hyco-ws/hyco-ws-tests.ts b/types/hyco-ws/hyco-ws-tests.ts similarity index 100% rename from hyco-ws/hyco-ws-tests.ts rename to types/hyco-ws/hyco-ws-tests.ts diff --git a/hyco-ws/index.d.ts b/types/hyco-ws/index.d.ts similarity index 100% rename from hyco-ws/index.d.ts rename to types/hyco-ws/index.d.ts diff --git a/hyco-ws/tsconfig.json b/types/hyco-ws/tsconfig.json similarity index 100% rename from hyco-ws/tsconfig.json rename to types/hyco-ws/tsconfig.json diff --git a/http-link-header/tslint.json b/types/hyco-ws/tslint.json similarity index 100% rename from http-link-header/tslint.json rename to types/hyco-ws/tslint.json diff --git a/hyperscript/hyperscript-tests.ts b/types/hyperscript/hyperscript-tests.ts similarity index 100% rename from hyperscript/hyperscript-tests.ts rename to types/hyperscript/hyperscript-tests.ts diff --git a/hyperscript/index.d.ts b/types/hyperscript/index.d.ts similarity index 100% rename from hyperscript/index.d.ts rename to types/hyperscript/index.d.ts diff --git a/hyperscript/tsconfig.json b/types/hyperscript/tsconfig.json similarity index 100% rename from hyperscript/tsconfig.json rename to types/hyperscript/tsconfig.json diff --git a/hypertext-application-language/hypertext-application-language-tests.ts b/types/hypertext-application-language/hypertext-application-language-tests.ts similarity index 100% rename from hypertext-application-language/hypertext-application-language-tests.ts rename to types/hypertext-application-language/hypertext-application-language-tests.ts diff --git a/hypertext-application-language/index.d.ts b/types/hypertext-application-language/index.d.ts similarity index 100% rename from hypertext-application-language/index.d.ts rename to types/hypertext-application-language/index.d.ts diff --git a/hypertext-application-language/tsconfig.json b/types/hypertext-application-language/tsconfig.json similarity index 100% rename from hypertext-application-language/tsconfig.json rename to types/hypertext-application-language/tsconfig.json diff --git a/hystrixjs/hystrixjs-tests.ts b/types/hystrixjs/hystrixjs-tests.ts similarity index 100% rename from hystrixjs/hystrixjs-tests.ts rename to types/hystrixjs/hystrixjs-tests.ts diff --git a/hystrixjs/index.d.ts b/types/hystrixjs/index.d.ts similarity index 100% rename from hystrixjs/index.d.ts rename to types/hystrixjs/index.d.ts diff --git a/hystrixjs/tsconfig.json b/types/hystrixjs/tsconfig.json similarity index 100% rename from hystrixjs/tsconfig.json rename to types/hystrixjs/tsconfig.json diff --git a/i18n/i18n-tests.ts b/types/i18n/i18n-tests.ts similarity index 100% rename from i18n/i18n-tests.ts rename to types/i18n/i18n-tests.ts diff --git a/i18n/index.d.ts b/types/i18n/index.d.ts similarity index 100% rename from i18n/index.d.ts rename to types/i18n/index.d.ts diff --git a/i18n/tsconfig.json b/types/i18n/tsconfig.json similarity index 100% rename from i18n/tsconfig.json rename to types/i18n/tsconfig.json diff --git a/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts b/types/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts similarity index 100% rename from i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts rename to types/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts diff --git a/i18next-browser-languagedetector/index.d.ts b/types/i18next-browser-languagedetector/index.d.ts similarity index 100% rename from i18next-browser-languagedetector/index.d.ts rename to types/i18next-browser-languagedetector/index.d.ts diff --git a/i18next-browser-languagedetector/tsconfig.json b/types/i18next-browser-languagedetector/tsconfig.json similarity index 100% rename from i18next-browser-languagedetector/tsconfig.json rename to types/i18next-browser-languagedetector/tsconfig.json diff --git a/i18next-express-middleware/i18next-express-middleware-tests.ts b/types/i18next-express-middleware/i18next-express-middleware-tests.ts similarity index 100% rename from i18next-express-middleware/i18next-express-middleware-tests.ts rename to types/i18next-express-middleware/i18next-express-middleware-tests.ts diff --git a/i18next-express-middleware/index.d.ts b/types/i18next-express-middleware/index.d.ts similarity index 100% rename from i18next-express-middleware/index.d.ts rename to types/i18next-express-middleware/index.d.ts diff --git a/i18next-express-middleware/tsconfig.json b/types/i18next-express-middleware/tsconfig.json similarity index 100% rename from i18next-express-middleware/tsconfig.json rename to types/i18next-express-middleware/tsconfig.json diff --git a/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts b/types/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts similarity index 100% rename from i18next-node-fs-backend/i18next-node-fs-backend-tests.ts rename to types/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts diff --git a/i18next-node-fs-backend/index.d.ts b/types/i18next-node-fs-backend/index.d.ts similarity index 100% rename from i18next-node-fs-backend/index.d.ts rename to types/i18next-node-fs-backend/index.d.ts diff --git a/i18next-node-fs-backend/tsconfig.json b/types/i18next-node-fs-backend/tsconfig.json similarity index 100% rename from i18next-node-fs-backend/tsconfig.json rename to types/i18next-node-fs-backend/tsconfig.json diff --git a/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts b/types/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts similarity index 100% rename from i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts rename to types/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor-tests.ts diff --git a/i18next-sprintf-postprocessor/index.d.ts b/types/i18next-sprintf-postprocessor/index.d.ts similarity index 100% rename from i18next-sprintf-postprocessor/index.d.ts rename to types/i18next-sprintf-postprocessor/index.d.ts diff --git a/i18next-sprintf-postprocessor/tsconfig.json b/types/i18next-sprintf-postprocessor/tsconfig.json similarity index 100% rename from i18next-sprintf-postprocessor/tsconfig.json rename to types/i18next-sprintf-postprocessor/tsconfig.json diff --git a/i18next-xhr-backend/i18next-xhr-backend-tests.ts b/types/i18next-xhr-backend/i18next-xhr-backend-tests.ts similarity index 100% rename from i18next-xhr-backend/i18next-xhr-backend-tests.ts rename to types/i18next-xhr-backend/i18next-xhr-backend-tests.ts diff --git a/i18next-xhr-backend/index.d.ts b/types/i18next-xhr-backend/index.d.ts similarity index 100% rename from i18next-xhr-backend/index.d.ts rename to types/i18next-xhr-backend/index.d.ts diff --git a/i18next-xhr-backend/tsconfig.json b/types/i18next-xhr-backend/tsconfig.json similarity index 100% rename from i18next-xhr-backend/tsconfig.json rename to types/i18next-xhr-backend/tsconfig.json diff --git a/i18next/i18next-tests.ts b/types/i18next/i18next-tests.ts similarity index 100% rename from i18next/i18next-tests.ts rename to types/i18next/i18next-tests.ts diff --git a/i18next/index.d.ts b/types/i18next/index.d.ts similarity index 100% rename from i18next/index.d.ts rename to types/i18next/index.d.ts diff --git a/i18next/tsconfig.json b/types/i18next/tsconfig.json similarity index 100% rename from i18next/tsconfig.json rename to types/i18next/tsconfig.json diff --git a/i2c-bus/i2c-bus-tests.ts b/types/i2c-bus/i2c-bus-tests.ts similarity index 100% rename from i2c-bus/i2c-bus-tests.ts rename to types/i2c-bus/i2c-bus-tests.ts diff --git a/i2c-bus/index.d.ts b/types/i2c-bus/index.d.ts similarity index 100% rename from i2c-bus/index.d.ts rename to types/i2c-bus/index.d.ts diff --git a/i2c-bus/tsconfig.json b/types/i2c-bus/tsconfig.json similarity index 100% rename from i2c-bus/tsconfig.json rename to types/i2c-bus/tsconfig.json diff --git a/iban/iban-tests.ts b/types/iban/iban-tests.ts similarity index 100% rename from iban/iban-tests.ts rename to types/iban/iban-tests.ts diff --git a/iban/index.d.ts b/types/iban/index.d.ts similarity index 100% rename from iban/index.d.ts rename to types/iban/index.d.ts diff --git a/iban/tsconfig.json b/types/iban/tsconfig.json similarity index 100% rename from iban/tsconfig.json rename to types/iban/tsconfig.json diff --git a/ibm-mobilefirst/ibm-mobilefirst-tests.ts b/types/ibm-mobilefirst/ibm-mobilefirst-tests.ts similarity index 100% rename from ibm-mobilefirst/ibm-mobilefirst-tests.ts rename to types/ibm-mobilefirst/ibm-mobilefirst-tests.ts diff --git a/ibm-mobilefirst/index.d.ts b/types/ibm-mobilefirst/index.d.ts similarity index 100% rename from ibm-mobilefirst/index.d.ts rename to types/ibm-mobilefirst/index.d.ts diff --git a/ibm-mobilefirst/tsconfig.json b/types/ibm-mobilefirst/tsconfig.json similarity index 100% rename from ibm-mobilefirst/tsconfig.json rename to types/ibm-mobilefirst/tsconfig.json diff --git a/icepick/icepick-tests.ts b/types/icepick/icepick-tests.ts similarity index 100% rename from icepick/icepick-tests.ts rename to types/icepick/icepick-tests.ts diff --git a/icepick/index.d.ts b/types/icepick/index.d.ts similarity index 100% rename from icepick/index.d.ts rename to types/icepick/index.d.ts diff --git a/icepick/tsconfig.json b/types/icepick/tsconfig.json similarity index 100% rename from icepick/tsconfig.json rename to types/icepick/tsconfig.json diff --git a/icheck/icheck-tests.ts b/types/icheck/icheck-tests.ts similarity index 100% rename from icheck/icheck-tests.ts rename to types/icheck/icheck-tests.ts diff --git a/icheck/index.d.ts b/types/icheck/index.d.ts similarity index 100% rename from icheck/index.d.ts rename to types/icheck/index.d.ts diff --git a/icheck/tsconfig.json b/types/icheck/tsconfig.json similarity index 100% rename from icheck/tsconfig.json rename to types/icheck/tsconfig.json diff --git a/iconv-lite/iconv-lite-tests.ts b/types/iconv-lite/iconv-lite-tests.ts similarity index 100% rename from iconv-lite/iconv-lite-tests.ts rename to types/iconv-lite/iconv-lite-tests.ts diff --git a/iconv-lite/index.d.ts b/types/iconv-lite/index.d.ts similarity index 100% rename from iconv-lite/index.d.ts rename to types/iconv-lite/index.d.ts diff --git a/iconv-lite/tsconfig.json b/types/iconv-lite/tsconfig.json similarity index 100% rename from iconv-lite/tsconfig.json rename to types/iconv-lite/tsconfig.json diff --git a/iconv/iconv-tests.ts b/types/iconv/iconv-tests.ts similarity index 100% rename from iconv/iconv-tests.ts rename to types/iconv/iconv-tests.ts diff --git a/iconv/index.d.ts b/types/iconv/index.d.ts similarity index 100% rename from iconv/index.d.ts rename to types/iconv/index.d.ts diff --git a/iconv/tsconfig.json b/types/iconv/tsconfig.json similarity index 100% rename from iconv/tsconfig.json rename to types/iconv/tsconfig.json diff --git a/ids/ids-tests.ts b/types/ids/ids-tests.ts similarity index 100% rename from ids/ids-tests.ts rename to types/ids/ids-tests.ts diff --git a/ids/index.d.ts b/types/ids/index.d.ts similarity index 100% rename from ids/index.d.ts rename to types/ids/index.d.ts diff --git a/ids/tsconfig.json b/types/ids/tsconfig.json similarity index 100% rename from ids/tsconfig.json rename to types/ids/tsconfig.json diff --git a/image-size/image-size-tests.ts b/types/image-size/image-size-tests.ts similarity index 100% rename from image-size/image-size-tests.ts rename to types/image-size/image-size-tests.ts diff --git a/image-size/index.d.ts b/types/image-size/index.d.ts similarity index 100% rename from image-size/index.d.ts rename to types/image-size/index.d.ts diff --git a/image-size/tsconfig.json b/types/image-size/tsconfig.json similarity index 100% rename from image-size/tsconfig.json rename to types/image-size/tsconfig.json diff --git a/imagemagick-native/imagemagick-native-tests.ts b/types/imagemagick-native/imagemagick-native-tests.ts similarity index 100% rename from imagemagick-native/imagemagick-native-tests.ts rename to types/imagemagick-native/imagemagick-native-tests.ts diff --git a/imagemagick-native/index.d.ts b/types/imagemagick-native/index.d.ts similarity index 100% rename from imagemagick-native/index.d.ts rename to types/imagemagick-native/index.d.ts diff --git a/imagemagick-native/tsconfig.json b/types/imagemagick-native/tsconfig.json similarity index 100% rename from imagemagick-native/tsconfig.json rename to types/imagemagick-native/tsconfig.json diff --git a/imagemagick/imagemagick-tests.ts b/types/imagemagick/imagemagick-tests.ts similarity index 100% rename from imagemagick/imagemagick-tests.ts rename to types/imagemagick/imagemagick-tests.ts diff --git a/imagemagick/index.d.ts b/types/imagemagick/index.d.ts similarity index 100% rename from imagemagick/index.d.ts rename to types/imagemagick/index.d.ts diff --git a/imagemagick/tsconfig.json b/types/imagemagick/tsconfig.json similarity index 100% rename from imagemagick/tsconfig.json rename to types/imagemagick/tsconfig.json diff --git a/imagemapster/imagemapster-tests.ts b/types/imagemapster/imagemapster-tests.ts similarity index 100% rename from imagemapster/imagemapster-tests.ts rename to types/imagemapster/imagemapster-tests.ts diff --git a/imagemapster/index.d.ts b/types/imagemapster/index.d.ts similarity index 100% rename from imagemapster/index.d.ts rename to types/imagemapster/index.d.ts diff --git a/imagemapster/tsconfig.json b/types/imagemapster/tsconfig.json similarity index 100% rename from imagemapster/tsconfig.json rename to types/imagemapster/tsconfig.json diff --git a/imagesloaded/imagesloaded-tests.ts b/types/imagesloaded/imagesloaded-tests.ts similarity index 100% rename from imagesloaded/imagesloaded-tests.ts rename to types/imagesloaded/imagesloaded-tests.ts diff --git a/imagesloaded/index.d.ts b/types/imagesloaded/index.d.ts similarity index 100% rename from imagesloaded/index.d.ts rename to types/imagesloaded/index.d.ts diff --git a/imagesloaded/tsconfig.json b/types/imagesloaded/tsconfig.json similarity index 100% rename from imagesloaded/tsconfig.json rename to types/imagesloaded/tsconfig.json diff --git a/imap-simple/imap-simple-tests.ts b/types/imap-simple/imap-simple-tests.ts similarity index 100% rename from imap-simple/imap-simple-tests.ts rename to types/imap-simple/imap-simple-tests.ts diff --git a/imap-simple/index.d.ts b/types/imap-simple/index.d.ts similarity index 100% rename from imap-simple/index.d.ts rename to types/imap-simple/index.d.ts diff --git a/imap-simple/tsconfig.json b/types/imap-simple/tsconfig.json similarity index 100% rename from imap-simple/tsconfig.json rename to types/imap-simple/tsconfig.json diff --git a/imap/imap-tests.ts b/types/imap/imap-tests.ts similarity index 100% rename from imap/imap-tests.ts rename to types/imap/imap-tests.ts diff --git a/imap/index.d.ts b/types/imap/index.d.ts similarity index 100% rename from imap/index.d.ts rename to types/imap/index.d.ts diff --git a/imap/tsconfig.json b/types/imap/tsconfig.json similarity index 100% rename from imap/tsconfig.json rename to types/imap/tsconfig.json diff --git a/imgur-rest-api/imgur-rest-api-tests.ts b/types/imgur-rest-api/imgur-rest-api-tests.ts similarity index 100% rename from imgur-rest-api/imgur-rest-api-tests.ts rename to types/imgur-rest-api/imgur-rest-api-tests.ts diff --git a/imgur-rest-api/index.d.ts b/types/imgur-rest-api/index.d.ts similarity index 100% rename from imgur-rest-api/index.d.ts rename to types/imgur-rest-api/index.d.ts diff --git a/imgur-rest-api/tsconfig.json b/types/imgur-rest-api/tsconfig.json similarity index 100% rename from imgur-rest-api/tsconfig.json rename to types/imgur-rest-api/tsconfig.json diff --git a/immutability-helper/immutability-helper-tests.ts b/types/immutability-helper/immutability-helper-tests.ts similarity index 100% rename from immutability-helper/immutability-helper-tests.ts rename to types/immutability-helper/immutability-helper-tests.ts diff --git a/immutability-helper/index.d.ts b/types/immutability-helper/index.d.ts similarity index 100% rename from immutability-helper/index.d.ts rename to types/immutability-helper/index.d.ts diff --git a/immutability-helper/tsconfig.json b/types/immutability-helper/tsconfig.json similarity index 100% rename from immutability-helper/tsconfig.json rename to types/immutability-helper/tsconfig.json diff --git a/impress/impress-tests.ts b/types/impress/impress-tests.ts similarity index 100% rename from impress/impress-tests.ts rename to types/impress/impress-tests.ts diff --git a/impress/index.d.ts b/types/impress/index.d.ts similarity index 100% rename from impress/index.d.ts rename to types/impress/index.d.ts diff --git a/impress/tsconfig.json b/types/impress/tsconfig.json similarity index 100% rename from impress/tsconfig.json rename to types/impress/tsconfig.json diff --git a/in-range/in-range-tests.ts b/types/in-range/in-range-tests.ts similarity index 100% rename from in-range/in-range-tests.ts rename to types/in-range/in-range-tests.ts diff --git a/in-range/index.d.ts b/types/in-range/index.d.ts similarity index 100% rename from in-range/index.d.ts rename to types/in-range/index.d.ts diff --git a/in-range/tsconfig.json b/types/in-range/tsconfig.json similarity index 100% rename from in-range/tsconfig.json rename to types/in-range/tsconfig.json diff --git a/hyco-ws/tslint.json b/types/in-range/tslint.json similarity index 100% rename from hyco-ws/tslint.json rename to types/in-range/tslint.json diff --git a/incremental-dom/incremental-dom-tests.ts b/types/incremental-dom/incremental-dom-tests.ts similarity index 100% rename from incremental-dom/incremental-dom-tests.ts rename to types/incremental-dom/incremental-dom-tests.ts diff --git a/incremental-dom/index.d.ts b/types/incremental-dom/index.d.ts similarity index 100% rename from incremental-dom/index.d.ts rename to types/incremental-dom/index.d.ts diff --git a/incremental-dom/tsconfig.json b/types/incremental-dom/tsconfig.json similarity index 100% rename from incremental-dom/tsconfig.json rename to types/incremental-dom/tsconfig.json diff --git a/indent-string/indent-string-tests.ts b/types/indent-string/indent-string-tests.ts similarity index 100% rename from indent-string/indent-string-tests.ts rename to types/indent-string/indent-string-tests.ts diff --git a/indent-string/index.d.ts b/types/indent-string/index.d.ts similarity index 100% rename from indent-string/index.d.ts rename to types/indent-string/index.d.ts diff --git a/indent-string/tsconfig.json b/types/indent-string/tsconfig.json similarity index 100% rename from indent-string/tsconfig.json rename to types/indent-string/tsconfig.json diff --git a/in-range/tslint.json b/types/indent-string/tslint.json similarity index 100% rename from in-range/tslint.json rename to types/indent-string/tslint.json diff --git a/inert/index.d.ts b/types/inert/index.d.ts similarity index 100% rename from inert/index.d.ts rename to types/inert/index.d.ts diff --git a/inert/inert-tests.ts b/types/inert/inert-tests.ts similarity index 100% rename from inert/inert-tests.ts rename to types/inert/inert-tests.ts diff --git a/inert/tsconfig.json b/types/inert/tsconfig.json similarity index 100% rename from inert/tsconfig.json rename to types/inert/tsconfig.json diff --git a/indent-string/tslint.json b/types/inert/tslint.json similarity index 100% rename from indent-string/tslint.json rename to types/inert/tslint.json diff --git a/inflected/index.d.ts b/types/inflected/index.d.ts similarity index 100% rename from inflected/index.d.ts rename to types/inflected/index.d.ts diff --git a/inflected/inflected-tests.ts b/types/inflected/inflected-tests.ts similarity index 100% rename from inflected/inflected-tests.ts rename to types/inflected/inflected-tests.ts diff --git a/inflected/tsconfig.json b/types/inflected/tsconfig.json similarity index 100% rename from inflected/tsconfig.json rename to types/inflected/tsconfig.json diff --git a/inflection/index.d.ts b/types/inflection/index.d.ts similarity index 100% rename from inflection/index.d.ts rename to types/inflection/index.d.ts diff --git a/inflection/inflection-tests.ts b/types/inflection/inflection-tests.ts similarity index 100% rename from inflection/inflection-tests.ts rename to types/inflection/inflection-tests.ts diff --git a/inflection/tsconfig.json b/types/inflection/tsconfig.json similarity index 100% rename from inflection/tsconfig.json rename to types/inflection/tsconfig.json diff --git a/inherits/index.d.ts b/types/inherits/index.d.ts similarity index 100% rename from inherits/index.d.ts rename to types/inherits/index.d.ts diff --git a/inherits/inherits-tests.ts b/types/inherits/inherits-tests.ts similarity index 100% rename from inherits/inherits-tests.ts rename to types/inherits/inherits-tests.ts diff --git a/inherits/tsconfig.json b/types/inherits/tsconfig.json similarity index 100% rename from inherits/tsconfig.json rename to types/inherits/tsconfig.json diff --git a/ini/index.d.ts b/types/ini/index.d.ts similarity index 100% rename from ini/index.d.ts rename to types/ini/index.d.ts diff --git a/ini/ini-tests.ts b/types/ini/ini-tests.ts similarity index 100% rename from ini/ini-tests.ts rename to types/ini/ini-tests.ts diff --git a/ini/tsconfig.json b/types/ini/tsconfig.json similarity index 100% rename from ini/tsconfig.json rename to types/ini/tsconfig.json diff --git a/iniparser/index.d.ts b/types/iniparser/index.d.ts similarity index 100% rename from iniparser/index.d.ts rename to types/iniparser/index.d.ts diff --git a/iniparser/iniparser-tests.ts b/types/iniparser/iniparser-tests.ts similarity index 100% rename from iniparser/iniparser-tests.ts rename to types/iniparser/iniparser-tests.ts diff --git a/iniparser/tsconfig.json b/types/iniparser/tsconfig.json similarity index 100% rename from iniparser/tsconfig.json rename to types/iniparser/tsconfig.json diff --git a/inline-css/index.d.ts b/types/inline-css/index.d.ts similarity index 100% rename from inline-css/index.d.ts rename to types/inline-css/index.d.ts diff --git a/inline-css/inline-css-tests.ts b/types/inline-css/inline-css-tests.ts similarity index 100% rename from inline-css/inline-css-tests.ts rename to types/inline-css/inline-css-tests.ts diff --git a/inline-css/tsconfig.json b/types/inline-css/tsconfig.json similarity index 100% rename from inline-css/tsconfig.json rename to types/inline-css/tsconfig.json diff --git a/inquirer/index.d.ts b/types/inquirer/index.d.ts similarity index 100% rename from inquirer/index.d.ts rename to types/inquirer/index.d.ts diff --git a/inquirer/inquirer-tests.ts b/types/inquirer/inquirer-tests.ts similarity index 100% rename from inquirer/inquirer-tests.ts rename to types/inquirer/inquirer-tests.ts diff --git a/inquirer/tsconfig.json b/types/inquirer/tsconfig.json similarity index 100% rename from inquirer/tsconfig.json rename to types/inquirer/tsconfig.json diff --git a/insight/index.d.ts b/types/insight/index.d.ts similarity index 100% rename from insight/index.d.ts rename to types/insight/index.d.ts diff --git a/insight/insight-tests.ts b/types/insight/insight-tests.ts similarity index 100% rename from insight/insight-tests.ts rename to types/insight/insight-tests.ts diff --git a/insight/tsconfig.json b/types/insight/tsconfig.json similarity index 100% rename from insight/tsconfig.json rename to types/insight/tsconfig.json diff --git a/interact.js/index.d.ts b/types/interact.js/index.d.ts similarity index 100% rename from interact.js/index.d.ts rename to types/interact.js/index.d.ts diff --git a/interact.js/interact.js-tests.ts b/types/interact.js/interact.js-tests.ts similarity index 100% rename from interact.js/interact.js-tests.ts rename to types/interact.js/interact.js-tests.ts diff --git a/interact.js/tsconfig.json b/types/interact.js/tsconfig.json similarity index 100% rename from interact.js/tsconfig.json rename to types/interact.js/tsconfig.json diff --git a/intercomjs/index.d.ts b/types/intercomjs/index.d.ts similarity index 100% rename from intercomjs/index.d.ts rename to types/intercomjs/index.d.ts diff --git a/intercomjs/intercomjs-tests.ts b/types/intercomjs/intercomjs-tests.ts similarity index 100% rename from intercomjs/intercomjs-tests.ts rename to types/intercomjs/intercomjs-tests.ts diff --git a/intercomjs/tsconfig.json b/types/intercomjs/tsconfig.json similarity index 100% rename from intercomjs/tsconfig.json rename to types/intercomjs/tsconfig.json diff --git a/intl-messageformat/index.d.ts b/types/intl-messageformat/index.d.ts similarity index 100% rename from intl-messageformat/index.d.ts rename to types/intl-messageformat/index.d.ts diff --git a/intl-messageformat/intl-messageformat-tests.ts b/types/intl-messageformat/intl-messageformat-tests.ts similarity index 100% rename from intl-messageformat/intl-messageformat-tests.ts rename to types/intl-messageformat/intl-messageformat-tests.ts diff --git a/intl-messageformat/tsconfig.json b/types/intl-messageformat/tsconfig.json similarity index 100% rename from intl-messageformat/tsconfig.json rename to types/intl-messageformat/tsconfig.json diff --git a/inert/tslint.json b/types/intl-messageformat/tslint.json similarity index 100% rename from inert/tslint.json rename to types/intl-messageformat/tslint.json diff --git a/intl-tel-input/index.d.ts b/types/intl-tel-input/index.d.ts similarity index 100% rename from intl-tel-input/index.d.ts rename to types/intl-tel-input/index.d.ts diff --git a/intl-tel-input/intl-tel-input-tests.ts b/types/intl-tel-input/intl-tel-input-tests.ts similarity index 100% rename from intl-tel-input/intl-tel-input-tests.ts rename to types/intl-tel-input/intl-tel-input-tests.ts diff --git a/intl-tel-input/tsconfig.json b/types/intl-tel-input/tsconfig.json similarity index 100% rename from intl-tel-input/tsconfig.json rename to types/intl-tel-input/tsconfig.json diff --git a/intro.js/index.d.ts b/types/intro.js/index.d.ts similarity index 100% rename from intro.js/index.d.ts rename to types/intro.js/index.d.ts diff --git a/intro.js/intro.js-tests.ts b/types/intro.js/intro.js-tests.ts similarity index 100% rename from intro.js/intro.js-tests.ts rename to types/intro.js/intro.js-tests.ts diff --git a/intro.js/tsconfig.json b/types/intro.js/tsconfig.json similarity index 100% rename from intro.js/tsconfig.json rename to types/intro.js/tsconfig.json diff --git a/invariant/index.d.ts b/types/invariant/index.d.ts similarity index 100% rename from invariant/index.d.ts rename to types/invariant/index.d.ts diff --git a/invariant/invariant-tests.ts b/types/invariant/invariant-tests.ts similarity index 100% rename from invariant/invariant-tests.ts rename to types/invariant/invariant-tests.ts diff --git a/invariant/tsconfig.json b/types/invariant/tsconfig.json similarity index 100% rename from invariant/tsconfig.json rename to types/invariant/tsconfig.json diff --git a/inversify-devtools/index.d.ts b/types/inversify-devtools/index.d.ts similarity index 100% rename from inversify-devtools/index.d.ts rename to types/inversify-devtools/index.d.ts diff --git a/inversify-devtools/inversify-devtools-tests.ts b/types/inversify-devtools/inversify-devtools-tests.ts similarity index 100% rename from inversify-devtools/inversify-devtools-tests.ts rename to types/inversify-devtools/inversify-devtools-tests.ts diff --git a/inversify-devtools/package.json b/types/inversify-devtools/package.json similarity index 100% rename from inversify-devtools/package.json rename to types/inversify-devtools/package.json diff --git a/inversify-devtools/tsconfig.json b/types/inversify-devtools/tsconfig.json similarity index 100% rename from inversify-devtools/tsconfig.json rename to types/inversify-devtools/tsconfig.json diff --git a/ion.rangeslider/index.d.ts b/types/ion.rangeslider/index.d.ts similarity index 100% rename from ion.rangeslider/index.d.ts rename to types/ion.rangeslider/index.d.ts diff --git a/ion.rangeslider/ion.rangeslider-tests.ts b/types/ion.rangeslider/ion.rangeslider-tests.ts similarity index 100% rename from ion.rangeslider/ion.rangeslider-tests.ts rename to types/ion.rangeslider/ion.rangeslider-tests.ts diff --git a/ion.rangeslider/tsconfig.json b/types/ion.rangeslider/tsconfig.json similarity index 100% rename from ion.rangeslider/tsconfig.json rename to types/ion.rangeslider/tsconfig.json diff --git a/ion.rangeslider/v1/index.d.ts b/types/ion.rangeslider/v1/index.d.ts similarity index 100% rename from ion.rangeslider/v1/index.d.ts rename to types/ion.rangeslider/v1/index.d.ts diff --git a/ion.rangeslider/v1/ion.rangeslider-tests.ts b/types/ion.rangeslider/v1/ion.rangeslider-tests.ts similarity index 100% rename from ion.rangeslider/v1/ion.rangeslider-tests.ts rename to types/ion.rangeslider/v1/ion.rangeslider-tests.ts diff --git a/ion.rangeslider/v1/tsconfig.json b/types/ion.rangeslider/v1/tsconfig.json similarity index 100% rename from ion.rangeslider/v1/tsconfig.json rename to types/ion.rangeslider/v1/tsconfig.json diff --git a/ionic/index.d.ts b/types/ionic/index.d.ts similarity index 100% rename from ionic/index.d.ts rename to types/ionic/index.d.ts diff --git a/ionic/ionic-tests.ts b/types/ionic/ionic-tests.ts similarity index 100% rename from ionic/ionic-tests.ts rename to types/ionic/ionic-tests.ts diff --git a/ionic/tsconfig.json b/types/ionic/tsconfig.json similarity index 100% rename from ionic/tsconfig.json rename to types/ionic/tsconfig.json diff --git a/ioredis/index.d.ts b/types/ioredis/index.d.ts similarity index 100% rename from ioredis/index.d.ts rename to types/ioredis/index.d.ts diff --git a/ioredis/ioredis-tests.ts b/types/ioredis/ioredis-tests.ts similarity index 100% rename from ioredis/ioredis-tests.ts rename to types/ioredis/ioredis-tests.ts diff --git a/ioredis/tsconfig.json b/types/ioredis/tsconfig.json similarity index 100% rename from ioredis/tsconfig.json rename to types/ioredis/tsconfig.json diff --git a/ip-regex/index.d.ts b/types/ip-regex/index.d.ts similarity index 100% rename from ip-regex/index.d.ts rename to types/ip-regex/index.d.ts diff --git a/ip-regex/ip-regex-tests.ts b/types/ip-regex/ip-regex-tests.ts similarity index 100% rename from ip-regex/ip-regex-tests.ts rename to types/ip-regex/ip-regex-tests.ts diff --git a/ip-regex/tsconfig.json b/types/ip-regex/tsconfig.json similarity index 100% rename from ip-regex/tsconfig.json rename to types/ip-regex/tsconfig.json diff --git a/intl-messageformat/tslint.json b/types/ip-regex/tslint.json similarity index 100% rename from intl-messageformat/tslint.json rename to types/ip-regex/tslint.json diff --git a/ip/index.d.ts b/types/ip/index.d.ts similarity index 100% rename from ip/index.d.ts rename to types/ip/index.d.ts diff --git a/ip/ip-tests.ts b/types/ip/ip-tests.ts similarity index 100% rename from ip/ip-tests.ts rename to types/ip/ip-tests.ts diff --git a/ip/tsconfig.json b/types/ip/tsconfig.json similarity index 100% rename from ip/tsconfig.json rename to types/ip/tsconfig.json diff --git a/irc/index.d.ts b/types/irc/index.d.ts similarity index 100% rename from irc/index.d.ts rename to types/irc/index.d.ts diff --git a/irc/irc-tests.ts b/types/irc/irc-tests.ts similarity index 100% rename from irc/irc-tests.ts rename to types/irc/irc-tests.ts diff --git a/irc/tsconfig.json b/types/irc/tsconfig.json similarity index 100% rename from irc/tsconfig.json rename to types/irc/tsconfig.json diff --git a/is-absolute-url/index.d.ts b/types/is-absolute-url/index.d.ts similarity index 100% rename from is-absolute-url/index.d.ts rename to types/is-absolute-url/index.d.ts diff --git a/is-absolute-url/is-absolute-url-tests.ts b/types/is-absolute-url/is-absolute-url-tests.ts similarity index 100% rename from is-absolute-url/is-absolute-url-tests.ts rename to types/is-absolute-url/is-absolute-url-tests.ts diff --git a/is-absolute-url/tsconfig.json b/types/is-absolute-url/tsconfig.json similarity index 100% rename from is-absolute-url/tsconfig.json rename to types/is-absolute-url/tsconfig.json diff --git a/ip-regex/tslint.json b/types/is-absolute-url/tslint.json similarity index 100% rename from ip-regex/tslint.json rename to types/is-absolute-url/tslint.json diff --git a/is-archive/index.d.ts b/types/is-archive/index.d.ts similarity index 100% rename from is-archive/index.d.ts rename to types/is-archive/index.d.ts diff --git a/is-archive/is-archive-tests.ts b/types/is-archive/is-archive-tests.ts similarity index 100% rename from is-archive/is-archive-tests.ts rename to types/is-archive/is-archive-tests.ts diff --git a/is-archive/tsconfig.json b/types/is-archive/tsconfig.json similarity index 100% rename from is-archive/tsconfig.json rename to types/is-archive/tsconfig.json diff --git a/is-absolute-url/tslint.json b/types/is-archive/tslint.json similarity index 100% rename from is-absolute-url/tslint.json rename to types/is-archive/tslint.json diff --git a/is-array/index.d.ts b/types/is-array/index.d.ts similarity index 100% rename from is-array/index.d.ts rename to types/is-array/index.d.ts diff --git a/is-array/is-array-tests.ts b/types/is-array/is-array-tests.ts similarity index 100% rename from is-array/is-array-tests.ts rename to types/is-array/is-array-tests.ts diff --git a/is-array/tsconfig.json b/types/is-array/tsconfig.json similarity index 100% rename from is-array/tsconfig.json rename to types/is-array/tsconfig.json diff --git a/is-archive/tslint.json b/types/is-array/tslint.json similarity index 100% rename from is-archive/tslint.json rename to types/is-array/tslint.json diff --git a/is-binary-path/index.d.ts b/types/is-binary-path/index.d.ts similarity index 100% rename from is-binary-path/index.d.ts rename to types/is-binary-path/index.d.ts diff --git a/is-binary-path/is-binary-path-tests.ts b/types/is-binary-path/is-binary-path-tests.ts similarity index 100% rename from is-binary-path/is-binary-path-tests.ts rename to types/is-binary-path/is-binary-path-tests.ts diff --git a/is-binary-path/tsconfig.json b/types/is-binary-path/tsconfig.json similarity index 100% rename from is-binary-path/tsconfig.json rename to types/is-binary-path/tsconfig.json diff --git a/is-array/tslint.json b/types/is-binary-path/tslint.json similarity index 100% rename from is-array/tslint.json rename to types/is-binary-path/tslint.json diff --git a/is-compressed/index.d.ts b/types/is-compressed/index.d.ts similarity index 100% rename from is-compressed/index.d.ts rename to types/is-compressed/index.d.ts diff --git a/is-compressed/is-compressed-tests.ts b/types/is-compressed/is-compressed-tests.ts similarity index 100% rename from is-compressed/is-compressed-tests.ts rename to types/is-compressed/is-compressed-tests.ts diff --git a/is-compressed/tsconfig.json b/types/is-compressed/tsconfig.json similarity index 100% rename from is-compressed/tsconfig.json rename to types/is-compressed/tsconfig.json diff --git a/is-binary-path/tslint.json b/types/is-compressed/tslint.json similarity index 100% rename from is-binary-path/tslint.json rename to types/is-compressed/tslint.json diff --git a/is-finite/index.d.ts b/types/is-finite/index.d.ts similarity index 100% rename from is-finite/index.d.ts rename to types/is-finite/index.d.ts diff --git a/is-finite/tsconfig.json b/types/is-finite/tsconfig.json similarity index 100% rename from is-finite/tsconfig.json rename to types/is-finite/tsconfig.json diff --git a/is-compressed/tslint.json b/types/is-finite/tslint.json similarity index 100% rename from is-compressed/tslint.json rename to types/is-finite/tslint.json diff --git a/is-my-json-valid/index.d.ts b/types/is-my-json-valid/index.d.ts similarity index 100% rename from is-my-json-valid/index.d.ts rename to types/is-my-json-valid/index.d.ts diff --git a/is-my-json-valid/is-my-json-valid-tests.ts b/types/is-my-json-valid/is-my-json-valid-tests.ts similarity index 100% rename from is-my-json-valid/is-my-json-valid-tests.ts rename to types/is-my-json-valid/is-my-json-valid-tests.ts diff --git a/is-my-json-valid/tsconfig.json b/types/is-my-json-valid/tsconfig.json similarity index 100% rename from is-my-json-valid/tsconfig.json rename to types/is-my-json-valid/tsconfig.json diff --git a/is-path-cwd/index.d.ts b/types/is-path-cwd/index.d.ts similarity index 100% rename from is-path-cwd/index.d.ts rename to types/is-path-cwd/index.d.ts diff --git a/is-path-cwd/is-path-cwd-tests.ts b/types/is-path-cwd/is-path-cwd-tests.ts similarity index 100% rename from is-path-cwd/is-path-cwd-tests.ts rename to types/is-path-cwd/is-path-cwd-tests.ts diff --git a/is-path-cwd/tsconfig.json b/types/is-path-cwd/tsconfig.json similarity index 100% rename from is-path-cwd/tsconfig.json rename to types/is-path-cwd/tsconfig.json diff --git a/is-finite/tslint.json b/types/is-path-cwd/tslint.json similarity index 100% rename from is-finite/tslint.json rename to types/is-path-cwd/tslint.json diff --git a/is-path-in-cwd/index.d.ts b/types/is-path-in-cwd/index.d.ts similarity index 100% rename from is-path-in-cwd/index.d.ts rename to types/is-path-in-cwd/index.d.ts diff --git a/is-path-in-cwd/tsconfig.json b/types/is-path-in-cwd/tsconfig.json similarity index 100% rename from is-path-in-cwd/tsconfig.json rename to types/is-path-in-cwd/tsconfig.json diff --git a/is-path-cwd/tslint.json b/types/is-path-in-cwd/tslint.json similarity index 100% rename from is-path-cwd/tslint.json rename to types/is-path-in-cwd/tslint.json diff --git a/is-plain-object/index.d.ts b/types/is-plain-object/index.d.ts similarity index 100% rename from is-plain-object/index.d.ts rename to types/is-plain-object/index.d.ts diff --git a/is-plain-object/is-plain-object-tests.ts b/types/is-plain-object/is-plain-object-tests.ts similarity index 100% rename from is-plain-object/is-plain-object-tests.ts rename to types/is-plain-object/is-plain-object-tests.ts diff --git a/is-plain-object/tsconfig.json b/types/is-plain-object/tsconfig.json similarity index 100% rename from is-plain-object/tsconfig.json rename to types/is-plain-object/tsconfig.json diff --git a/is-promise/index.d.ts b/types/is-promise/index.d.ts similarity index 100% rename from is-promise/index.d.ts rename to types/is-promise/index.d.ts diff --git a/is-promise/is-promise-tests.ts b/types/is-promise/is-promise-tests.ts similarity index 100% rename from is-promise/is-promise-tests.ts rename to types/is-promise/is-promise-tests.ts diff --git a/is-promise/tsconfig.json b/types/is-promise/tsconfig.json similarity index 100% rename from is-promise/tsconfig.json rename to types/is-promise/tsconfig.json diff --git a/is-relative-url/index.d.ts b/types/is-relative-url/index.d.ts similarity index 100% rename from is-relative-url/index.d.ts rename to types/is-relative-url/index.d.ts diff --git a/is-relative-url/is-relative-url-tests.ts b/types/is-relative-url/is-relative-url-tests.ts similarity index 100% rename from is-relative-url/is-relative-url-tests.ts rename to types/is-relative-url/is-relative-url-tests.ts diff --git a/is-relative-url/tsconfig.json b/types/is-relative-url/tsconfig.json similarity index 100% rename from is-relative-url/tsconfig.json rename to types/is-relative-url/tsconfig.json diff --git a/is-path-in-cwd/tslint.json b/types/is-relative-url/tslint.json similarity index 100% rename from is-path-in-cwd/tslint.json rename to types/is-relative-url/tslint.json diff --git a/is-root-path/index.d.ts b/types/is-root-path/index.d.ts similarity index 100% rename from is-root-path/index.d.ts rename to types/is-root-path/index.d.ts diff --git a/is-root-path/is-root-path-tests.ts b/types/is-root-path/is-root-path-tests.ts similarity index 100% rename from is-root-path/is-root-path-tests.ts rename to types/is-root-path/is-root-path-tests.ts diff --git a/is-root-path/tsconfig.json b/types/is-root-path/tsconfig.json similarity index 100% rename from is-root-path/tsconfig.json rename to types/is-root-path/tsconfig.json diff --git a/is-relative-url/tslint.json b/types/is-root-path/tslint.json similarity index 100% rename from is-relative-url/tslint.json rename to types/is-root-path/tslint.json diff --git a/is-root/index.d.ts b/types/is-root/index.d.ts similarity index 100% rename from is-root/index.d.ts rename to types/is-root/index.d.ts diff --git a/is-root/is-root-tests.ts b/types/is-root/is-root-tests.ts similarity index 100% rename from is-root/is-root-tests.ts rename to types/is-root/is-root-tests.ts diff --git a/is-root/tsconfig.json b/types/is-root/tsconfig.json similarity index 100% rename from is-root/tsconfig.json rename to types/is-root/tsconfig.json diff --git a/is-root-path/tslint.json b/types/is-root/tslint.json similarity index 100% rename from is-root-path/tslint.json rename to types/is-root/tslint.json diff --git a/is-text-path/index.d.ts b/types/is-text-path/index.d.ts similarity index 100% rename from is-text-path/index.d.ts rename to types/is-text-path/index.d.ts diff --git a/is-text-path/is-text-path-tests.ts b/types/is-text-path/is-text-path-tests.ts similarity index 100% rename from is-text-path/is-text-path-tests.ts rename to types/is-text-path/is-text-path-tests.ts diff --git a/is-text-path/tsconfig.json b/types/is-text-path/tsconfig.json similarity index 100% rename from is-text-path/tsconfig.json rename to types/is-text-path/tsconfig.json diff --git a/is-root/tslint.json b/types/is-text-path/tslint.json similarity index 100% rename from is-root/tslint.json rename to types/is-text-path/tslint.json diff --git a/is-url/index.d.ts b/types/is-url/index.d.ts similarity index 100% rename from is-url/index.d.ts rename to types/is-url/index.d.ts diff --git a/is-url/is-url-tests.ts b/types/is-url/is-url-tests.ts similarity index 100% rename from is-url/is-url-tests.ts rename to types/is-url/is-url-tests.ts diff --git a/is-url/tsconfig.json b/types/is-url/tsconfig.json similarity index 100% rename from is-url/tsconfig.json rename to types/is-url/tsconfig.json diff --git a/is-windows/index.d.ts b/types/is-windows/index.d.ts similarity index 100% rename from is-windows/index.d.ts rename to types/is-windows/index.d.ts diff --git a/is-windows/is-windows-tests.ts b/types/is-windows/is-windows-tests.ts similarity index 100% rename from is-windows/is-windows-tests.ts rename to types/is-windows/is-windows-tests.ts diff --git a/is-windows/tsconfig.json b/types/is-windows/tsconfig.json similarity index 100% rename from is-windows/tsconfig.json rename to types/is-windows/tsconfig.json diff --git a/is-text-path/tslint.json b/types/is-windows/tslint.json similarity index 100% rename from is-text-path/tslint.json rename to types/is-windows/tslint.json diff --git a/is/index.d.ts b/types/is/index.d.ts similarity index 100% rename from is/index.d.ts rename to types/is/index.d.ts diff --git a/is/is-tests.ts b/types/is/is-tests.ts similarity index 100% rename from is/is-tests.ts rename to types/is/is-tests.ts diff --git a/is/tsconfig.json b/types/is/tsconfig.json similarity index 100% rename from is/tsconfig.json rename to types/is/tsconfig.json diff --git a/isbn-utils/index.d.ts b/types/isbn-utils/index.d.ts similarity index 100% rename from isbn-utils/index.d.ts rename to types/isbn-utils/index.d.ts diff --git a/isbn-utils/isbn-utils-tests.ts b/types/isbn-utils/isbn-utils-tests.ts similarity index 100% rename from isbn-utils/isbn-utils-tests.ts rename to types/isbn-utils/isbn-utils-tests.ts diff --git a/isbn-utils/tsconfig.json b/types/isbn-utils/tsconfig.json similarity index 100% rename from isbn-utils/tsconfig.json rename to types/isbn-utils/tsconfig.json diff --git a/isbn-utils/tslint.json b/types/isbn-utils/tslint.json similarity index 100% rename from isbn-utils/tslint.json rename to types/isbn-utils/tslint.json diff --git a/iscroll/UNUSED_FILES.txt b/types/iscroll/UNUSED_FILES.txt similarity index 100% rename from iscroll/UNUSED_FILES.txt rename to types/iscroll/UNUSED_FILES.txt diff --git a/iscroll/index.d.ts b/types/iscroll/index.d.ts similarity index 100% rename from iscroll/index.d.ts rename to types/iscroll/index.d.ts diff --git a/iscroll/iscroll-lite.d.ts b/types/iscroll/iscroll-lite.d.ts similarity index 100% rename from iscroll/iscroll-lite.d.ts rename to types/iscroll/iscroll-lite.d.ts diff --git a/iscroll/iscroll-tests.ts b/types/iscroll/iscroll-tests.ts similarity index 100% rename from iscroll/iscroll-tests.ts rename to types/iscroll/iscroll-tests.ts diff --git a/iscroll/tsconfig.json b/types/iscroll/tsconfig.json similarity index 100% rename from iscroll/tsconfig.json rename to types/iscroll/tsconfig.json diff --git a/iscroll/v4/UNUSED_FILES.txt b/types/iscroll/v4/UNUSED_FILES.txt similarity index 100% rename from iscroll/v4/UNUSED_FILES.txt rename to types/iscroll/v4/UNUSED_FILES.txt diff --git a/iscroll/v4/index.d.ts b/types/iscroll/v4/index.d.ts similarity index 100% rename from iscroll/v4/index.d.ts rename to types/iscroll/v4/index.d.ts diff --git a/iscroll/v4/iscroll-lite.d.ts b/types/iscroll/v4/iscroll-lite.d.ts similarity index 100% rename from iscroll/v4/iscroll-lite.d.ts rename to types/iscroll/v4/iscroll-lite.d.ts diff --git a/iscroll/v4/iscroll-tests.ts b/types/iscroll/v4/iscroll-tests.ts similarity index 100% rename from iscroll/v4/iscroll-tests.ts rename to types/iscroll/v4/iscroll-tests.ts diff --git a/iscroll/v4/tsconfig.json b/types/iscroll/v4/tsconfig.json similarity index 100% rename from iscroll/v4/tsconfig.json rename to types/iscroll/v4/tsconfig.json diff --git a/iso8601-localizer/index.d.ts b/types/iso8601-localizer/index.d.ts similarity index 100% rename from iso8601-localizer/index.d.ts rename to types/iso8601-localizer/index.d.ts diff --git a/iso8601-localizer/iso8601-localizer-tests.ts b/types/iso8601-localizer/iso8601-localizer-tests.ts similarity index 100% rename from iso8601-localizer/iso8601-localizer-tests.ts rename to types/iso8601-localizer/iso8601-localizer-tests.ts diff --git a/iso8601-localizer/tsconfig.json b/types/iso8601-localizer/tsconfig.json similarity index 100% rename from iso8601-localizer/tsconfig.json rename to types/iso8601-localizer/tsconfig.json diff --git a/isomorphic-fetch/index.d.ts b/types/isomorphic-fetch/index.d.ts similarity index 100% rename from isomorphic-fetch/index.d.ts rename to types/isomorphic-fetch/index.d.ts diff --git a/isomorphic-fetch/isomorphic-fetch-tests.ts b/types/isomorphic-fetch/isomorphic-fetch-tests.ts similarity index 100% rename from isomorphic-fetch/isomorphic-fetch-tests.ts rename to types/isomorphic-fetch/isomorphic-fetch-tests.ts diff --git a/isomorphic-fetch/tsconfig.json b/types/isomorphic-fetch/tsconfig.json similarity index 100% rename from isomorphic-fetch/tsconfig.json rename to types/isomorphic-fetch/tsconfig.json diff --git a/istanbul-middleware/index.d.ts b/types/istanbul-middleware/index.d.ts similarity index 100% rename from istanbul-middleware/index.d.ts rename to types/istanbul-middleware/index.d.ts diff --git a/istanbul-middleware/istanbul-middleware-tests.ts b/types/istanbul-middleware/istanbul-middleware-tests.ts similarity index 100% rename from istanbul-middleware/istanbul-middleware-tests.ts rename to types/istanbul-middleware/istanbul-middleware-tests.ts diff --git a/istanbul-middleware/tsconfig.json b/types/istanbul-middleware/tsconfig.json similarity index 100% rename from istanbul-middleware/tsconfig.json rename to types/istanbul-middleware/tsconfig.json diff --git a/istanbul/index.d.ts b/types/istanbul/index.d.ts similarity index 100% rename from istanbul/index.d.ts rename to types/istanbul/index.d.ts diff --git a/istanbul/istanbul-tests.ts b/types/istanbul/istanbul-tests.ts similarity index 100% rename from istanbul/istanbul-tests.ts rename to types/istanbul/istanbul-tests.ts diff --git a/istanbul/tsconfig.json b/types/istanbul/tsconfig.json similarity index 100% rename from istanbul/tsconfig.json rename to types/istanbul/tsconfig.json diff --git a/ityped/index.d.ts b/types/ityped/index.d.ts similarity index 100% rename from ityped/index.d.ts rename to types/ityped/index.d.ts diff --git a/ityped/ityped-tests.ts b/types/ityped/ityped-tests.ts similarity index 100% rename from ityped/ityped-tests.ts rename to types/ityped/ityped-tests.ts diff --git a/ityped/tsconfig.json b/types/ityped/tsconfig.json similarity index 100% rename from ityped/tsconfig.json rename to types/ityped/tsconfig.json diff --git a/is-windows/tslint.json b/types/ityped/tslint.json similarity index 100% rename from is-windows/tslint.json rename to types/ityped/tslint.json diff --git a/ix.js/index.d.ts b/types/ix.js/index.d.ts similarity index 100% rename from ix.js/index.d.ts rename to types/ix.js/index.d.ts diff --git a/ix.js/l2o.d.ts b/types/ix.js/l2o.d.ts similarity index 100% rename from ix.js/l2o.d.ts rename to types/ix.js/l2o.d.ts diff --git a/ix.js/test/index.ts b/types/ix.js/test/index.ts similarity index 100% rename from ix.js/test/index.ts rename to types/ix.js/test/index.ts diff --git a/ix.js/test/l2o.ts b/types/ix.js/test/l2o.ts similarity index 100% rename from ix.js/test/l2o.ts rename to types/ix.js/test/l2o.ts diff --git a/ix.js/tsconfig.json b/types/ix.js/tsconfig.json similarity index 100% rename from ix.js/tsconfig.json rename to types/ix.js/tsconfig.json diff --git a/jade/index.d.ts b/types/jade/index.d.ts similarity index 100% rename from jade/index.d.ts rename to types/jade/index.d.ts diff --git a/jade/jade-tests.ts b/types/jade/jade-tests.ts similarity index 100% rename from jade/jade-tests.ts rename to types/jade/jade-tests.ts diff --git a/jade/tsconfig.json b/types/jade/tsconfig.json similarity index 100% rename from jade/tsconfig.json rename to types/jade/tsconfig.json diff --git a/jake/index.d.ts b/types/jake/index.d.ts similarity index 100% rename from jake/index.d.ts rename to types/jake/index.d.ts diff --git a/jake/jake-tests.ts b/types/jake/jake-tests.ts similarity index 100% rename from jake/jake-tests.ts rename to types/jake/jake-tests.ts diff --git a/jake/tsconfig.json b/types/jake/tsconfig.json similarity index 100% rename from jake/tsconfig.json rename to types/jake/tsconfig.json diff --git a/jalaali-js/index.d.ts b/types/jalaali-js/index.d.ts similarity index 100% rename from jalaali-js/index.d.ts rename to types/jalaali-js/index.d.ts diff --git a/jalaali-js/jalaali-js-tests.ts b/types/jalaali-js/jalaali-js-tests.ts similarity index 100% rename from jalaali-js/jalaali-js-tests.ts rename to types/jalaali-js/jalaali-js-tests.ts diff --git a/jalaali-js/tsconfig.json b/types/jalaali-js/tsconfig.json similarity index 100% rename from jalaali-js/tsconfig.json rename to types/jalaali-js/tsconfig.json diff --git a/ityped/tslint.json b/types/jalaali-js/tslint.json similarity index 100% rename from ityped/tslint.json rename to types/jalaali-js/tslint.json diff --git a/japanese-holidays/index.d.ts b/types/japanese-holidays/index.d.ts similarity index 100% rename from japanese-holidays/index.d.ts rename to types/japanese-holidays/index.d.ts diff --git a/japanese-holidays/japanese-holidays-tests.ts b/types/japanese-holidays/japanese-holidays-tests.ts similarity index 100% rename from japanese-holidays/japanese-holidays-tests.ts rename to types/japanese-holidays/japanese-holidays-tests.ts diff --git a/japanese-holidays/tsconfig.json b/types/japanese-holidays/tsconfig.json similarity index 100% rename from japanese-holidays/tsconfig.json rename to types/japanese-holidays/tsconfig.json diff --git a/jalaali-js/tslint.json b/types/japanese-holidays/tslint.json similarity index 100% rename from jalaali-js/tslint.json rename to types/japanese-holidays/tslint.json diff --git a/jasmine-ajax/index.d.ts b/types/jasmine-ajax/index.d.ts similarity index 98% rename from jasmine-ajax/index.d.ts rename to types/jasmine-ajax/index.d.ts index 6ec4020d00..4e227add1b 100644 --- a/jasmine-ajax/index.d.ts +++ b/types/jasmine-ajax/index.d.ts @@ -84,5 +84,5 @@ declare class MockAjax { } declare namespace jasmine { - export var Ajax: MockAjax; + const Ajax: MockAjax; } diff --git a/jasmine-ajax/jasmine-ajax-tests.ts b/types/jasmine-ajax/jasmine-ajax-tests.ts similarity index 89% rename from jasmine-ajax/jasmine-ajax-tests.ts rename to types/jasmine-ajax/jasmine-ajax-tests.ts index d94b205d13..96b7020577 100644 --- a/jasmine-ajax/jasmine-ajax-tests.ts +++ b/types/jasmine-ajax/jasmine-ajax-tests.ts @@ -5,12 +5,11 @@ /// - declare function getJasmineRequireObj(); describe('StubTracker', () => { beforeEach(() => { - var Constructor = getJasmineRequireObj().AjaxStubTracker(); + const Constructor = getJasmineRequireObj().AjaxStubTracker(); this.tracker = new Constructor(); }); @@ -19,21 +18,21 @@ describe('StubTracker', () => { }); it('finds an added stub', () => { - var stub = { matches: () => true }; + const stub = { matches: () => true }; this.tracker.addStub(stub); expect(this.tracker.findStub()).toBe(stub); }); it('skips an added stub that does not match', () => { - var stub = { matches: () => false }; + const stub = { matches: () => false }; this.tracker.addStub(stub); expect(this.tracker.findStub()).toBeUndefined(); }); it('passes url, data, and method to the stub', () => { - var stub = { matches: jasmine.createSpy('matches') }; + const stub = { matches: jasmine.createSpy('matches') }; this.tracker.addStub(stub); this.tracker.findStub('url', 'data', 'method'); @@ -42,7 +41,7 @@ describe('StubTracker', () => { }); it('can clear out all stubs', () => { - var stub = { matches: jasmine.createSpy('matches') }; + const stub = { matches: jasmine.createSpy('matches') }; this.tracker.addStub(stub); this.tracker.findStub(); @@ -58,9 +57,9 @@ describe('StubTracker', () => { }); it('uses the most recently added stub that matches', () => { - var stub1 = { matches: () => true }; - var stub2 = { matches: () => false }; - var stub3 = { matches: () => false }; + const stub1 = { matches: () => true }; + const stub2 = { matches: () => false }; + const stub3 = { matches: () => false }; this.tracker.addStub(stub1); this.tracker.addStub(stub2); @@ -74,9 +73,9 @@ describe('FakeRequest', () => { beforeEach(() => { this.requestTracker = { track: jasmine.createSpy('trackRequest') }; this.stubTracker = { findStub() { } }; - var parserInstance = this.parserInstance = jasmine.createSpy('parse'); + const parserInstance = this.parserInstance = jasmine.createSpy('parse'); this.paramParser = { findParser: () => ({ parse: parserInstance }) }; - var eventBus = this.fakeEventBus = { + const eventBus = this.fakeEventBus = { addEventListener: jasmine.createSpy('addEventListener'), trigger: jasmine.createSpy('trigger'), removeEventListener: jasmine.createSpy('removeEventListener') @@ -95,15 +94,15 @@ describe('FakeRequest', () => { }); it('extends from the global XMLHttpRequest', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); expect(request.extraAttribute).toEqual('my cool attribute'); }); it('skips XMLHttpRequest attributes that IE does not want copied', () => { // use real window here so it will correctly go red on IE if it breaks - var FakeRequest = getJasmineRequireObj().AjaxFakeRequest(this.eventBusFactory)(window, this.requestTracker, this.stubTracker, this.paramParser); - var request = new FakeRequest(); + const FakeRequest = getJasmineRequireObj().AjaxFakeRequest(this.eventBusFactory)(window, this.requestTracker, this.stubTracker, this.paramParser); + const request = new FakeRequest(); expect(request.responseBody).toBeUndefined(); expect(request.responseXML).toBeUndefined(); @@ -111,20 +110,20 @@ describe('FakeRequest', () => { }); it('tracks the request', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); expect(this.requestTracker.track).toHaveBeenCalledWith(request); }); it('has default request headers and override mime type', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); expect(request.requestHeaders).toEqual({}); expect(request.overriddenMimeType).toBeNull(); }); it('saves request information when opened', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open('METHOD', 'URL', 'ignore_async', 'USERNAME', 'PASSWORD'); expect(request.method).toEqual('METHOD'); @@ -134,7 +133,7 @@ describe('FakeRequest', () => { }); it('saves an override mime type', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.overrideMimeType('application/text; charset: utf-8'); @@ -142,7 +141,7 @@ describe('FakeRequest', () => { }); it('saves request headers', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.setRequestHeader('X-Header-1', 'value1'); request.setRequestHeader('X-Header-2', 'value2'); @@ -154,7 +153,7 @@ describe('FakeRequest', () => { }); it('combines request headers with the same header name', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.setRequestHeader('X-Header', 'value1'); request.setRequestHeader('X-Header', 'value2'); @@ -163,7 +162,7 @@ describe('FakeRequest', () => { }); it('finds the content-type request header', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.setRequestHeader('ContEnt-tYPe', 'application/text+xml'); @@ -248,9 +247,9 @@ describe('FakeRequest', () => { this.request.send(); this.fakeEventBus.trigger.calls.reset(); - var request = this.request; - var events = []; - var headers = [ + const request = this.request; + const events = []; + const headers = [ { name: 'X-Header', value: 'foo' } ]; @@ -284,7 +283,7 @@ describe('FakeRequest', () => { this.request.open(); this.request.send(); this.request.respondWith({}); - var request = this.request; + const request = this.request; expect(() => { request.responseTimeout(); @@ -295,7 +294,7 @@ describe('FakeRequest', () => { this.request.open(); this.request.send(); this.request.respondWith({}); - var request = this.request; + const request = this.request; expect(() => { request.respondWith({}); @@ -306,7 +305,7 @@ describe('FakeRequest', () => { this.request.open(); this.request.send(); this.request.respondWith({}); - var request = this.request; + const request = this.request; expect(() => { request.responseError({}); @@ -335,7 +334,7 @@ describe('FakeRequest', () => { this.request.ontimeout = jasmine.createSpy('timeout'); this.request.onloadend = jasmine.createSpy('loadend'); - var args = this.fakeEventBus.addEventListener.calls.allArgs(); + const args = this.fakeEventBus.addEventListener.calls.allArgs(); for (const [eventName, busCallback] of args) { busCallback(); expect(this.request['on' + eventName]).toHaveBeenCalled(); @@ -462,10 +461,10 @@ describe('FakeRequest', () => { }); it('ticks the jasmine clock on timeout', () => { - var clock = { tick: jasmine.createSpy('tick') }; + const clock = { tick: jasmine.createSpy('tick') }; spyOn(jasmine, 'clock').and.returnValue(clock); - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -475,13 +474,13 @@ describe('FakeRequest', () => { }); it('has an initial status of null', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); expect(request.status).toBeNull(); }); it('has an aborted status', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.abort(); @@ -490,7 +489,7 @@ describe('FakeRequest', () => { }); it('has a status from the response', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -501,7 +500,7 @@ describe('FakeRequest', () => { }); it('has a statusText from the response', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -512,7 +511,7 @@ describe('FakeRequest', () => { }); it('saves off any data sent to the server', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send('foo=bar&baz=quux'); @@ -520,7 +519,7 @@ describe('FakeRequest', () => { }); it('parses data sent to the server', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send('foo=bar&baz=quux'); @@ -530,7 +529,7 @@ describe('FakeRequest', () => { }); it('skips parsing if no data was sent', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -539,7 +538,7 @@ describe('FakeRequest', () => { }); it('saves responseText', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -549,7 +548,7 @@ describe('FakeRequest', () => { }); it('defaults responseText if none is given', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -559,7 +558,7 @@ describe('FakeRequest', () => { }); it('retrieves individual response headers', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -574,7 +573,7 @@ describe('FakeRequest', () => { }); it('retrieves individual response headers case-insensitively', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -589,7 +588,7 @@ describe('FakeRequest', () => { }); it('retrieves a combined response header', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -605,11 +604,11 @@ describe('FakeRequest', () => { }); it("doesn't pollute the response headers of other XHRs", () => { - var request1 = new this.FakeRequest(); + const request1 = new this.FakeRequest(); request1.open(); request1.send(); - var request2 = new this.FakeRequest(); + const request2 = new this.FakeRequest(); request2.open(); request2.send(); @@ -621,7 +620,7 @@ describe('FakeRequest', () => { }); it('retrieves all response headers', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -638,7 +637,7 @@ describe('FakeRequest', () => { }); it('sets the content-type header to the specified contentType when no other headers are supplied', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -649,7 +648,7 @@ describe('FakeRequest', () => { }); it('sets a default content-type header if no contentType and headers are supplied', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -660,7 +659,7 @@ describe('FakeRequest', () => { }); it('has no responseXML by default', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -670,7 +669,7 @@ describe('FakeRequest', () => { }); it('parses a text/xml document into responseXML', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -687,7 +686,7 @@ describe('FakeRequest', () => { }); it('parses an application/xml document into responseXML', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -704,7 +703,7 @@ describe('FakeRequest', () => { }); it('parses a custom blah+xml document into responseXML', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -721,7 +720,7 @@ describe('FakeRequest', () => { }); it('defaults the response attribute to the responseText', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -731,7 +730,7 @@ describe('FakeRequest', () => { }); it('has a text response when the responseType is blank', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -741,7 +740,7 @@ describe('FakeRequest', () => { }); it('has a text response when the responseType is text', () => { - var request = new this.FakeRequest(); + const request = new this.FakeRequest(); request.open(); request.send(); @@ -751,16 +750,15 @@ describe('FakeRequest', () => { }); }); - describe("Jasmine Mock Ajax (for toplevel)", () => { - var request, anotherRequest, response; - var success, error, complete; - var client, onreadystatechange; - var sharedContext: any = {}; - var fakeGlobal, mockAjax; + let request, anotherRequest, response; + let success, error, complete; + let client, onreadystatechange; + const sharedContext: any = {}; + let fakeGlobal, mockAjax; beforeEach(() => { - var fakeXMLHttpRequest = jasmine.createSpy('realFakeXMLHttpRequest'); + const fakeXMLHttpRequest = jasmine.createSpy('realFakeXMLHttpRequest'); fakeGlobal = { XMLHttpRequest: fakeXMLHttpRequest, DOMParser: window['DOMParser'], @@ -832,7 +830,6 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { }); describe("mockAjax.requests.mostRecent()", () => { - describe("when there is one request queued", () => { it("should return the request", () => { expect(mockAjax.requests.mostRecent()).toEqual(request); @@ -921,7 +918,7 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { client.send(); request = mockAjax.requests.mostRecent(); - var responseObject = { status: 200, statusText: "OK", contentType: "application/json", responseText: '{"foo":"bar"}', responseType: "json" }; + const responseObject = { status: 200, statusText: "OK", contentType: "application/json", responseText: '{"foo":"bar"}', responseType: "json" }; request.respondWith(responseObject); @@ -948,7 +945,7 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { }); it("should return a JavaScript object for XHR2 response", () => { - var responseText = sharedContext.responseText; + const responseText = sharedContext.responseText; expect(success.calls.mostRecent().args[0]).toEqual(responseText); expect(response.responseText).toEqual(responseText); @@ -967,7 +964,7 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { client.send(); request = mockAjax.requests.mostRecent(); - var responseObject = { status: 200, statusText: "OK", contentType: "application/json", responseText: '{"foo":"bar"}', responseType: 'json' }; + const responseObject = { status: 200, statusText: "OK", contentType: "application/json", responseText: '{"foo":"bar"}', responseType: 'json' }; request.respondWith(responseObject); @@ -982,7 +979,7 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { }); it("should return the provided override for the XHR2 response", () => { - var responseText = sharedContext.responseText; + const responseText = sharedContext.responseText; expect(response.responseText).toEqual(responseText); expect(response.response).toEqual({ foo: "bar" }); @@ -999,7 +996,7 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { client.send(); request = mockAjax.requests.mostRecent(); - var responseObject = { + const responseObject = { status: 200, statusText: "OK", responseText: '["foo"]', responseHeaders: { 'X-Header1': 'header 1 value', 'X-Header2': 'header 2 value', @@ -1033,7 +1030,7 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { client.send(); request = mockAjax.requests.mostRecent(); - var responseObject = { + const responseObject = { status: 200, statusText: "OK", responseText: '["foo"]', responseHeaders: [ { name: 'X-Header', value: 'header value 1' }, { name: 'X-Header', value: 'header value 2' } @@ -1201,10 +1198,9 @@ describe("Jasmine Mock Ajax (for toplevel)", () => { }); }); - function sharedAjaxResponseBehaviorForZepto_Success(context) { describe("the success response", () => { - var xhr; + let xhr; beforeEach(() => { xhr = context.responseCallback.calls.mostRecent().args[2]; }); @@ -1218,7 +1214,7 @@ function sharedAjaxResponseBehaviorForZepto_Success(context) { }); it("should have the expected xhr2 response", () => { - var expected = context.response || context.responseType === 'json' ? JSON.parse(context.responseText) : context.responseText; + const expected = context.response || context.responseType === 'json' ? JSON.parse(context.responseText) : context.responseText; expect(xhr.response).toEqual(expected); }); @@ -1234,7 +1230,7 @@ function sharedAjaxResponseBehaviorForZepto_Success(context) { function sharedAjaxResponseBehaviorForZepto_Failure(context) { describe("the failure response", () => { - var xhr; + let xhr; beforeEach(() => { xhr = context.responseCallback.calls.mostRecent().args[0]; }); @@ -1248,7 +1244,7 @@ function sharedAjaxResponseBehaviorForZepto_Failure(context) { }); it("should have the expected xhr2 response", () => { - var expected = context.response || xhr.responseType === 'json' ? JSON.parse(xhr.responseText) : xhr.responseText; + const expected = context.response || xhr.responseType === 'json' ? JSON.parse(xhr.responseText) : xhr.responseText; expect(xhr.response).toEqual(expected); }); @@ -1264,13 +1260,13 @@ function sharedAjaxResponseBehaviorForZepto_Failure(context) { describe('ParamParser', () => { beforeEach(() => { - var Constructor = getJasmineRequireObj().AjaxParamParser(); + const Constructor = getJasmineRequireObj().AjaxParamParser(); expect(Constructor).toEqual(jasmine.any(Function)); this.parser = new Constructor(); }); it('has a default parser', () => { - var parser = this.parser.findParser({ contentType: () => { } }), + const parser = this.parser.findParser({ contentType: () => { } }), parsed = parser.parse('3+stooges=shemp&3+stooges=larry%20%26%20moe%20%26%20curly&some%3Dthing=else+entirely'); expect(parsed).toEqual({ @@ -1280,7 +1276,7 @@ describe('ParamParser', () => { }); it('should detect and parse json', () => { - var data = { + const data = { foo: 'bar', baz: ['q', 'u', 'u', 'x'], nested: { @@ -1296,7 +1292,7 @@ describe('ParamParser', () => { }); it('should parse json with further qualifiers on content-type', () => { - var data = { + const data = { foo: 'bar', baz: ['q', 'u', 'u', 'x'], nested: { @@ -1312,14 +1308,14 @@ describe('ParamParser', () => { }); it('should have custom parsers take precedence', () => { - var custom = { + const custom = { test: jasmine.createSpy('test').and.returnValue(true), parse: jasmine.createSpy('parse').and.returnValue('parsedFormat') }; this.parser.add(custom); - var parser = this.parser.findParser({ contentType: () => { } }), + const parser = this.parser.findParser({ contentType: () => { } }), parsed = parser.parse('custom_format'); expect(parsed).toEqual('parsedFormat'); @@ -1328,14 +1324,14 @@ describe('ParamParser', () => { }); it('should skip custom parsers that do not match', () => { - var custom = { + const custom = { test: jasmine.createSpy('test').and.returnValue(false), parse: jasmine.createSpy('parse').and.returnValue('parsedFormat') }; this.parser.add(custom); - var parser = this.parser.findParser({ contentType: () => { } }), + const parser = this.parser.findParser({ contentType: () => { } }), parsed = parser.parse('custom_format'); expect(parsed).toEqual({ custom_format: ['undefined'] }); @@ -1344,14 +1340,14 @@ describe('ParamParser', () => { }); it('removes custom parsers when reset', () => { - var custom = { + const custom = { test: jasmine.createSpy('test').and.returnValue(true), parse: jasmine.createSpy('parse').and.returnValue('parsedFormat') }; this.parser.add(custom); - var parser = this.parser.findParser({ contentType: () => { } }), + let parser = this.parser.findParser({ contentType: () => { } }), parsed = parser.parse('custom_format'); expect(parsed).toEqual('parsedFormat'); @@ -1389,31 +1385,31 @@ describe('RequestStub', () => { }); it('matches just by exact url', () => { - var stub = new this.RequestStub('www.example.com/foo'); + const stub = new this.RequestStub('www.example.com/foo'); expect(stub)['toMatchRequest']('www.example.com/foo'); }); it('does not match if the url differs', () => { - var stub = new this.RequestStub('www.example.com/foo'); + const stub = new this.RequestStub('www.example.com/foo'); expect(stub).not['toMatchRequest']('www.example.com/bar'); }); it('matches unordered query params', () => { - var stub = new this.RequestStub('www.example.com?foo=bar&baz=quux'); + const stub = new this.RequestStub('www.example.com?foo=bar&baz=quux'); expect(stub)['toMatchRequest']('www.example.com?baz=quux&foo=bar'); }); it('requires all specified query params to be there', () => { - var stub = new this.RequestStub('www.example.com?foo=bar&baz=quux'); + const stub = new this.RequestStub('www.example.com?foo=bar&baz=quux'); expect(stub).not['toMatchRequest']('www.example.com?foo=bar'); }); it('can match the url with a RegExp', () => { - var stub = new this.RequestStub(/ba[rz]/); + const stub = new this.RequestStub(/ba[rz]/); expect(stub)['toMatchRequest']('bar'); expect(stub)['toMatchRequest']('baz'); @@ -1421,7 +1417,7 @@ describe('RequestStub', () => { }); it('requires the method to match if supplied', () => { - var stub = new this.RequestStub('www.example.com/foo', null, 'POST'); + const stub = new this.RequestStub('www.example.com/foo', null, 'POST'); expect(stub).not['toMatchRequest']('www.example.com/foo'); expect(stub).not['toMatchRequest']('www.example.com/foo', null, 'GET'); @@ -1429,7 +1425,7 @@ describe('RequestStub', () => { }); it('requires the data submitted to match if supplied', () => { - var stub = new this.RequestStub('/foo', 'foo=bar&baz=quux'); + const stub = new this.RequestStub('/foo', 'foo=bar&baz=quux'); expect(stub)['toMatchRequest']('/foo', 'baz=quux&foo=bar'); expect(stub).not['toMatchRequest']('/foo', 'foo=bar'); @@ -1438,7 +1434,7 @@ describe('RequestStub', () => { describe('RequestTracker', () => { beforeEach(() => { - var Constructor = getJasmineRequireObj().AjaxRequestTracker(); + const Constructor = getJasmineRequireObj().AjaxRequestTracker(); this.tracker = new Constructor(); }); @@ -1511,7 +1507,7 @@ describe('RequestTracker', () => { this.tracker.track({ url: 'bar' }); this.tracker.track({ url: 'baz' }); - var func = request => request.url === 'bar'; + const func = request => request.url === 'bar'; expect(this.tracker.filter(func)).toEqual([{ url: 'bar' }]); }); @@ -1527,7 +1523,7 @@ describe('EventBus', () => { }); it('calls an event listener', () => { - var callback = jasmine.createSpy('callback'); + const callback = jasmine.createSpy('callback'); this.bus.addEventListener('foo', callback); this.bus.trigger('foo'); @@ -1536,7 +1532,7 @@ describe('EventBus', () => { }); it('calls an event listener with additional arguments', () => { - var callback = jasmine.createSpy('callback'); + const callback = jasmine.createSpy('callback'); this.bus.addEventListener('foo', callback); this.bus.trigger('foo', 'bar'); @@ -1545,7 +1541,7 @@ describe('EventBus', () => { }); it('only triggers callbacks for the specified event', () => { - var fooCallback = jasmine.createSpy('foo'), + const fooCallback = jasmine.createSpy('foo'), barCallback = jasmine.createSpy('bar'); this.bus.addEventListener('foo', fooCallback); @@ -1558,8 +1554,8 @@ describe('EventBus', () => { }); it('calls all the callbacks for the specified event', () => { - var callback1 = jasmine.createSpy('callback'); - var callback2 = jasmine.createSpy('otherCallback'); + const callback1 = jasmine.createSpy('callback'); + const callback2 = jasmine.createSpy('otherCallback'); this.bus.addEventListener('foo', callback1); this.bus.addEventListener('foo', callback2); @@ -1571,14 +1567,14 @@ describe('EventBus', () => { }); it('works if there are no callbacks for the event', () => { - var bus = this.bus; + const bus = this.bus; expect(() => { bus.trigger('notActuallyThere'); }).not.toThrow(); }); it('does not call listeners that have been removed', () => { - var callback = jasmine.createSpy('callback'); + const callback = jasmine.createSpy('callback'); this.bus.addEventListener('foo', callback); this.bus.removeEventListener('foo', callback); @@ -1588,8 +1584,8 @@ describe('EventBus', () => { }); it('only removes the specified callback', () => { - var callback1 = jasmine.createSpy('callback'); - var callback2 = jasmine.createSpy('otherCallback'); + const callback1 = jasmine.createSpy('callback'); + const callback2 = jasmine.createSpy('otherCallback'); this.bus.addEventListener('foo', callback1); this.bus.addEventListener('foo', callback2); @@ -1603,12 +1599,12 @@ describe('EventBus', () => { }); describe("Webmock style mocking", () => { - var successSpy, errorSpy, response, fakeGlobal, mockAjax; + let successSpy, response, fakeGlobal, mockAjax; - var sendRequest = function(fakeGlobal, url?, method?) { + const sendRequest = function(fakeGlobal, url?, method?) { url = url || "http://example.com/someApi"; method = method || 'GET'; - var xhr = new fakeGlobal.XMLHttpRequest(); + const xhr = new fakeGlobal.XMLHttpRequest(); xhr.onreadystatechange = args => { if (this.readyState === (this.DONE || 4)) { // IE 8 doesn't support DONE response = this; @@ -1681,15 +1677,15 @@ describe("Webmock style mocking", () => { }); describe("withMock", () => { - var sendRequest = fakeGlobal => { - var xhr = new fakeGlobal.XMLHttpRequest(); + const sendRequest = fakeGlobal => { + const xhr = new fakeGlobal.XMLHttpRequest(); xhr.open("GET", "http://example.com/someApi"); xhr.send(); }; it("installs the mock for passed in function, and uninstalls when complete", () => { - var xmlHttpRequest = jasmine.createSpyObj('XMLHttpRequest', ['open', 'send']), + const xmlHttpRequest = jasmine.createSpyObj('XMLHttpRequest', ['open', 'send']), xmlHttpRequestCtor = spyOn(window as any, 'XMLHttpRequest').and.returnValue(xmlHttpRequest), fakeGlobal = { XMLHttpRequest: xmlHttpRequestCtor }, mockAjax = new MockAjax(fakeGlobal); @@ -1704,7 +1700,7 @@ describe("withMock", () => { }); it("properly uninstalls when the passed in function throws", () => { - var xmlHttpRequest = jasmine.createSpyObj('XMLHttpRequest', ['open', 'send']), + const xmlHttpRequest = jasmine.createSpyObj('XMLHttpRequest', ['open', 'send']), xmlHttpRequestCtor = spyOn(window as any, 'XMLHttpRequest').and.returnValue(xmlHttpRequest), fakeGlobal = { XMLHttpRequest: xmlHttpRequestCtor }, mockAjax = new MockAjax(fakeGlobal); @@ -1722,7 +1718,7 @@ describe("withMock", () => { describe("mockAjax", () => { it("throws an error if installed multiple times", () => { - var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), + const fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new MockAjax(fakeGlobal); @@ -1735,7 +1731,7 @@ describe("mockAjax", () => { }); it("does not throw an error if uninstalled between installs", () => { - var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), + const fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new MockAjax(fakeGlobal); @@ -1749,7 +1745,7 @@ describe("mockAjax", () => { }); it("does not replace XMLHttpRequest until it is installed", () => { - var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), + const fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new MockAjax(fakeGlobal); @@ -1763,7 +1759,7 @@ describe("mockAjax", () => { }); it("replaces the global XMLHttpRequest on uninstall", () => { - var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), + const fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new MockAjax(fakeGlobal); @@ -1775,7 +1771,7 @@ describe("mockAjax", () => { }); it("clears requests and stubs upon uninstall", () => { - var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), + const fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new MockAjax(fakeGlobal); @@ -1794,24 +1790,24 @@ describe("mockAjax", () => { }); it("allows the httpRequest to be retrieved", () => { - var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), + const fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new MockAjax(fakeGlobal); mockAjax.install(); - var request = new ( fakeGlobal.XMLHttpRequest)(); + const request = new ( fakeGlobal.XMLHttpRequest)(); expect(mockAjax.requests.count()).toBe(1); expect(mockAjax.requests.mostRecent()).toBe(request); }); it("allows the httpRequests to be cleared", () => { - var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), + const fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new MockAjax(fakeGlobal); mockAjax.install(); - var request = new ( fakeGlobal.XMLHttpRequest)(); + const request = new ( fakeGlobal.XMLHttpRequest)(); expect(mockAjax.requests.mostRecent()).toBe(request); mockAjax.requests.reset(); diff --git a/jasmine-ajax/tsconfig.json b/types/jasmine-ajax/tsconfig.json similarity index 100% rename from jasmine-ajax/tsconfig.json rename to types/jasmine-ajax/tsconfig.json diff --git a/jasmine-ajax/tslint.json b/types/jasmine-ajax/tslint.json similarity index 100% rename from jasmine-ajax/tslint.json rename to types/jasmine-ajax/tslint.json diff --git a/jasmine-data_driven_tests/index.d.ts b/types/jasmine-data_driven_tests/index.d.ts similarity index 100% rename from jasmine-data_driven_tests/index.d.ts rename to types/jasmine-data_driven_tests/index.d.ts diff --git a/jasmine-data_driven_tests/jasmine-data_driven_tests-tests.ts b/types/jasmine-data_driven_tests/jasmine-data_driven_tests-tests.ts similarity index 100% rename from jasmine-data_driven_tests/jasmine-data_driven_tests-tests.ts rename to types/jasmine-data_driven_tests/jasmine-data_driven_tests-tests.ts diff --git a/jasmine-data_driven_tests/tsconfig.json b/types/jasmine-data_driven_tests/tsconfig.json similarity index 100% rename from jasmine-data_driven_tests/tsconfig.json rename to types/jasmine-data_driven_tests/tsconfig.json diff --git a/japanese-holidays/tslint.json b/types/jasmine-data_driven_tests/tslint.json similarity index 100% rename from japanese-holidays/tslint.json rename to types/jasmine-data_driven_tests/tslint.json diff --git a/jasmine-es6-promise-matchers/index.d.ts b/types/jasmine-es6-promise-matchers/index.d.ts similarity index 100% rename from jasmine-es6-promise-matchers/index.d.ts rename to types/jasmine-es6-promise-matchers/index.d.ts diff --git a/jasmine-es6-promise-matchers/jasmine-es6-promise-matchers-tests.ts b/types/jasmine-es6-promise-matchers/jasmine-es6-promise-matchers-tests.ts similarity index 100% rename from jasmine-es6-promise-matchers/jasmine-es6-promise-matchers-tests.ts rename to types/jasmine-es6-promise-matchers/jasmine-es6-promise-matchers-tests.ts diff --git a/jasmine-es6-promise-matchers/tsconfig.json b/types/jasmine-es6-promise-matchers/tsconfig.json similarity index 100% rename from jasmine-es6-promise-matchers/tsconfig.json rename to types/jasmine-es6-promise-matchers/tsconfig.json diff --git a/jasmine-expect/index.d.ts b/types/jasmine-expect/index.d.ts similarity index 100% rename from jasmine-expect/index.d.ts rename to types/jasmine-expect/index.d.ts diff --git a/jasmine-expect/jasmine-expect-tests.ts b/types/jasmine-expect/jasmine-expect-tests.ts similarity index 100% rename from jasmine-expect/jasmine-expect-tests.ts rename to types/jasmine-expect/jasmine-expect-tests.ts diff --git a/jasmine-expect/tsconfig.json b/types/jasmine-expect/tsconfig.json similarity index 100% rename from jasmine-expect/tsconfig.json rename to types/jasmine-expect/tsconfig.json diff --git a/jasmine-fixture/index.d.ts b/types/jasmine-fixture/index.d.ts similarity index 100% rename from jasmine-fixture/index.d.ts rename to types/jasmine-fixture/index.d.ts diff --git a/jasmine-fixture/jasmine-fixture-tests.ts b/types/jasmine-fixture/jasmine-fixture-tests.ts similarity index 100% rename from jasmine-fixture/jasmine-fixture-tests.ts rename to types/jasmine-fixture/jasmine-fixture-tests.ts diff --git a/jasmine-fixture/tsconfig.json b/types/jasmine-fixture/tsconfig.json similarity index 100% rename from jasmine-fixture/tsconfig.json rename to types/jasmine-fixture/tsconfig.json diff --git a/jasmine-data_driven_tests/tslint.json b/types/jasmine-fixture/tslint.json similarity index 100% rename from jasmine-data_driven_tests/tslint.json rename to types/jasmine-fixture/tslint.json diff --git a/jasmine-jquery/index.d.ts b/types/jasmine-jquery/index.d.ts similarity index 100% rename from jasmine-jquery/index.d.ts rename to types/jasmine-jquery/index.d.ts diff --git a/jasmine-jquery/jasmine-jquery-tests.ts b/types/jasmine-jquery/jasmine-jquery-tests.ts similarity index 100% rename from jasmine-jquery/jasmine-jquery-tests.ts rename to types/jasmine-jquery/jasmine-jquery-tests.ts diff --git a/jasmine-jquery/tsconfig.json b/types/jasmine-jquery/tsconfig.json similarity index 100% rename from jasmine-jquery/tsconfig.json rename to types/jasmine-jquery/tsconfig.json diff --git a/jasmine-matchers/index.d.ts b/types/jasmine-matchers/index.d.ts similarity index 100% rename from jasmine-matchers/index.d.ts rename to types/jasmine-matchers/index.d.ts diff --git a/jasmine-matchers/jasmine-matchers-tests.ts b/types/jasmine-matchers/jasmine-matchers-tests.ts similarity index 100% rename from jasmine-matchers/jasmine-matchers-tests.ts rename to types/jasmine-matchers/jasmine-matchers-tests.ts diff --git a/jasmine-matchers/tsconfig.json b/types/jasmine-matchers/tsconfig.json similarity index 100% rename from jasmine-matchers/tsconfig.json rename to types/jasmine-matchers/tsconfig.json diff --git a/jasmine-node/index.d.ts b/types/jasmine-node/index.d.ts similarity index 100% rename from jasmine-node/index.d.ts rename to types/jasmine-node/index.d.ts diff --git a/jasmine-node/jasmine-node-tests.ts b/types/jasmine-node/jasmine-node-tests.ts similarity index 100% rename from jasmine-node/jasmine-node-tests.ts rename to types/jasmine-node/jasmine-node-tests.ts diff --git a/jasmine-node/tsconfig.json b/types/jasmine-node/tsconfig.json similarity index 100% rename from jasmine-node/tsconfig.json rename to types/jasmine-node/tsconfig.json diff --git a/jasmine-promise-matchers/index.d.ts b/types/jasmine-promise-matchers/index.d.ts similarity index 100% rename from jasmine-promise-matchers/index.d.ts rename to types/jasmine-promise-matchers/index.d.ts diff --git a/jasmine-promise-matchers/jasmine-promise-matchers-tests.ts b/types/jasmine-promise-matchers/jasmine-promise-matchers-tests.ts similarity index 100% rename from jasmine-promise-matchers/jasmine-promise-matchers-tests.ts rename to types/jasmine-promise-matchers/jasmine-promise-matchers-tests.ts diff --git a/jasmine-promise-matchers/tsconfig.json b/types/jasmine-promise-matchers/tsconfig.json similarity index 100% rename from jasmine-promise-matchers/tsconfig.json rename to types/jasmine-promise-matchers/tsconfig.json diff --git a/jasmine/index.d.ts b/types/jasmine/index.d.ts similarity index 100% rename from jasmine/index.d.ts rename to types/jasmine/index.d.ts diff --git a/jasmine/jasmine-tests.ts b/types/jasmine/jasmine-tests.ts similarity index 100% rename from jasmine/jasmine-tests.ts rename to types/jasmine/jasmine-tests.ts diff --git a/jasmine/tsconfig.json b/types/jasmine/tsconfig.json similarity index 100% rename from jasmine/tsconfig.json rename to types/jasmine/tsconfig.json diff --git a/jasmine/v1/index.d.ts b/types/jasmine/v1/index.d.ts similarity index 100% rename from jasmine/v1/index.d.ts rename to types/jasmine/v1/index.d.ts diff --git a/jasmine/v1/jasmine-tests.ts b/types/jasmine/v1/jasmine-tests.ts similarity index 100% rename from jasmine/v1/jasmine-tests.ts rename to types/jasmine/v1/jasmine-tests.ts diff --git a/jasmine/v1/tsconfig.json b/types/jasmine/v1/tsconfig.json similarity index 100% rename from jasmine/v1/tsconfig.json rename to types/jasmine/v1/tsconfig.json diff --git a/jasminewd2/index.d.ts b/types/jasminewd2/index.d.ts similarity index 100% rename from jasminewd2/index.d.ts rename to types/jasminewd2/index.d.ts diff --git a/jasminewd2/jasminewd2-tests.ts b/types/jasminewd2/jasminewd2-tests.ts similarity index 100% rename from jasminewd2/jasminewd2-tests.ts rename to types/jasminewd2/jasminewd2-tests.ts diff --git a/jasminewd2/tsconfig.json b/types/jasminewd2/tsconfig.json similarity index 100% rename from jasminewd2/tsconfig.json rename to types/jasminewd2/tsconfig.json diff --git a/jasminewd2/tslint.json b/types/jasminewd2/tslint.json similarity index 100% rename from jasminewd2/tslint.json rename to types/jasminewd2/tslint.json diff --git a/java-applet/index.d.ts b/types/java-applet/index.d.ts similarity index 100% rename from java-applet/index.d.ts rename to types/java-applet/index.d.ts diff --git a/java-applet/java-applet-tests.ts b/types/java-applet/java-applet-tests.ts similarity index 100% rename from java-applet/java-applet-tests.ts rename to types/java-applet/java-applet-tests.ts diff --git a/java-applet/tsconfig.json b/types/java-applet/tsconfig.json similarity index 100% rename from java-applet/tsconfig.json rename to types/java-applet/tsconfig.json diff --git a/java/index.d.ts b/types/java/index.d.ts similarity index 100% rename from java/index.d.ts rename to types/java/index.d.ts diff --git a/java/java-tests.ts b/types/java/java-tests.ts similarity index 100% rename from java/java-tests.ts rename to types/java/java-tests.ts diff --git a/java/tsconfig.json b/types/java/tsconfig.json similarity index 100% rename from java/tsconfig.json rename to types/java/tsconfig.json diff --git a/javascript-astar/index.d.ts b/types/javascript-astar/index.d.ts similarity index 100% rename from javascript-astar/index.d.ts rename to types/javascript-astar/index.d.ts diff --git a/javascript-astar/javascript-astar-tests.ts b/types/javascript-astar/javascript-astar-tests.ts similarity index 100% rename from javascript-astar/javascript-astar-tests.ts rename to types/javascript-astar/javascript-astar-tests.ts diff --git a/javascript-astar/tsconfig.json b/types/javascript-astar/tsconfig.json similarity index 100% rename from javascript-astar/tsconfig.json rename to types/javascript-astar/tsconfig.json diff --git a/javascript-bignum/index.d.ts b/types/javascript-bignum/index.d.ts similarity index 100% rename from javascript-bignum/index.d.ts rename to types/javascript-bignum/index.d.ts diff --git a/javascript-bignum/javascript-bignum-tests.ts b/types/javascript-bignum/javascript-bignum-tests.ts similarity index 100% rename from javascript-bignum/javascript-bignum-tests.ts rename to types/javascript-bignum/javascript-bignum-tests.ts diff --git a/javascript-bignum/tsconfig.json b/types/javascript-bignum/tsconfig.json similarity index 100% rename from javascript-bignum/tsconfig.json rename to types/javascript-bignum/tsconfig.json diff --git a/javascript-obfuscator/index.d.ts b/types/javascript-obfuscator/index.d.ts similarity index 100% rename from javascript-obfuscator/index.d.ts rename to types/javascript-obfuscator/index.d.ts diff --git a/javascript-obfuscator/javascript-obfuscator-tests.ts b/types/javascript-obfuscator/javascript-obfuscator-tests.ts similarity index 100% rename from javascript-obfuscator/javascript-obfuscator-tests.ts rename to types/javascript-obfuscator/javascript-obfuscator-tests.ts diff --git a/javascript-obfuscator/tsconfig.json b/types/javascript-obfuscator/tsconfig.json similarity index 100% rename from javascript-obfuscator/tsconfig.json rename to types/javascript-obfuscator/tsconfig.json diff --git a/jbinary/index.d.ts b/types/jbinary/index.d.ts similarity index 100% rename from jbinary/index.d.ts rename to types/jbinary/index.d.ts diff --git a/jbinary/jbinary-tests.ts b/types/jbinary/jbinary-tests.ts similarity index 100% rename from jbinary/jbinary-tests.ts rename to types/jbinary/jbinary-tests.ts diff --git a/jbinary/tsconfig.json b/types/jbinary/tsconfig.json similarity index 100% rename from jbinary/tsconfig.json rename to types/jbinary/tsconfig.json diff --git a/jcanvas/index.d.ts b/types/jcanvas/index.d.ts similarity index 100% rename from jcanvas/index.d.ts rename to types/jcanvas/index.d.ts diff --git a/jcanvas/jcanvas-tests.ts b/types/jcanvas/jcanvas-tests.ts similarity index 100% rename from jcanvas/jcanvas-tests.ts rename to types/jcanvas/jcanvas-tests.ts diff --git a/jcanvas/tsconfig.json b/types/jcanvas/tsconfig.json similarity index 100% rename from jcanvas/tsconfig.json rename to types/jcanvas/tsconfig.json diff --git a/jdataview/index.d.ts b/types/jdataview/index.d.ts similarity index 100% rename from jdataview/index.d.ts rename to types/jdataview/index.d.ts diff --git a/jdataview/jdataview-tests.ts b/types/jdataview/jdataview-tests.ts similarity index 100% rename from jdataview/jdataview-tests.ts rename to types/jdataview/jdataview-tests.ts diff --git a/jdataview/tsconfig.json b/types/jdataview/tsconfig.json similarity index 100% rename from jdataview/tsconfig.json rename to types/jdataview/tsconfig.json diff --git a/jdenticon/index.d.ts b/types/jdenticon/index.d.ts similarity index 100% rename from jdenticon/index.d.ts rename to types/jdenticon/index.d.ts diff --git a/jdenticon/jdenticon-tests.ts b/types/jdenticon/jdenticon-tests.ts similarity index 100% rename from jdenticon/jdenticon-tests.ts rename to types/jdenticon/jdenticon-tests.ts diff --git a/jdenticon/tsconfig.json b/types/jdenticon/tsconfig.json similarity index 100% rename from jdenticon/tsconfig.json rename to types/jdenticon/tsconfig.json diff --git a/jee-jsf/index.d.ts b/types/jee-jsf/index.d.ts similarity index 100% rename from jee-jsf/index.d.ts rename to types/jee-jsf/index.d.ts diff --git a/jee-jsf/jee-jsf-tests.ts b/types/jee-jsf/jee-jsf-tests.ts similarity index 100% rename from jee-jsf/jee-jsf-tests.ts rename to types/jee-jsf/jee-jsf-tests.ts diff --git a/jee-jsf/tsconfig.json b/types/jee-jsf/tsconfig.json similarity index 100% rename from jee-jsf/tsconfig.json rename to types/jee-jsf/tsconfig.json diff --git a/jenkins/index.d.ts b/types/jenkins/index.d.ts similarity index 99% rename from jenkins/index.d.ts rename to types/jenkins/index.d.ts index 5db91893a6..027cc8e0cf 100644 --- a/jenkins/index.d.ts +++ b/types/jenkins/index.d.ts @@ -65,7 +65,7 @@ declare namespace create { }; } - export interface JenkinsPromisifiedAPI { + interface JenkinsPromisifiedAPI { info(): Promise; build: { get(name: string, n: number): Promise; diff --git a/jenkins/jenkins-tests.ts b/types/jenkins/jenkins-tests.ts similarity index 96% rename from jenkins/jenkins-tests.ts rename to types/jenkins/jenkins-tests.ts index 0b409a4b87..98b30d4b73 100644 --- a/jenkins/jenkins-tests.ts +++ b/types/jenkins/jenkins-tests.ts @@ -20,7 +20,7 @@ jenkins.build.log('example', 1, (err, data) => { console.log('log', data); }); -var log = jenkins.build.logStream('example', 1); +const log = jenkins.build.logStream('example', 1); log.on('data', (text: string) => { process.stdout.write(text); @@ -202,4 +202,4 @@ jenkins.view.remove('example', 'jobExample', (err) => { const jenkins2 = J({ baseUrl: 'http://user:pass@localhost:8080', crumbIssuer: true, promisify: true }); jenkins2.info().then(info => console.log(info)); -jenkins2.job.exists('example').then(exists => { var b: boolean = exists; }); +jenkins2.job.exists('example').then(exists => { const b: boolean = exists; }); diff --git a/jenkins/tsconfig.json b/types/jenkins/tsconfig.json similarity index 100% rename from jenkins/tsconfig.json rename to types/jenkins/tsconfig.json diff --git a/jasmine-fixture/tslint.json b/types/jenkins/tslint.json similarity index 100% rename from jasmine-fixture/tslint.json rename to types/jenkins/tslint.json diff --git a/jest/index.d.ts b/types/jest/index.d.ts old mode 100755 new mode 100644 similarity index 100% rename from jest/index.d.ts rename to types/jest/index.d.ts diff --git a/jest/jest-tests.ts b/types/jest/jest-tests.ts similarity index 100% rename from jest/jest-tests.ts rename to types/jest/jest-tests.ts diff --git a/jest/tsconfig.json b/types/jest/tsconfig.json similarity index 100% rename from jest/tsconfig.json rename to types/jest/tsconfig.json diff --git a/jest/v16/index.d.ts b/types/jest/v16/index.d.ts similarity index 100% rename from jest/v16/index.d.ts rename to types/jest/v16/index.d.ts diff --git a/jest/v16/jest-tests.ts b/types/jest/v16/jest-tests.ts similarity index 100% rename from jest/v16/jest-tests.ts rename to types/jest/v16/jest-tests.ts diff --git a/jest/v16/tsconfig.json b/types/jest/v16/tsconfig.json similarity index 100% rename from jest/v16/tsconfig.json rename to types/jest/v16/tsconfig.json diff --git a/jfp/index.d.ts b/types/jfp/index.d.ts similarity index 100% rename from jfp/index.d.ts rename to types/jfp/index.d.ts diff --git a/jfp/jfp-tests.ts b/types/jfp/jfp-tests.ts similarity index 100% rename from jfp/jfp-tests.ts rename to types/jfp/jfp-tests.ts diff --git a/jfp/tsconfig.json b/types/jfp/tsconfig.json similarity index 100% rename from jfp/tsconfig.json rename to types/jfp/tsconfig.json diff --git a/jfs/index.d.ts b/types/jfs/index.d.ts similarity index 90% rename from jfs/index.d.ts rename to types/jfs/index.d.ts index ba6edb26bc..8383f58981 100644 --- a/jfs/index.d.ts +++ b/types/jfs/index.d.ts @@ -7,21 +7,21 @@ declare const JsonFileStore: JsonFileStore.JsonFileStore; declare namespace JsonFileStore { - export interface Storable { + interface Storable { [key: string]: any; } - export interface Options { + interface Options { type?: 'single' | 'memory'; pretty?: boolean; saveId?: boolean | string; } - export interface JsonFileStore { + interface JsonFileStore { new (name?: string, opts?: Options): Instance; } - export interface Instance { + interface Instance { save(id: K, o: V, cb?: (err?: Error, id?: K) => void): void; save(o: V, cb?: (err?: Error, id?: string) => void): void; diff --git a/jfs/jfs-tests.ts b/types/jfs/jfs-tests.ts similarity index 96% rename from jfs/jfs-tests.ts rename to types/jfs/jfs-tests.ts index d53d1305a2..e736e3b668 100644 --- a/jfs/jfs-tests.ts +++ b/types/jfs/jfs-tests.ts @@ -33,7 +33,7 @@ db.all((err, objs) => { }); // get all synchronously -var objs = db.allSync(); +const objs = db.allSync(); // delete by ID db.delete('foo', err => { diff --git a/jfs/tsconfig.json b/types/jfs/tsconfig.json similarity index 100% rename from jfs/tsconfig.json rename to types/jfs/tsconfig.json diff --git a/jenkins/tslint.json b/types/jfs/tslint.json similarity index 100% rename from jenkins/tslint.json rename to types/jfs/tslint.json diff --git a/jimp/index.d.ts b/types/jimp/index.d.ts similarity index 100% rename from jimp/index.d.ts rename to types/jimp/index.d.ts diff --git a/jimp/jimp-tests.ts b/types/jimp/jimp-tests.ts similarity index 100% rename from jimp/jimp-tests.ts rename to types/jimp/jimp-tests.ts diff --git a/jimp/tsconfig.json b/types/jimp/tsconfig.json similarity index 100% rename from jimp/tsconfig.json rename to types/jimp/tsconfig.json diff --git a/jfs/tslint.json b/types/jimp/tslint.json similarity index 100% rename from jfs/tslint.json rename to types/jimp/tslint.json diff --git a/jjv/index.d.ts b/types/jjv/index.d.ts similarity index 100% rename from jjv/index.d.ts rename to types/jjv/index.d.ts diff --git a/jjv/jjv-tests.ts b/types/jjv/jjv-tests.ts similarity index 100% rename from jjv/jjv-tests.ts rename to types/jjv/jjv-tests.ts diff --git a/jjv/tsconfig.json b/types/jjv/tsconfig.json similarity index 100% rename from jjv/tsconfig.json rename to types/jjv/tsconfig.json diff --git a/jjve/index.d.ts b/types/jjve/index.d.ts similarity index 100% rename from jjve/index.d.ts rename to types/jjve/index.d.ts diff --git a/jjve/jjve-tests.ts b/types/jjve/jjve-tests.ts similarity index 100% rename from jjve/jjve-tests.ts rename to types/jjve/jjve-tests.ts diff --git a/jjve/tsconfig.json b/types/jjve/tsconfig.json similarity index 100% rename from jjve/tsconfig.json rename to types/jjve/tsconfig.json diff --git a/jmespath/index.d.ts b/types/jmespath/index.d.ts similarity index 100% rename from jmespath/index.d.ts rename to types/jmespath/index.d.ts diff --git a/types/jmespath/jmespath-tests.ts b/types/jmespath/jmespath-tests.ts new file mode 100644 index 0000000000..b254a503b4 --- /dev/null +++ b/types/jmespath/jmespath-tests.ts @@ -0,0 +1,6 @@ +import jmespath = require("jmespath"); + +const a = jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar.baz[2]"); +const b = jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar"); +const c = jmespath.search({foo: [{first: "a", last: "b"}, {first: "c", last: "d"}]}, "foo[*].first"); +const d = jmespath.search({foo: [{age: 20}, {age: 25}, {age: 30}, {age: 35}, {age: 40}]}, "foo[?age > `30`]"); diff --git a/jmespath/tsconfig.json b/types/jmespath/tsconfig.json similarity index 100% rename from jmespath/tsconfig.json rename to types/jmespath/tsconfig.json diff --git a/jmespath/tslint.json b/types/jmespath/tslint.json similarity index 100% rename from jmespath/tslint.json rename to types/jmespath/tslint.json diff --git a/jodata/index.d.ts b/types/jodata/index.d.ts similarity index 100% rename from jodata/index.d.ts rename to types/jodata/index.d.ts diff --git a/jodata/jodata-tests.ts b/types/jodata/jodata-tests.ts similarity index 100% rename from jodata/jodata-tests.ts rename to types/jodata/jodata-tests.ts diff --git a/jodata/tsconfig.json b/types/jodata/tsconfig.json similarity index 100% rename from jodata/tsconfig.json rename to types/jodata/tsconfig.json diff --git a/johnny-five/index.d.ts b/types/johnny-five/index.d.ts similarity index 100% rename from johnny-five/index.d.ts rename to types/johnny-five/index.d.ts diff --git a/johnny-five/johnny-five-tests.ts b/types/johnny-five/johnny-five-tests.ts similarity index 100% rename from johnny-five/johnny-five-tests.ts rename to types/johnny-five/johnny-five-tests.ts diff --git a/johnny-five/tsconfig.json b/types/johnny-five/tsconfig.json similarity index 100% rename from johnny-five/tsconfig.json rename to types/johnny-five/tsconfig.json diff --git a/joi/index.d.ts b/types/joi/index.d.ts similarity index 100% rename from joi/index.d.ts rename to types/joi/index.d.ts diff --git a/joi/joi-tests.ts b/types/joi/joi-tests.ts similarity index 100% rename from joi/joi-tests.ts rename to types/joi/joi-tests.ts diff --git a/joi/tsconfig.json b/types/joi/tsconfig.json similarity index 100% rename from joi/tsconfig.json rename to types/joi/tsconfig.json diff --git a/joi/v6/index.d.ts b/types/joi/v6/index.d.ts similarity index 100% rename from joi/v6/index.d.ts rename to types/joi/v6/index.d.ts diff --git a/joi/v6/joi-tests.ts b/types/joi/v6/joi-tests.ts similarity index 100% rename from joi/v6/joi-tests.ts rename to types/joi/v6/joi-tests.ts diff --git a/joi/v6/tsconfig.json b/types/joi/v6/tsconfig.json similarity index 100% rename from joi/v6/tsconfig.json rename to types/joi/v6/tsconfig.json diff --git a/jointjs/README.md b/types/jointjs/README.md similarity index 100% rename from jointjs/README.md rename to types/jointjs/README.md diff --git a/jointjs/index.d.ts b/types/jointjs/index.d.ts similarity index 100% rename from jointjs/index.d.ts rename to types/jointjs/index.d.ts diff --git a/jointjs/tsconfig.json b/types/jointjs/tsconfig.json similarity index 100% rename from jointjs/tsconfig.json rename to types/jointjs/tsconfig.json diff --git a/jpm/index.d.ts b/types/jpm/index.d.ts similarity index 100% rename from jpm/index.d.ts rename to types/jpm/index.d.ts diff --git a/jpm/jpm-tests.ts b/types/jpm/jpm-tests.ts similarity index 100% rename from jpm/jpm-tests.ts rename to types/jpm/jpm-tests.ts diff --git a/jpm/tsconfig.json b/types/jpm/tsconfig.json similarity index 100% rename from jpm/tsconfig.json rename to types/jpm/tsconfig.json diff --git a/jqgrid/index.d.ts b/types/jqgrid/index.d.ts similarity index 100% rename from jqgrid/index.d.ts rename to types/jqgrid/index.d.ts diff --git a/jqgrid/jqgrid-tests.ts b/types/jqgrid/jqgrid-tests.ts similarity index 100% rename from jqgrid/jqgrid-tests.ts rename to types/jqgrid/jqgrid-tests.ts diff --git a/jqgrid/tsconfig.json b/types/jqgrid/tsconfig.json similarity index 100% rename from jqgrid/tsconfig.json rename to types/jqgrid/tsconfig.json diff --git a/jqrangeslider/index.d.ts b/types/jqrangeslider/index.d.ts similarity index 100% rename from jqrangeslider/index.d.ts rename to types/jqrangeslider/index.d.ts diff --git a/jqrangeslider/jqrangeslider-tests.ts b/types/jqrangeslider/jqrangeslider-tests.ts similarity index 100% rename from jqrangeslider/jqrangeslider-tests.ts rename to types/jqrangeslider/jqrangeslider-tests.ts diff --git a/jqrangeslider/tsconfig.json b/types/jqrangeslider/tsconfig.json similarity index 100% rename from jqrangeslider/tsconfig.json rename to types/jqrangeslider/tsconfig.json diff --git a/jquery-ajax-chain/index.d.ts b/types/jquery-ajax-chain/index.d.ts similarity index 100% rename from jquery-ajax-chain/index.d.ts rename to types/jquery-ajax-chain/index.d.ts diff --git a/jquery-ajax-chain/jquery-ajax-chain-tests.ts b/types/jquery-ajax-chain/jquery-ajax-chain-tests.ts similarity index 100% rename from jquery-ajax-chain/jquery-ajax-chain-tests.ts rename to types/jquery-ajax-chain/jquery-ajax-chain-tests.ts diff --git a/jquery-ajax-chain/tsconfig.json b/types/jquery-ajax-chain/tsconfig.json similarity index 100% rename from jquery-ajax-chain/tsconfig.json rename to types/jquery-ajax-chain/tsconfig.json diff --git a/jquery-alertable/index.d.ts b/types/jquery-alertable/index.d.ts similarity index 100% rename from jquery-alertable/index.d.ts rename to types/jquery-alertable/index.d.ts diff --git a/jquery-alertable/jquery-alertable-tests.ts b/types/jquery-alertable/jquery-alertable-tests.ts similarity index 100% rename from jquery-alertable/jquery-alertable-tests.ts rename to types/jquery-alertable/jquery-alertable-tests.ts diff --git a/jquery-alertable/tsconfig.json b/types/jquery-alertable/tsconfig.json similarity index 100% rename from jquery-alertable/tsconfig.json rename to types/jquery-alertable/tsconfig.json diff --git a/jquery-backstretch/index.d.ts b/types/jquery-backstretch/index.d.ts similarity index 100% rename from jquery-backstretch/index.d.ts rename to types/jquery-backstretch/index.d.ts diff --git a/jquery-backstretch/jquery-backstretch-tests.ts b/types/jquery-backstretch/jquery-backstretch-tests.ts similarity index 100% rename from jquery-backstretch/jquery-backstretch-tests.ts rename to types/jquery-backstretch/jquery-backstretch-tests.ts diff --git a/jquery-backstretch/tsconfig.json b/types/jquery-backstretch/tsconfig.json similarity index 100% rename from jquery-backstretch/tsconfig.json rename to types/jquery-backstretch/tsconfig.json diff --git a/jquery-cropbox/index.d.ts b/types/jquery-cropbox/index.d.ts similarity index 100% rename from jquery-cropbox/index.d.ts rename to types/jquery-cropbox/index.d.ts diff --git a/jquery-cropbox/jquery-cropbox-tests.ts b/types/jquery-cropbox/jquery-cropbox-tests.ts similarity index 100% rename from jquery-cropbox/jquery-cropbox-tests.ts rename to types/jquery-cropbox/jquery-cropbox-tests.ts diff --git a/jquery-cropbox/tsconfig.json b/types/jquery-cropbox/tsconfig.json similarity index 100% rename from jquery-cropbox/tsconfig.json rename to types/jquery-cropbox/tsconfig.json diff --git a/jquery-deparam/index.d.ts b/types/jquery-deparam/index.d.ts similarity index 100% rename from jquery-deparam/index.d.ts rename to types/jquery-deparam/index.d.ts diff --git a/jquery-deparam/jquery-deparam-tests.ts b/types/jquery-deparam/jquery-deparam-tests.ts similarity index 100% rename from jquery-deparam/jquery-deparam-tests.ts rename to types/jquery-deparam/jquery-deparam-tests.ts diff --git a/jquery-deparam/tsconfig.json b/types/jquery-deparam/tsconfig.json similarity index 100% rename from jquery-deparam/tsconfig.json rename to types/jquery-deparam/tsconfig.json diff --git a/jquery-easy-loading/index.d.ts b/types/jquery-easy-loading/index.d.ts similarity index 100% rename from jquery-easy-loading/index.d.ts rename to types/jquery-easy-loading/index.d.ts diff --git a/jquery-easy-loading/jquery-easy-loading-tests.ts b/types/jquery-easy-loading/jquery-easy-loading-tests.ts similarity index 100% rename from jquery-easy-loading/jquery-easy-loading-tests.ts rename to types/jquery-easy-loading/jquery-easy-loading-tests.ts diff --git a/jquery-easy-loading/tsconfig.json b/types/jquery-easy-loading/tsconfig.json similarity index 100% rename from jquery-easy-loading/tsconfig.json rename to types/jquery-easy-loading/tsconfig.json diff --git a/jquery-fullscreen/index.d.ts b/types/jquery-fullscreen/index.d.ts similarity index 100% rename from jquery-fullscreen/index.d.ts rename to types/jquery-fullscreen/index.d.ts diff --git a/jquery-fullscreen/jquery-fullscreen-tests.ts b/types/jquery-fullscreen/jquery-fullscreen-tests.ts similarity index 100% rename from jquery-fullscreen/jquery-fullscreen-tests.ts rename to types/jquery-fullscreen/jquery-fullscreen-tests.ts diff --git a/jquery-fullscreen/tsconfig.json b/types/jquery-fullscreen/tsconfig.json similarity index 100% rename from jquery-fullscreen/tsconfig.json rename to types/jquery-fullscreen/tsconfig.json diff --git a/jquery-galleria/index.d.ts b/types/jquery-galleria/index.d.ts similarity index 100% rename from jquery-galleria/index.d.ts rename to types/jquery-galleria/index.d.ts diff --git a/jquery-galleria/jquery-galleria-tests.ts b/types/jquery-galleria/jquery-galleria-tests.ts similarity index 100% rename from jquery-galleria/jquery-galleria-tests.ts rename to types/jquery-galleria/jquery-galleria-tests.ts diff --git a/jquery-galleria/tsconfig.json b/types/jquery-galleria/tsconfig.json similarity index 100% rename from jquery-galleria/tsconfig.json rename to types/jquery-galleria/tsconfig.json diff --git a/jquery-handsontable/index.d.ts b/types/jquery-handsontable/index.d.ts similarity index 100% rename from jquery-handsontable/index.d.ts rename to types/jquery-handsontable/index.d.ts diff --git a/jquery-handsontable/jquery-handsontable-tests.ts b/types/jquery-handsontable/jquery-handsontable-tests.ts similarity index 100% rename from jquery-handsontable/jquery-handsontable-tests.ts rename to types/jquery-handsontable/jquery-handsontable-tests.ts diff --git a/jquery-handsontable/tsconfig.json b/types/jquery-handsontable/tsconfig.json similarity index 100% rename from jquery-handsontable/tsconfig.json rename to types/jquery-handsontable/tsconfig.json diff --git a/jquery-jsonrpcclient/index.d.ts b/types/jquery-jsonrpcclient/index.d.ts similarity index 100% rename from jquery-jsonrpcclient/index.d.ts rename to types/jquery-jsonrpcclient/index.d.ts diff --git a/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts b/types/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts similarity index 100% rename from jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts rename to types/jquery-jsonrpcclient/jquery-jsonrpcclient-tests.ts diff --git a/jquery-jsonrpcclient/tsconfig.json b/types/jquery-jsonrpcclient/tsconfig.json similarity index 100% rename from jquery-jsonrpcclient/tsconfig.json rename to types/jquery-jsonrpcclient/tsconfig.json diff --git a/jquery-knob/index.d.ts b/types/jquery-knob/index.d.ts similarity index 100% rename from jquery-knob/index.d.ts rename to types/jquery-knob/index.d.ts diff --git a/jquery-knob/jquery-knob-tests.ts b/types/jquery-knob/jquery-knob-tests.ts similarity index 100% rename from jquery-knob/jquery-knob-tests.ts rename to types/jquery-knob/jquery-knob-tests.ts diff --git a/jquery-knob/tsconfig.json b/types/jquery-knob/tsconfig.json similarity index 100% rename from jquery-knob/tsconfig.json rename to types/jquery-knob/tsconfig.json diff --git a/jquery-mask-plugin/index.d.ts b/types/jquery-mask-plugin/index.d.ts similarity index 99% rename from jquery-mask-plugin/index.d.ts rename to types/jquery-mask-plugin/index.d.ts index 61f3a69359..270828856f 100644 --- a/jquery-mask-plugin/index.d.ts +++ b/types/jquery-mask-plugin/index.d.ts @@ -6,7 +6,6 @@ /// declare namespace jQueryMask { - interface Invalid { p: number; v: string; @@ -42,11 +41,9 @@ declare namespace jQueryMask { [key: string]: Pattern | {} | undefined; placeholder?: string; } - } interface JQuery { - /** * Applies the mask to the matching selector elements. * @param mask should be a string or a function. @@ -72,4 +69,4 @@ interface JQuery { * @returns Masked value. */ masked(value: string): string; -} \ No newline at end of file +} diff --git a/jquery-mask-plugin/jquery-mask-plugin-tests.ts b/types/jquery-mask-plugin/jquery-mask-plugin-tests.ts similarity index 98% rename from jquery-mask-plugin/jquery-mask-plugin-tests.ts rename to types/jquery-mask-plugin/jquery-mask-plugin-tests.ts index 36362eccf7..310cec421b 100644 --- a/jquery-mask-plugin/jquery-mask-plugin-tests.ts +++ b/types/jquery-mask-plugin/jquery-mask-plugin-tests.ts @@ -1,4 +1,3 @@ - // basic usage $(document).ready(() => { $('.date').mask('00/00/0000'); @@ -53,7 +52,7 @@ let options: jQueryMask.Options = { console.log('cep changed! ', cep); }, onInvalid(val: Object, e: Event, f: JQuery, invalid: jQueryMask.Invalid[], options: jQueryMask.Options) { - var error = invalid[0]; + const error = invalid[0]; console.log("Digit: ", error.v, " is invalid for the position: ", error.p, ". We expect something like: ", error.e); } }; @@ -116,4 +115,4 @@ $('.date').unmask(); $('.date').cleanVal(); // Getting a masked value programmatically -$('.date').masked('19840807'); \ No newline at end of file +$('.date').masked('19840807'); diff --git a/jquery-mask-plugin/tsconfig.json b/types/jquery-mask-plugin/tsconfig.json similarity index 100% rename from jquery-mask-plugin/tsconfig.json rename to types/jquery-mask-plugin/tsconfig.json diff --git a/jquery-mask-plugin/tslint.json b/types/jquery-mask-plugin/tslint.json similarity index 100% rename from jquery-mask-plugin/tslint.json rename to types/jquery-mask-plugin/tslint.json diff --git a/jquery-mockjax/index.d.ts b/types/jquery-mockjax/index.d.ts similarity index 100% rename from jquery-mockjax/index.d.ts rename to types/jquery-mockjax/index.d.ts diff --git a/jquery-mockjax/jquery-mockjax-tests.ts b/types/jquery-mockjax/jquery-mockjax-tests.ts similarity index 100% rename from jquery-mockjax/jquery-mockjax-tests.ts rename to types/jquery-mockjax/jquery-mockjax-tests.ts diff --git a/jquery-mockjax/tsconfig.json b/types/jquery-mockjax/tsconfig.json similarity index 100% rename from jquery-mockjax/tsconfig.json rename to types/jquery-mockjax/tsconfig.json diff --git a/jquery-mousewheel/index.d.ts b/types/jquery-mousewheel/index.d.ts similarity index 100% rename from jquery-mousewheel/index.d.ts rename to types/jquery-mousewheel/index.d.ts diff --git a/jquery-mousewheel/jquery-mousewheel-tests.ts b/types/jquery-mousewheel/jquery-mousewheel-tests.ts similarity index 100% rename from jquery-mousewheel/jquery-mousewheel-tests.ts rename to types/jquery-mousewheel/jquery-mousewheel-tests.ts diff --git a/jquery-mousewheel/tsconfig.json b/types/jquery-mousewheel/tsconfig.json similarity index 100% rename from jquery-mousewheel/tsconfig.json rename to types/jquery-mousewheel/tsconfig.json diff --git a/jquery-param/index.d.ts b/types/jquery-param/index.d.ts similarity index 100% rename from jquery-param/index.d.ts rename to types/jquery-param/index.d.ts diff --git a/jquery-param/jquery-param-tests.ts b/types/jquery-param/jquery-param-tests.ts similarity index 100% rename from jquery-param/jquery-param-tests.ts rename to types/jquery-param/jquery-param-tests.ts diff --git a/jquery-param/tsconfig.json b/types/jquery-param/tsconfig.json similarity index 100% rename from jquery-param/tsconfig.json rename to types/jquery-param/tsconfig.json diff --git a/jquery-sortable/index.d.ts b/types/jquery-sortable/index.d.ts similarity index 100% rename from jquery-sortable/index.d.ts rename to types/jquery-sortable/index.d.ts diff --git a/jquery-sortable/jquery-sortable-tests.ts b/types/jquery-sortable/jquery-sortable-tests.ts similarity index 100% rename from jquery-sortable/jquery-sortable-tests.ts rename to types/jquery-sortable/jquery-sortable-tests.ts diff --git a/jquery-sortable/tsconfig.json b/types/jquery-sortable/tsconfig.json similarity index 100% rename from jquery-sortable/tsconfig.json rename to types/jquery-sortable/tsconfig.json diff --git a/jquery-steps/index.d.ts b/types/jquery-steps/index.d.ts similarity index 100% rename from jquery-steps/index.d.ts rename to types/jquery-steps/index.d.ts diff --git a/jquery-steps/jquery-steps-tests.ts b/types/jquery-steps/jquery-steps-tests.ts similarity index 100% rename from jquery-steps/jquery-steps-tests.ts rename to types/jquery-steps/jquery-steps-tests.ts diff --git a/jquery-steps/tsconfig.json b/types/jquery-steps/tsconfig.json similarity index 100% rename from jquery-steps/tsconfig.json rename to types/jquery-steps/tsconfig.json diff --git a/jquery-timeentry/index.d.ts b/types/jquery-timeentry/index.d.ts similarity index 100% rename from jquery-timeentry/index.d.ts rename to types/jquery-timeentry/index.d.ts diff --git a/jquery-timeentry/jquery-timeentry-tests.ts b/types/jquery-timeentry/jquery-timeentry-tests.ts similarity index 100% rename from jquery-timeentry/jquery-timeentry-tests.ts rename to types/jquery-timeentry/jquery-timeentry-tests.ts diff --git a/jquery-timeentry/tsconfig.json b/types/jquery-timeentry/tsconfig.json similarity index 100% rename from jquery-timeentry/tsconfig.json rename to types/jquery-timeentry/tsconfig.json diff --git a/jquery-toastmessage-plugin/index.d.ts b/types/jquery-toastmessage-plugin/index.d.ts similarity index 98% rename from jquery-toastmessage-plugin/index.d.ts rename to types/jquery-toastmessage-plugin/index.d.ts index 2666ecbd0b..6ca6816e21 100644 --- a/jquery-toastmessage-plugin/index.d.ts +++ b/types/jquery-toastmessage-plugin/index.d.ts @@ -5,7 +5,7 @@ /// -declare interface JQuery { +interface JQuery { toastmessage: JQueryToastmessage.ToastmessageStatic; } @@ -54,4 +54,4 @@ declare namespace JQueryToastmessage { /** callback function when the toastmessage is closed @default null */ close?: () => void; } -} \ No newline at end of file +} diff --git a/types/jquery-toastmessage-plugin/jquery-toastmessage-plugin-tests.ts b/types/jquery-toastmessage-plugin/jquery-toastmessage-plugin-tests.ts new file mode 100644 index 0000000000..ae096da350 --- /dev/null +++ b/types/jquery-toastmessage-plugin/jquery-toastmessage-plugin-tests.ts @@ -0,0 +1,85 @@ +/* code examples from documentation */ + +$().toastmessage('showNoticeToast', 'some message here'); +$().toastmessage('showSuccessToast', "some message here"); +$().toastmessage('showWarningToast', "some message here"); +$().toastmessage('showErrorToast', "some message here"); + +// user configured toastmessage: +const toastObject = $().toastmessage('showToast', { + text: 'Hello World', + sticky: true, + position: 'top-right', + type: 'success', + close() { console.log("toast is closed ..."); } +}); + +$().toastmessage('removeToast', toastObject); + +// reconfiguring the toasts as sticky +$().toastmessage({sticky : true}); + +// saving the newly created toast into a variable +const myToast = $().toastmessage('showNoticeToast', 'some message here'); + +// removing the toast +$().toastmessage('removeToast', myToast); + +// user configuration of all toastmessages to come: +$().toastmessage({ + text: 'Hello World', + sticky: true, + position: 'top-right', + type: 'success', + close() { console.log("toast is closed ..."); } +}); + +$().toastmessage({ + inEffectDuration: 600, // in effect duration in miliseconds + stayTime: 3000, // time in miliseconds before the item has to disappear + text: '', // content of the item + sticky: false, // should the toast item sticky or not? + type: 'notice', // notice, warning, error, success + position: 'top-right', // top-left, top-center, top-right, middle-left, middle-center, middle-right + // Position of the toast container holding different toast. + // Position can be set only once at the very first call, + // changing the position after the first call does nothing + closeText: '', // text which will be shown as close button, + // set to '' when you want to introduce an image via css + close: undefined // callback function when the toastmessage is closed +}); + +/* code examples from tests */ + +$('.toast-container').remove(); + +$().toastmessage('showSuccessToast', "SUCCESS"); +$().toastmessage('showNoticeToast', "NOTICE"); +$().toastmessage('showWarningToast', "WARNING"); +$().toastmessage('showErrorToast', "ERROR"); +$().toastmessage({ + sticky: true, + position: 'top-right', + closeText: '' +}); +$().toastmessage('showToast', { + text: 'Success Dialog', + type: 'success' +}); +$().toastmessage('showToast', { + text: 'Success Dialog', + sticky: true, + position: 'top-right', + type: 'success', + closeText: '', + close() {} +}); +const toast = $().toastmessage('showToast', { + text: 'Success Dialog', + sticky: true, + position: 'top-right', + type: 'success', + closeText: '', + close() {} +}); +$().toastmessage('removeToast', toast, { close() {} }); diff --git a/jquery-toastmessage-plugin/tsconfig.json b/types/jquery-toastmessage-plugin/tsconfig.json similarity index 100% rename from jquery-toastmessage-plugin/tsconfig.json rename to types/jquery-toastmessage-plugin/tsconfig.json diff --git a/jimp/tslint.json b/types/jquery-toastmessage-plugin/tslint.json similarity index 100% rename from jimp/tslint.json rename to types/jquery-toastmessage-plugin/tslint.json diff --git a/jquery-truncate-html/index.d.ts b/types/jquery-truncate-html/index.d.ts similarity index 100% rename from jquery-truncate-html/index.d.ts rename to types/jquery-truncate-html/index.d.ts diff --git a/jquery-truncate-html/jquery-truncate-html-tests.ts b/types/jquery-truncate-html/jquery-truncate-html-tests.ts similarity index 100% rename from jquery-truncate-html/jquery-truncate-html-tests.ts rename to types/jquery-truncate-html/jquery-truncate-html-tests.ts diff --git a/jquery-truncate-html/tsconfig.json b/types/jquery-truncate-html/tsconfig.json similarity index 100% rename from jquery-truncate-html/tsconfig.json rename to types/jquery-truncate-html/tsconfig.json diff --git a/jquery-urlparam/index.d.ts b/types/jquery-urlparam/index.d.ts similarity index 100% rename from jquery-urlparam/index.d.ts rename to types/jquery-urlparam/index.d.ts diff --git a/jquery-urlparam/jquery-urlparam-tests.ts b/types/jquery-urlparam/jquery-urlparam-tests.ts similarity index 100% rename from jquery-urlparam/jquery-urlparam-tests.ts rename to types/jquery-urlparam/jquery-urlparam-tests.ts diff --git a/jquery-urlparam/tsconfig.json b/types/jquery-urlparam/tsconfig.json similarity index 100% rename from jquery-urlparam/tsconfig.json rename to types/jquery-urlparam/tsconfig.json diff --git a/jquery-validation-unobtrusive/index.d.ts b/types/jquery-validation-unobtrusive/index.d.ts similarity index 100% rename from jquery-validation-unobtrusive/index.d.ts rename to types/jquery-validation-unobtrusive/index.d.ts diff --git a/jquery-validation-unobtrusive/jquery-validation-unobtrusive-tests.ts b/types/jquery-validation-unobtrusive/jquery-validation-unobtrusive-tests.ts similarity index 100% rename from jquery-validation-unobtrusive/jquery-validation-unobtrusive-tests.ts rename to types/jquery-validation-unobtrusive/jquery-validation-unobtrusive-tests.ts diff --git a/jquery-validation-unobtrusive/tsconfig.json b/types/jquery-validation-unobtrusive/tsconfig.json similarity index 100% rename from jquery-validation-unobtrusive/tsconfig.json rename to types/jquery-validation-unobtrusive/tsconfig.json diff --git a/jquery.address/index.d.ts b/types/jquery.address/index.d.ts similarity index 100% rename from jquery.address/index.d.ts rename to types/jquery.address/index.d.ts diff --git a/jquery.address/tsconfig.json b/types/jquery.address/tsconfig.json similarity index 100% rename from jquery.address/tsconfig.json rename to types/jquery.address/tsconfig.json diff --git a/jquery.ajaxfile/index.d.ts b/types/jquery.ajaxfile/index.d.ts similarity index 100% rename from jquery.ajaxfile/index.d.ts rename to types/jquery.ajaxfile/index.d.ts diff --git a/jquery.ajaxfile/jquery.ajaxfile-tests.ts b/types/jquery.ajaxfile/jquery.ajaxfile-tests.ts similarity index 100% rename from jquery.ajaxfile/jquery.ajaxfile-tests.ts rename to types/jquery.ajaxfile/jquery.ajaxfile-tests.ts diff --git a/jquery.ajaxfile/tsconfig.json b/types/jquery.ajaxfile/tsconfig.json similarity index 100% rename from jquery.ajaxfile/tsconfig.json rename to types/jquery.ajaxfile/tsconfig.json diff --git a/jquery.are-you-sure/index.d.ts b/types/jquery.are-you-sure/index.d.ts similarity index 100% rename from jquery.are-you-sure/index.d.ts rename to types/jquery.are-you-sure/index.d.ts diff --git a/jquery.are-you-sure/jquery.are-you-sure-tests.ts b/types/jquery.are-you-sure/jquery.are-you-sure-tests.ts similarity index 100% rename from jquery.are-you-sure/jquery.are-you-sure-tests.ts rename to types/jquery.are-you-sure/jquery.are-you-sure-tests.ts diff --git a/jquery.are-you-sure/tsconfig.json b/types/jquery.are-you-sure/tsconfig.json similarity index 100% rename from jquery.are-you-sure/tsconfig.json rename to types/jquery.are-you-sure/tsconfig.json diff --git a/jquery.autosize/index.d.ts b/types/jquery.autosize/index.d.ts similarity index 100% rename from jquery.autosize/index.d.ts rename to types/jquery.autosize/index.d.ts diff --git a/jquery.autosize/jquery.autosize-tests.ts b/types/jquery.autosize/jquery.autosize-tests.ts similarity index 100% rename from jquery.autosize/jquery.autosize-tests.ts rename to types/jquery.autosize/jquery.autosize-tests.ts diff --git a/jquery.autosize/tsconfig.json b/types/jquery.autosize/tsconfig.json similarity index 100% rename from jquery.autosize/tsconfig.json rename to types/jquery.autosize/tsconfig.json diff --git a/jquery.base64/index.d.ts b/types/jquery.base64/index.d.ts similarity index 100% rename from jquery.base64/index.d.ts rename to types/jquery.base64/index.d.ts diff --git a/jquery.base64/jquery.base64-tests.ts b/types/jquery.base64/jquery.base64-tests.ts similarity index 100% rename from jquery.base64/jquery.base64-tests.ts rename to types/jquery.base64/jquery.base64-tests.ts diff --git a/jquery.base64/tsconfig.json b/types/jquery.base64/tsconfig.json similarity index 100% rename from jquery.base64/tsconfig.json rename to types/jquery.base64/tsconfig.json diff --git a/jquery.bbq/index.d.ts b/types/jquery.bbq/index.d.ts similarity index 100% rename from jquery.bbq/index.d.ts rename to types/jquery.bbq/index.d.ts diff --git a/jquery.bbq/jquery.bbq-tests.ts b/types/jquery.bbq/jquery.bbq-tests.ts similarity index 100% rename from jquery.bbq/jquery.bbq-tests.ts rename to types/jquery.bbq/jquery.bbq-tests.ts diff --git a/jquery.bbq/tsconfig.json b/types/jquery.bbq/tsconfig.json similarity index 100% rename from jquery.bbq/tsconfig.json rename to types/jquery.bbq/tsconfig.json diff --git a/jquery.blockui/index.d.ts b/types/jquery.blockui/index.d.ts similarity index 100% rename from jquery.blockui/index.d.ts rename to types/jquery.blockui/index.d.ts diff --git a/jquery.blockui/jquery.blockui-tests.ts b/types/jquery.blockui/jquery.blockui-tests.ts similarity index 100% rename from jquery.blockui/jquery.blockui-tests.ts rename to types/jquery.blockui/jquery.blockui-tests.ts diff --git a/jquery.blockui/tsconfig.json b/types/jquery.blockui/tsconfig.json similarity index 100% rename from jquery.blockui/tsconfig.json rename to types/jquery.blockui/tsconfig.json diff --git a/jquery.bootstrap.wizard/index.d.ts b/types/jquery.bootstrap.wizard/index.d.ts similarity index 100% rename from jquery.bootstrap.wizard/index.d.ts rename to types/jquery.bootstrap.wizard/index.d.ts diff --git a/jquery.bootstrap.wizard/tsconfig.json b/types/jquery.bootstrap.wizard/tsconfig.json similarity index 100% rename from jquery.bootstrap.wizard/tsconfig.json rename to types/jquery.bootstrap.wizard/tsconfig.json diff --git a/jquery.cleditor/index.d.ts b/types/jquery.cleditor/index.d.ts similarity index 100% rename from jquery.cleditor/index.d.ts rename to types/jquery.cleditor/index.d.ts diff --git a/jquery.cleditor/jquery.cleditor-tests.ts b/types/jquery.cleditor/jquery.cleditor-tests.ts similarity index 100% rename from jquery.cleditor/jquery.cleditor-tests.ts rename to types/jquery.cleditor/jquery.cleditor-tests.ts diff --git a/jquery.cleditor/tsconfig.json b/types/jquery.cleditor/tsconfig.json similarity index 100% rename from jquery.cleditor/tsconfig.json rename to types/jquery.cleditor/tsconfig.json diff --git a/jquery.clientsidelogging/index.d.ts b/types/jquery.clientsidelogging/index.d.ts similarity index 100% rename from jquery.clientsidelogging/index.d.ts rename to types/jquery.clientsidelogging/index.d.ts diff --git a/jquery.clientsidelogging/jquery.clientsidelogging-tests.ts b/types/jquery.clientsidelogging/jquery.clientsidelogging-tests.ts similarity index 100% rename from jquery.clientsidelogging/jquery.clientsidelogging-tests.ts rename to types/jquery.clientsidelogging/jquery.clientsidelogging-tests.ts diff --git a/jquery.clientsidelogging/tsconfig.json b/types/jquery.clientsidelogging/tsconfig.json similarity index 100% rename from jquery.clientsidelogging/tsconfig.json rename to types/jquery.clientsidelogging/tsconfig.json diff --git a/jquery.color/index.d.ts b/types/jquery.color/index.d.ts similarity index 100% rename from jquery.color/index.d.ts rename to types/jquery.color/index.d.ts diff --git a/jquery.color/jquery.color-tests.ts b/types/jquery.color/jquery.color-tests.ts similarity index 100% rename from jquery.color/jquery.color-tests.ts rename to types/jquery.color/jquery.color-tests.ts diff --git a/jquery.color/tsconfig.json b/types/jquery.color/tsconfig.json similarity index 100% rename from jquery.color/tsconfig.json rename to types/jquery.color/tsconfig.json diff --git a/jquery.colorbox/index.d.ts b/types/jquery.colorbox/index.d.ts similarity index 100% rename from jquery.colorbox/index.d.ts rename to types/jquery.colorbox/index.d.ts diff --git a/jquery.colorbox/jquery.colorbox-tests.ts b/types/jquery.colorbox/jquery.colorbox-tests.ts similarity index 100% rename from jquery.colorbox/jquery.colorbox-tests.ts rename to types/jquery.colorbox/jquery.colorbox-tests.ts diff --git a/jquery.colorbox/tsconfig.json b/types/jquery.colorbox/tsconfig.json similarity index 100% rename from jquery.colorbox/tsconfig.json rename to types/jquery.colorbox/tsconfig.json diff --git a/jquery.colorpicker/index.d.ts b/types/jquery.colorpicker/index.d.ts similarity index 100% rename from jquery.colorpicker/index.d.ts rename to types/jquery.colorpicker/index.d.ts diff --git a/jquery.colorpicker/jquery.colorpicker-tests.ts b/types/jquery.colorpicker/jquery.colorpicker-tests.ts similarity index 100% rename from jquery.colorpicker/jquery.colorpicker-tests.ts rename to types/jquery.colorpicker/jquery.colorpicker-tests.ts diff --git a/jquery.colorpicker/tsconfig.json b/types/jquery.colorpicker/tsconfig.json similarity index 100% rename from jquery.colorpicker/tsconfig.json rename to types/jquery.colorpicker/tsconfig.json diff --git a/jquery.contextmenu/index.d.ts b/types/jquery.contextmenu/index.d.ts similarity index 100% rename from jquery.contextmenu/index.d.ts rename to types/jquery.contextmenu/index.d.ts diff --git a/jquery.contextmenu/jquery.contextmenu-tests.ts b/types/jquery.contextmenu/jquery.contextmenu-tests.ts similarity index 100% rename from jquery.contextmenu/jquery.contextmenu-tests.ts rename to types/jquery.contextmenu/jquery.contextmenu-tests.ts diff --git a/jquery.contextmenu/tsconfig.json b/types/jquery.contextmenu/tsconfig.json similarity index 100% rename from jquery.contextmenu/tsconfig.json rename to types/jquery.contextmenu/tsconfig.json diff --git a/jquery.cookie/index.d.ts b/types/jquery.cookie/index.d.ts similarity index 100% rename from jquery.cookie/index.d.ts rename to types/jquery.cookie/index.d.ts diff --git a/jquery.cookie/jquery.cookie-tests.ts b/types/jquery.cookie/jquery.cookie-tests.ts similarity index 100% rename from jquery.cookie/jquery.cookie-tests.ts rename to types/jquery.cookie/jquery.cookie-tests.ts diff --git a/jquery.cookie/tsconfig.json b/types/jquery.cookie/tsconfig.json similarity index 100% rename from jquery.cookie/tsconfig.json rename to types/jquery.cookie/tsconfig.json diff --git a/jquery.customselect/index.d.ts b/types/jquery.customselect/index.d.ts similarity index 100% rename from jquery.customselect/index.d.ts rename to types/jquery.customselect/index.d.ts diff --git a/jquery.customselect/jquery.customselect-tests.ts b/types/jquery.customselect/jquery.customselect-tests.ts similarity index 100% rename from jquery.customselect/jquery.customselect-tests.ts rename to types/jquery.customselect/jquery.customselect-tests.ts diff --git a/jquery.customselect/tsconfig.json b/types/jquery.customselect/tsconfig.json similarity index 100% rename from jquery.customselect/tsconfig.json rename to types/jquery.customselect/tsconfig.json diff --git a/jquery.cycle/index.d.ts b/types/jquery.cycle/index.d.ts similarity index 100% rename from jquery.cycle/index.d.ts rename to types/jquery.cycle/index.d.ts diff --git a/jquery.cycle/jquery.cycle-tests.ts b/types/jquery.cycle/jquery.cycle-tests.ts similarity index 100% rename from jquery.cycle/jquery.cycle-tests.ts rename to types/jquery.cycle/jquery.cycle-tests.ts diff --git a/jquery.cycle/tsconfig.json b/types/jquery.cycle/tsconfig.json similarity index 100% rename from jquery.cycle/tsconfig.json rename to types/jquery.cycle/tsconfig.json diff --git a/jquery.cycle2/index.d.ts b/types/jquery.cycle2/index.d.ts similarity index 100% rename from jquery.cycle2/index.d.ts rename to types/jquery.cycle2/index.d.ts diff --git a/jquery.cycle2/jquery.cycle2-tests.ts b/types/jquery.cycle2/jquery.cycle2-tests.ts similarity index 100% rename from jquery.cycle2/jquery.cycle2-tests.ts rename to types/jquery.cycle2/jquery.cycle2-tests.ts diff --git a/jquery.cycle2/tsconfig.json b/types/jquery.cycle2/tsconfig.json similarity index 100% rename from jquery.cycle2/tsconfig.json rename to types/jquery.cycle2/tsconfig.json diff --git a/jquery.dropotron/index.d.ts b/types/jquery.dropotron/index.d.ts similarity index 100% rename from jquery.dropotron/index.d.ts rename to types/jquery.dropotron/index.d.ts diff --git a/jquery.dropotron/jquery.dropotron-tests.ts b/types/jquery.dropotron/jquery.dropotron-tests.ts similarity index 100% rename from jquery.dropotron/jquery.dropotron-tests.ts rename to types/jquery.dropotron/jquery.dropotron-tests.ts diff --git a/jquery.dropotron/tsconfig.json b/types/jquery.dropotron/tsconfig.json similarity index 100% rename from jquery.dropotron/tsconfig.json rename to types/jquery.dropotron/tsconfig.json diff --git a/jquery.dynatree/index.d.ts b/types/jquery.dynatree/index.d.ts similarity index 100% rename from jquery.dynatree/index.d.ts rename to types/jquery.dynatree/index.d.ts diff --git a/jquery.dynatree/jquery.dynatree-tests.ts b/types/jquery.dynatree/jquery.dynatree-tests.ts similarity index 100% rename from jquery.dynatree/jquery.dynatree-tests.ts rename to types/jquery.dynatree/jquery.dynatree-tests.ts diff --git a/jquery.dynatree/tsconfig.json b/types/jquery.dynatree/tsconfig.json similarity index 100% rename from jquery.dynatree/tsconfig.json rename to types/jquery.dynatree/tsconfig.json diff --git a/jquery.elang/index.d.ts b/types/jquery.elang/index.d.ts similarity index 100% rename from jquery.elang/index.d.ts rename to types/jquery.elang/index.d.ts diff --git a/jquery.elang/tsconfig.json b/types/jquery.elang/tsconfig.json similarity index 100% rename from jquery.elang/tsconfig.json rename to types/jquery.elang/tsconfig.json diff --git a/jquery.fancytree/index.d.ts b/types/jquery.fancytree/index.d.ts similarity index 100% rename from jquery.fancytree/index.d.ts rename to types/jquery.fancytree/index.d.ts diff --git a/jquery.fancytree/jquery.fancytree-tests.ts b/types/jquery.fancytree/jquery.fancytree-tests.ts similarity index 100% rename from jquery.fancytree/jquery.fancytree-tests.ts rename to types/jquery.fancytree/jquery.fancytree-tests.ts diff --git a/jquery.fancytree/tsconfig.json b/types/jquery.fancytree/tsconfig.json similarity index 100% rename from jquery.fancytree/tsconfig.json rename to types/jquery.fancytree/tsconfig.json diff --git a/jquery.fileupload/index.d.ts b/types/jquery.fileupload/index.d.ts similarity index 100% rename from jquery.fileupload/index.d.ts rename to types/jquery.fileupload/index.d.ts diff --git a/jquery.fileupload/jquery.fileupload-tests.ts b/types/jquery.fileupload/jquery.fileupload-tests.ts similarity index 100% rename from jquery.fileupload/jquery.fileupload-tests.ts rename to types/jquery.fileupload/jquery.fileupload-tests.ts diff --git a/jquery.fileupload/tsconfig.json b/types/jquery.fileupload/tsconfig.json similarity index 100% rename from jquery.fileupload/tsconfig.json rename to types/jquery.fileupload/tsconfig.json diff --git a/jquery.finger/index.d.ts b/types/jquery.finger/index.d.ts similarity index 100% rename from jquery.finger/index.d.ts rename to types/jquery.finger/index.d.ts diff --git a/jquery.finger/jquery.finger-tests.ts b/types/jquery.finger/jquery.finger-tests.ts similarity index 100% rename from jquery.finger/jquery.finger-tests.ts rename to types/jquery.finger/jquery.finger-tests.ts diff --git a/jquery.finger/tsconfig.json b/types/jquery.finger/tsconfig.json similarity index 100% rename from jquery.finger/tsconfig.json rename to types/jquery.finger/tsconfig.json diff --git a/jquery.flagstrap/index.d.ts b/types/jquery.flagstrap/index.d.ts similarity index 100% rename from jquery.flagstrap/index.d.ts rename to types/jquery.flagstrap/index.d.ts diff --git a/jquery.flagstrap/jquery.flagstrap-tests.ts b/types/jquery.flagstrap/jquery.flagstrap-tests.ts similarity index 100% rename from jquery.flagstrap/jquery.flagstrap-tests.ts rename to types/jquery.flagstrap/jquery.flagstrap-tests.ts diff --git a/jquery.flagstrap/tsconfig.json b/types/jquery.flagstrap/tsconfig.json similarity index 100% rename from jquery.flagstrap/tsconfig.json rename to types/jquery.flagstrap/tsconfig.json diff --git a/jquery.form/index.d.ts b/types/jquery.form/index.d.ts similarity index 100% rename from jquery.form/index.d.ts rename to types/jquery.form/index.d.ts diff --git a/jquery.form/jquery.form-tests.ts b/types/jquery.form/jquery.form-tests.ts similarity index 100% rename from jquery.form/jquery.form-tests.ts rename to types/jquery.form/jquery.form-tests.ts diff --git a/jquery.form/tsconfig.json b/types/jquery.form/tsconfig.json similarity index 100% rename from jquery.form/tsconfig.json rename to types/jquery.form/tsconfig.json diff --git a/jquery.fullscreen/index.d.ts b/types/jquery.fullscreen/index.d.ts similarity index 100% rename from jquery.fullscreen/index.d.ts rename to types/jquery.fullscreen/index.d.ts diff --git a/jquery.fullscreen/jquery.fullscreen-tests.ts b/types/jquery.fullscreen/jquery.fullscreen-tests.ts similarity index 100% rename from jquery.fullscreen/jquery.fullscreen-tests.ts rename to types/jquery.fullscreen/jquery.fullscreen-tests.ts diff --git a/jquery.fullscreen/tsconfig.json b/types/jquery.fullscreen/tsconfig.json similarity index 100% rename from jquery.fullscreen/tsconfig.json rename to types/jquery.fullscreen/tsconfig.json diff --git a/jquery.gridster/index.d.ts b/types/jquery.gridster/index.d.ts similarity index 100% rename from jquery.gridster/index.d.ts rename to types/jquery.gridster/index.d.ts diff --git a/jquery.gridster/jquery.gridster-tests.ts b/types/jquery.gridster/jquery.gridster-tests.ts similarity index 100% rename from jquery.gridster/jquery.gridster-tests.ts rename to types/jquery.gridster/jquery.gridster-tests.ts diff --git a/jquery.gridster/tsconfig.json b/types/jquery.gridster/tsconfig.json similarity index 100% rename from jquery.gridster/tsconfig.json rename to types/jquery.gridster/tsconfig.json diff --git a/jquery.highlight-bartaz/index.d.ts b/types/jquery.highlight-bartaz/index.d.ts similarity index 100% rename from jquery.highlight-bartaz/index.d.ts rename to types/jquery.highlight-bartaz/index.d.ts diff --git a/jquery.highlight-bartaz/jquery.highlight-bartaz-tests.ts b/types/jquery.highlight-bartaz/jquery.highlight-bartaz-tests.ts similarity index 100% rename from jquery.highlight-bartaz/jquery.highlight-bartaz-tests.ts rename to types/jquery.highlight-bartaz/jquery.highlight-bartaz-tests.ts diff --git a/jquery.highlight-bartaz/tsconfig.json b/types/jquery.highlight-bartaz/tsconfig.json similarity index 100% rename from jquery.highlight-bartaz/tsconfig.json rename to types/jquery.highlight-bartaz/tsconfig.json diff --git a/jquery.jnotify/index.d.ts b/types/jquery.jnotify/index.d.ts similarity index 100% rename from jquery.jnotify/index.d.ts rename to types/jquery.jnotify/index.d.ts diff --git a/jquery.jnotify/jquery.jnotify-tests.ts b/types/jquery.jnotify/jquery.jnotify-tests.ts similarity index 100% rename from jquery.jnotify/jquery.jnotify-tests.ts rename to types/jquery.jnotify/jquery.jnotify-tests.ts diff --git a/jquery.jnotify/tsconfig.json b/types/jquery.jnotify/tsconfig.json similarity index 100% rename from jquery.jnotify/tsconfig.json rename to types/jquery.jnotify/tsconfig.json diff --git a/jquery.joyride/index.d.ts b/types/jquery.joyride/index.d.ts similarity index 100% rename from jquery.joyride/index.d.ts rename to types/jquery.joyride/index.d.ts diff --git a/jquery.joyride/jquery.joyride-tests.ts b/types/jquery.joyride/jquery.joyride-tests.ts similarity index 100% rename from jquery.joyride/jquery.joyride-tests.ts rename to types/jquery.joyride/jquery.joyride-tests.ts diff --git a/jquery.joyride/tsconfig.json b/types/jquery.joyride/tsconfig.json similarity index 100% rename from jquery.joyride/tsconfig.json rename to types/jquery.joyride/tsconfig.json diff --git a/jquery.jsignature/index.d.ts b/types/jquery.jsignature/index.d.ts similarity index 100% rename from jquery.jsignature/index.d.ts rename to types/jquery.jsignature/index.d.ts diff --git a/jquery.jsignature/jquery.jsignature-tests.ts b/types/jquery.jsignature/jquery.jsignature-tests.ts similarity index 100% rename from jquery.jsignature/jquery.jsignature-tests.ts rename to types/jquery.jsignature/jquery.jsignature-tests.ts diff --git a/jquery.jsignature/tsconfig.json b/types/jquery.jsignature/tsconfig.json similarity index 100% rename from jquery.jsignature/tsconfig.json rename to types/jquery.jsignature/tsconfig.json diff --git a/jquery.leanmodal/index.d.ts b/types/jquery.leanmodal/index.d.ts similarity index 100% rename from jquery.leanmodal/index.d.ts rename to types/jquery.leanmodal/index.d.ts diff --git a/jquery.leanmodal/jquery.leanmodal-tests.ts b/types/jquery.leanmodal/jquery.leanmodal-tests.ts similarity index 100% rename from jquery.leanmodal/jquery.leanmodal-tests.ts rename to types/jquery.leanmodal/jquery.leanmodal-tests.ts diff --git a/jquery.leanmodal/tsconfig.json b/types/jquery.leanmodal/tsconfig.json similarity index 100% rename from jquery.leanmodal/tsconfig.json rename to types/jquery.leanmodal/tsconfig.json diff --git a/jquery.livestampjs/index.d.ts b/types/jquery.livestampjs/index.d.ts similarity index 100% rename from jquery.livestampjs/index.d.ts rename to types/jquery.livestampjs/index.d.ts diff --git a/jquery.livestampjs/jquery.livestampjs-tests.ts b/types/jquery.livestampjs/jquery.livestampjs-tests.ts similarity index 100% rename from jquery.livestampjs/jquery.livestampjs-tests.ts rename to types/jquery.livestampjs/jquery.livestampjs-tests.ts diff --git a/jquery.livestampjs/package.json b/types/jquery.livestampjs/package.json similarity index 100% rename from jquery.livestampjs/package.json rename to types/jquery.livestampjs/package.json diff --git a/jquery.livestampjs/tsconfig.json b/types/jquery.livestampjs/tsconfig.json similarity index 100% rename from jquery.livestampjs/tsconfig.json rename to types/jquery.livestampjs/tsconfig.json diff --git a/jquery.menuaim/index.d.ts b/types/jquery.menuaim/index.d.ts similarity index 100% rename from jquery.menuaim/index.d.ts rename to types/jquery.menuaim/index.d.ts diff --git a/jquery.menuaim/jquery.menuaim-tests.ts b/types/jquery.menuaim/jquery.menuaim-tests.ts similarity index 100% rename from jquery.menuaim/jquery.menuaim-tests.ts rename to types/jquery.menuaim/jquery.menuaim-tests.ts diff --git a/jquery.menuaim/tsconfig.json b/types/jquery.menuaim/tsconfig.json similarity index 100% rename from jquery.menuaim/tsconfig.json rename to types/jquery.menuaim/tsconfig.json diff --git a/jquery.mmenu/index.d.ts b/types/jquery.mmenu/index.d.ts similarity index 100% rename from jquery.mmenu/index.d.ts rename to types/jquery.mmenu/index.d.ts diff --git a/jquery.mmenu/jquery.mmenu-tests.ts b/types/jquery.mmenu/jquery.mmenu-tests.ts similarity index 100% rename from jquery.mmenu/jquery.mmenu-tests.ts rename to types/jquery.mmenu/jquery.mmenu-tests.ts diff --git a/jquery.mmenu/tsconfig.json b/types/jquery.mmenu/tsconfig.json similarity index 100% rename from jquery.mmenu/tsconfig.json rename to types/jquery.mmenu/tsconfig.json diff --git a/jquery.notifybar/index.d.ts b/types/jquery.notifybar/index.d.ts similarity index 100% rename from jquery.notifybar/index.d.ts rename to types/jquery.notifybar/index.d.ts diff --git a/jquery.notifybar/jquery.notifybar-tests.ts b/types/jquery.notifybar/jquery.notifybar-tests.ts similarity index 100% rename from jquery.notifybar/jquery.notifybar-tests.ts rename to types/jquery.notifybar/jquery.notifybar-tests.ts diff --git a/jquery.notifybar/tsconfig.json b/types/jquery.notifybar/tsconfig.json similarity index 100% rename from jquery.notifybar/tsconfig.json rename to types/jquery.notifybar/tsconfig.json diff --git a/jquery.noty/index.d.ts b/types/jquery.noty/index.d.ts similarity index 100% rename from jquery.noty/index.d.ts rename to types/jquery.noty/index.d.ts diff --git a/jquery.noty/tsconfig.json b/types/jquery.noty/tsconfig.json similarity index 100% rename from jquery.noty/tsconfig.json rename to types/jquery.noty/tsconfig.json diff --git a/jquery.payment/index.d.ts b/types/jquery.payment/index.d.ts similarity index 100% rename from jquery.payment/index.d.ts rename to types/jquery.payment/index.d.ts diff --git a/jquery.payment/jquery.payment-tests.ts b/types/jquery.payment/jquery.payment-tests.ts similarity index 100% rename from jquery.payment/jquery.payment-tests.ts rename to types/jquery.payment/jquery.payment-tests.ts diff --git a/jquery.payment/tsconfig.json b/types/jquery.payment/tsconfig.json similarity index 100% rename from jquery.payment/tsconfig.json rename to types/jquery.payment/tsconfig.json diff --git a/jquery.pjax.falsandtru/index.d.ts b/types/jquery.pjax.falsandtru/index.d.ts similarity index 100% rename from jquery.pjax.falsandtru/index.d.ts rename to types/jquery.pjax.falsandtru/index.d.ts diff --git a/jquery.pjax.falsandtru/jquery.pjax.falsandtru-tests.ts b/types/jquery.pjax.falsandtru/jquery.pjax.falsandtru-tests.ts similarity index 100% rename from jquery.pjax.falsandtru/jquery.pjax.falsandtru-tests.ts rename to types/jquery.pjax.falsandtru/jquery.pjax.falsandtru-tests.ts diff --git a/jquery.pjax.falsandtru/tsconfig.json b/types/jquery.pjax.falsandtru/tsconfig.json similarity index 100% rename from jquery.pjax.falsandtru/tsconfig.json rename to types/jquery.pjax.falsandtru/tsconfig.json diff --git a/jquery.pjax/index.d.ts b/types/jquery.pjax/index.d.ts similarity index 100% rename from jquery.pjax/index.d.ts rename to types/jquery.pjax/index.d.ts diff --git a/jquery.pjax/jquery.pjax-tests.ts b/types/jquery.pjax/jquery.pjax-tests.ts similarity index 100% rename from jquery.pjax/jquery.pjax-tests.ts rename to types/jquery.pjax/jquery.pjax-tests.ts diff --git a/jquery.pjax/tsconfig.json b/types/jquery.pjax/tsconfig.json similarity index 100% rename from jquery.pjax/tsconfig.json rename to types/jquery.pjax/tsconfig.json diff --git a/jquery.placeholder/index.d.ts b/types/jquery.placeholder/index.d.ts similarity index 100% rename from jquery.placeholder/index.d.ts rename to types/jquery.placeholder/index.d.ts diff --git a/jquery.placeholder/jquery.placeholder-tests.ts b/types/jquery.placeholder/jquery.placeholder-tests.ts similarity index 100% rename from jquery.placeholder/jquery.placeholder-tests.ts rename to types/jquery.placeholder/jquery.placeholder-tests.ts diff --git a/jquery.placeholder/tsconfig.json b/types/jquery.placeholder/tsconfig.json similarity index 100% rename from jquery.placeholder/tsconfig.json rename to types/jquery.placeholder/tsconfig.json diff --git a/jquery.pnotify/index.d.ts b/types/jquery.pnotify/index.d.ts similarity index 100% rename from jquery.pnotify/index.d.ts rename to types/jquery.pnotify/index.d.ts diff --git a/jquery.pnotify/jquery.pnotify-tests.ts b/types/jquery.pnotify/jquery.pnotify-tests.ts similarity index 100% rename from jquery.pnotify/jquery.pnotify-tests.ts rename to types/jquery.pnotify/jquery.pnotify-tests.ts diff --git a/jquery.pnotify/tsconfig.json b/types/jquery.pnotify/tsconfig.json similarity index 100% rename from jquery.pnotify/tsconfig.json rename to types/jquery.pnotify/tsconfig.json diff --git a/jquery.postmessage/index.d.ts b/types/jquery.postmessage/index.d.ts similarity index 100% rename from jquery.postmessage/index.d.ts rename to types/jquery.postmessage/index.d.ts diff --git a/jquery.postmessage/jquery.postmessage-tests.ts b/types/jquery.postmessage/jquery.postmessage-tests.ts similarity index 100% rename from jquery.postmessage/jquery.postmessage-tests.ts rename to types/jquery.postmessage/jquery.postmessage-tests.ts diff --git a/jquery.postmessage/tsconfig.json b/types/jquery.postmessage/tsconfig.json similarity index 100% rename from jquery.postmessage/tsconfig.json rename to types/jquery.postmessage/tsconfig.json diff --git a/jquery.prettyphoto/index.d.ts b/types/jquery.prettyphoto/index.d.ts similarity index 100% rename from jquery.prettyphoto/index.d.ts rename to types/jquery.prettyphoto/index.d.ts diff --git a/jquery.prettyphoto/jquery.prettyphoto-tests.ts b/types/jquery.prettyphoto/jquery.prettyphoto-tests.ts similarity index 100% rename from jquery.prettyphoto/jquery.prettyphoto-tests.ts rename to types/jquery.prettyphoto/jquery.prettyphoto-tests.ts diff --git a/jquery.prettyphoto/tsconfig.json b/types/jquery.prettyphoto/tsconfig.json similarity index 100% rename from jquery.prettyphoto/tsconfig.json rename to types/jquery.prettyphoto/tsconfig.json diff --git a/jquery.qrcode/index.d.ts b/types/jquery.qrcode/index.d.ts similarity index 100% rename from jquery.qrcode/index.d.ts rename to types/jquery.qrcode/index.d.ts diff --git a/jquery.qrcode/jquery.qrcode-tests.ts b/types/jquery.qrcode/jquery.qrcode-tests.ts similarity index 100% rename from jquery.qrcode/jquery.qrcode-tests.ts rename to types/jquery.qrcode/jquery.qrcode-tests.ts diff --git a/jquery.qrcode/tsconfig.json b/types/jquery.qrcode/tsconfig.json similarity index 100% rename from jquery.qrcode/tsconfig.json rename to types/jquery.qrcode/tsconfig.json diff --git a/jquery.rateit/index.d.ts b/types/jquery.rateit/index.d.ts similarity index 100% rename from jquery.rateit/index.d.ts rename to types/jquery.rateit/index.d.ts diff --git a/jquery.rateit/jquery.rateit-tests.ts b/types/jquery.rateit/jquery.rateit-tests.ts similarity index 100% rename from jquery.rateit/jquery.rateit-tests.ts rename to types/jquery.rateit/jquery.rateit-tests.ts diff --git a/jquery.rateit/tsconfig.json b/types/jquery.rateit/tsconfig.json similarity index 100% rename from jquery.rateit/tsconfig.json rename to types/jquery.rateit/tsconfig.json diff --git a/jquery.rowgrid/index.d.ts b/types/jquery.rowgrid/index.d.ts similarity index 100% rename from jquery.rowgrid/index.d.ts rename to types/jquery.rowgrid/index.d.ts diff --git a/jquery.rowgrid/jquery.rowgrid-tests.ts b/types/jquery.rowgrid/jquery.rowgrid-tests.ts similarity index 100% rename from jquery.rowgrid/jquery.rowgrid-tests.ts rename to types/jquery.rowgrid/jquery.rowgrid-tests.ts diff --git a/jquery.rowgrid/tsconfig.json b/types/jquery.rowgrid/tsconfig.json similarity index 100% rename from jquery.rowgrid/tsconfig.json rename to types/jquery.rowgrid/tsconfig.json diff --git a/jquery.scrollto/index.d.ts b/types/jquery.scrollto/index.d.ts similarity index 100% rename from jquery.scrollto/index.d.ts rename to types/jquery.scrollto/index.d.ts diff --git a/jquery.scrollto/jquery.scrollto-tests.ts b/types/jquery.scrollto/jquery.scrollto-tests.ts similarity index 100% rename from jquery.scrollto/jquery.scrollto-tests.ts rename to types/jquery.scrollto/jquery.scrollto-tests.ts diff --git a/jquery.scrollto/tsconfig.json b/types/jquery.scrollto/tsconfig.json similarity index 100% rename from jquery.scrollto/tsconfig.json rename to types/jquery.scrollto/tsconfig.json diff --git a/jquery.simplemodal/index.d.ts b/types/jquery.simplemodal/index.d.ts similarity index 100% rename from jquery.simplemodal/index.d.ts rename to types/jquery.simplemodal/index.d.ts diff --git a/jquery.simplemodal/jquery.simplemodal-tests.ts b/types/jquery.simplemodal/jquery.simplemodal-tests.ts similarity index 100% rename from jquery.simplemodal/jquery.simplemodal-tests.ts rename to types/jquery.simplemodal/jquery.simplemodal-tests.ts diff --git a/jquery.simplemodal/tsconfig.json b/types/jquery.simplemodal/tsconfig.json similarity index 100% rename from jquery.simplemodal/tsconfig.json rename to types/jquery.simplemodal/tsconfig.json diff --git a/jquery.simplepagination/index.d.ts b/types/jquery.simplepagination/index.d.ts similarity index 100% rename from jquery.simplepagination/index.d.ts rename to types/jquery.simplepagination/index.d.ts diff --git a/jquery.simplepagination/jquery.simplepagination-tests.ts b/types/jquery.simplepagination/jquery.simplepagination-tests.ts similarity index 100% rename from jquery.simplepagination/jquery.simplepagination-tests.ts rename to types/jquery.simplepagination/jquery.simplepagination-tests.ts diff --git a/jquery.simplepagination/tsconfig.json b/types/jquery.simplepagination/tsconfig.json similarity index 100% rename from jquery.simplepagination/tsconfig.json rename to types/jquery.simplepagination/tsconfig.json diff --git a/jquery.simulate/index.d.ts b/types/jquery.simulate/index.d.ts similarity index 100% rename from jquery.simulate/index.d.ts rename to types/jquery.simulate/index.d.ts diff --git a/jquery.simulate/jquery.simulate-tests.ts b/types/jquery.simulate/jquery.simulate-tests.ts similarity index 100% rename from jquery.simulate/jquery.simulate-tests.ts rename to types/jquery.simulate/jquery.simulate-tests.ts diff --git a/jquery.simulate/tsconfig.json b/types/jquery.simulate/tsconfig.json similarity index 100% rename from jquery.simulate/tsconfig.json rename to types/jquery.simulate/tsconfig.json diff --git a/jquery.slimscroll/index.d.ts b/types/jquery.slimscroll/index.d.ts similarity index 100% rename from jquery.slimscroll/index.d.ts rename to types/jquery.slimscroll/index.d.ts diff --git a/jquery.slimscroll/jquery.slimscroll-tests.ts b/types/jquery.slimscroll/jquery.slimscroll-tests.ts similarity index 100% rename from jquery.slimscroll/jquery.slimscroll-tests.ts rename to types/jquery.slimscroll/jquery.slimscroll-tests.ts diff --git a/jquery.slimscroll/tsconfig.json b/types/jquery.slimscroll/tsconfig.json similarity index 100% rename from jquery.slimscroll/tsconfig.json rename to types/jquery.slimscroll/tsconfig.json diff --git a/jquery.soap/index.d.ts b/types/jquery.soap/index.d.ts similarity index 100% rename from jquery.soap/index.d.ts rename to types/jquery.soap/index.d.ts diff --git a/jquery.soap/jquery.soap-tests.ts b/types/jquery.soap/jquery.soap-tests.ts similarity index 100% rename from jquery.soap/jquery.soap-tests.ts rename to types/jquery.soap/jquery.soap-tests.ts diff --git a/jquery.soap/tsconfig.json b/types/jquery.soap/tsconfig.json similarity index 100% rename from jquery.soap/tsconfig.json rename to types/jquery.soap/tsconfig.json diff --git a/jquery.sortelements/index.d.ts b/types/jquery.sortelements/index.d.ts similarity index 100% rename from jquery.sortelements/index.d.ts rename to types/jquery.sortelements/index.d.ts diff --git a/jquery.sortelements/tsconfig.json b/types/jquery.sortelements/tsconfig.json similarity index 100% rename from jquery.sortelements/tsconfig.json rename to types/jquery.sortelements/tsconfig.json diff --git a/jquery.superlink/index.d.ts b/types/jquery.superlink/index.d.ts similarity index 100% rename from jquery.superlink/index.d.ts rename to types/jquery.superlink/index.d.ts diff --git a/jquery.superlink/tsconfig.json b/types/jquery.superlink/tsconfig.json similarity index 100% rename from jquery.superlink/tsconfig.json rename to types/jquery.superlink/tsconfig.json diff --git a/jquery.tagsmanager/index.d.ts b/types/jquery.tagsmanager/index.d.ts similarity index 100% rename from jquery.tagsmanager/index.d.ts rename to types/jquery.tagsmanager/index.d.ts diff --git a/jquery.tagsmanager/jquery.tagsmanager-tests.ts b/types/jquery.tagsmanager/jquery.tagsmanager-tests.ts similarity index 100% rename from jquery.tagsmanager/jquery.tagsmanager-tests.ts rename to types/jquery.tagsmanager/jquery.tagsmanager-tests.ts diff --git a/jquery.tagsmanager/tsconfig.json b/types/jquery.tagsmanager/tsconfig.json similarity index 100% rename from jquery.tagsmanager/tsconfig.json rename to types/jquery.tagsmanager/tsconfig.json diff --git a/jquery.tile/index.d.ts b/types/jquery.tile/index.d.ts similarity index 100% rename from jquery.tile/index.d.ts rename to types/jquery.tile/index.d.ts diff --git a/jquery.tile/jquery.tile-tests.ts b/types/jquery.tile/jquery.tile-tests.ts similarity index 100% rename from jquery.tile/jquery.tile-tests.ts rename to types/jquery.tile/jquery.tile-tests.ts diff --git a/jquery.tile/tsconfig.json b/types/jquery.tile/tsconfig.json similarity index 100% rename from jquery.tile/tsconfig.json rename to types/jquery.tile/tsconfig.json diff --git a/jquery.timeago/index.d.ts b/types/jquery.timeago/index.d.ts similarity index 100% rename from jquery.timeago/index.d.ts rename to types/jquery.timeago/index.d.ts diff --git a/jquery.timeago/jquery.timeago-tests.ts b/types/jquery.timeago/jquery.timeago-tests.ts similarity index 100% rename from jquery.timeago/jquery.timeago-tests.ts rename to types/jquery.timeago/jquery.timeago-tests.ts diff --git a/jquery.timeago/tsconfig.json b/types/jquery.timeago/tsconfig.json similarity index 100% rename from jquery.timeago/tsconfig.json rename to types/jquery.timeago/tsconfig.json diff --git a/jquery.timepicker/index.d.ts b/types/jquery.timepicker/index.d.ts similarity index 100% rename from jquery.timepicker/index.d.ts rename to types/jquery.timepicker/index.d.ts diff --git a/jquery.timepicker/jquery.timepicker-tests.ts b/types/jquery.timepicker/jquery.timepicker-tests.ts similarity index 100% rename from jquery.timepicker/jquery.timepicker-tests.ts rename to types/jquery.timepicker/jquery.timepicker-tests.ts diff --git a/jquery.timepicker/tsconfig.json b/types/jquery.timepicker/tsconfig.json similarity index 100% rename from jquery.timepicker/tsconfig.json rename to types/jquery.timepicker/tsconfig.json diff --git a/jquery.timer/index.d.ts b/types/jquery.timer/index.d.ts similarity index 100% rename from jquery.timer/index.d.ts rename to types/jquery.timer/index.d.ts diff --git a/jquery.timer/jquery.timer-tests.ts b/types/jquery.timer/jquery.timer-tests.ts similarity index 100% rename from jquery.timer/jquery.timer-tests.ts rename to types/jquery.timer/jquery.timer-tests.ts diff --git a/jquery.timer/tsconfig.json b/types/jquery.timer/tsconfig.json similarity index 100% rename from jquery.timer/tsconfig.json rename to types/jquery.timer/tsconfig.json diff --git a/jquery.tinycarousel/index.d.ts b/types/jquery.tinycarousel/index.d.ts similarity index 100% rename from jquery.tinycarousel/index.d.ts rename to types/jquery.tinycarousel/index.d.ts diff --git a/jquery.tinycarousel/jquery.tinycarousel-tests.ts b/types/jquery.tinycarousel/jquery.tinycarousel-tests.ts similarity index 100% rename from jquery.tinycarousel/jquery.tinycarousel-tests.ts rename to types/jquery.tinycarousel/jquery.tinycarousel-tests.ts diff --git a/jquery.tinycarousel/tsconfig.json b/types/jquery.tinycarousel/tsconfig.json similarity index 100% rename from jquery.tinycarousel/tsconfig.json rename to types/jquery.tinycarousel/tsconfig.json diff --git a/jquery.tinyscrollbar/index.d.ts b/types/jquery.tinyscrollbar/index.d.ts similarity index 100% rename from jquery.tinyscrollbar/index.d.ts rename to types/jquery.tinyscrollbar/index.d.ts diff --git a/jquery.tinyscrollbar/jquery.tinyscrollbar-tests.ts b/types/jquery.tinyscrollbar/jquery.tinyscrollbar-tests.ts similarity index 100% rename from jquery.tinyscrollbar/jquery.tinyscrollbar-tests.ts rename to types/jquery.tinyscrollbar/jquery.tinyscrollbar-tests.ts diff --git a/jquery.tinyscrollbar/tsconfig.json b/types/jquery.tinyscrollbar/tsconfig.json similarity index 100% rename from jquery.tinyscrollbar/tsconfig.json rename to types/jquery.tinyscrollbar/tsconfig.json diff --git a/jquery.tipsy/index.d.ts b/types/jquery.tipsy/index.d.ts similarity index 100% rename from jquery.tipsy/index.d.ts rename to types/jquery.tipsy/index.d.ts diff --git a/jquery.tipsy/jquery.tipsy-tests.ts b/types/jquery.tipsy/jquery.tipsy-tests.ts similarity index 100% rename from jquery.tipsy/jquery.tipsy-tests.ts rename to types/jquery.tipsy/jquery.tipsy-tests.ts diff --git a/jquery.tipsy/tsconfig.json b/types/jquery.tipsy/tsconfig.json similarity index 100% rename from jquery.tipsy/tsconfig.json rename to types/jquery.tipsy/tsconfig.json diff --git a/jquery.tools/index.d.ts b/types/jquery.tools/index.d.ts similarity index 99% rename from jquery.tools/index.d.ts rename to types/jquery.tools/index.d.ts index e511a961fd..fa1bc80cb4 100644 --- a/jquery.tools/index.d.ts +++ b/types/jquery.tools/index.d.ts @@ -3,16 +3,15 @@ // Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// -declare interface JQuery { +interface JQuery { overlay(opts?: JQueryTools.overlay.OverlayOptions): JQuery; overlay(opts?: JQueryTools.overlay.OverlayOptions): T; data(key: 'overlay'): JQueryTools.overlay.Overlay; } -declare interface JQueryStatic { +interface JQueryStatic { tools: JQueryTools.ToolsStatic; } diff --git a/jquery.tools/jquery.tools-tests.ts b/types/jquery.tools/jquery.tools-tests.ts similarity index 92% rename from jquery.tools/jquery.tools-tests.ts rename to types/jquery.tools/jquery.tools-tests.ts index 443425e76b..5092b49bff 100644 --- a/jquery.tools/jquery.tools-tests.ts +++ b/types/jquery.tools/jquery.tools-tests.ts @@ -2,7 +2,7 @@ $("img[rel]").overlay(); - var triggers = $(".modalInput").overlay({ + const triggers = $(".modalInput").overlay({   // some mask tweaks suitable for modal dialogs mask: { @@ -14,10 +14,10 @@ closeOnClick: false }); - var buttons = $("#yesno button").click(function(this: JQuery, e: JQueryEventObject) { + const buttons = $("#yesno button").click(function(this: JQuery, e: JQueryEventObject) {   // get user input - var yes = buttons.index(this) === 0; + const yes = buttons.index(this) === 0;   // do something with the answer triggers.eq(0).html("You clicked " + (yes ? "yes" : "no")); @@ -42,7 +42,7 @@ $("#prompt form").submit(function(this: JQuery, e: JQueryEventObject) { triggers.data('overlay').close();   // get user input - var input = $("input", this).val(); + const input = $("input", this).val();   // do something with the answer triggers.eq(1).html(input); @@ -101,7 +101,7 @@ $(function() {   onBeforeLoad() { // grab wrapper element inside content - var wrap = this.getOverlay().find(".contentWrap"); + const wrap = this.getOverlay().find(".contentWrap");   // load the page specified in the trigger wrap.load(this.getTrigger().attr("href")); @@ -112,7 +112,7 @@ $(function() { $(() => { // positions for each overlay - var positions = [ + const positions = [ [0, 530], [400, 20], [400, 530], @@ -143,7 +143,7 @@ $(() => { $.tools.overlay.addEffect("drop", function(css, done) {   // use Overlay API to gain access to crucial elements - var conf = this.getConf(), + const conf = this.getConf(), overlay = this.getOverlay();   // determine initial position for the overlay diff --git a/jquery.tools/tsconfig.json b/types/jquery.tools/tsconfig.json similarity index 100% rename from jquery.tools/tsconfig.json rename to types/jquery.tools/tsconfig.json diff --git a/jquery-toastmessage-plugin/tslint.json b/types/jquery.tools/tslint.json similarity index 100% rename from jquery-toastmessage-plugin/tslint.json rename to types/jquery.tools/tslint.json diff --git a/jquery.tooltipster/index.d.ts b/types/jquery.tooltipster/index.d.ts similarity index 100% rename from jquery.tooltipster/index.d.ts rename to types/jquery.tooltipster/index.d.ts diff --git a/jquery.tooltipster/jquery.tooltipster-tests.ts b/types/jquery.tooltipster/jquery.tooltipster-tests.ts similarity index 100% rename from jquery.tooltipster/jquery.tooltipster-tests.ts rename to types/jquery.tooltipster/jquery.tooltipster-tests.ts diff --git a/jquery.tooltipster/tsconfig.json b/types/jquery.tooltipster/tsconfig.json similarity index 100% rename from jquery.tooltipster/tsconfig.json rename to types/jquery.tooltipster/tsconfig.json diff --git a/jquery.total-storage/index.d.ts b/types/jquery.total-storage/index.d.ts similarity index 100% rename from jquery.total-storage/index.d.ts rename to types/jquery.total-storage/index.d.ts diff --git a/jquery.total-storage/jquery.total-storage-tests.ts b/types/jquery.total-storage/jquery.total-storage-tests.ts similarity index 100% rename from jquery.total-storage/jquery.total-storage-tests.ts rename to types/jquery.total-storage/jquery.total-storage-tests.ts diff --git a/jquery.total-storage/tsconfig.json b/types/jquery.total-storage/tsconfig.json similarity index 100% rename from jquery.total-storage/tsconfig.json rename to types/jquery.total-storage/tsconfig.json diff --git a/jquery.transit/index.d.ts b/types/jquery.transit/index.d.ts similarity index 100% rename from jquery.transit/index.d.ts rename to types/jquery.transit/index.d.ts diff --git a/jquery.transit/jquery.transit-tests.ts b/types/jquery.transit/jquery.transit-tests.ts similarity index 100% rename from jquery.transit/jquery.transit-tests.ts rename to types/jquery.transit/jquery.transit-tests.ts diff --git a/jquery.transit/tsconfig.json b/types/jquery.transit/tsconfig.json similarity index 100% rename from jquery.transit/tsconfig.json rename to types/jquery.transit/tsconfig.json diff --git a/jquery.ui.datetimepicker/index.d.ts b/types/jquery.ui.datetimepicker/index.d.ts similarity index 100% rename from jquery.ui.datetimepicker/index.d.ts rename to types/jquery.ui.datetimepicker/index.d.ts diff --git a/jquery.ui.datetimepicker/jquery.ui.datetimepicker-tests.ts b/types/jquery.ui.datetimepicker/jquery.ui.datetimepicker-tests.ts similarity index 100% rename from jquery.ui.datetimepicker/jquery.ui.datetimepicker-tests.ts rename to types/jquery.ui.datetimepicker/jquery.ui.datetimepicker-tests.ts diff --git a/jquery.ui.datetimepicker/tsconfig.json b/types/jquery.ui.datetimepicker/tsconfig.json similarity index 100% rename from jquery.ui.datetimepicker/tsconfig.json rename to types/jquery.ui.datetimepicker/tsconfig.json diff --git a/jquery.ui.layout/index.d.ts b/types/jquery.ui.layout/index.d.ts similarity index 100% rename from jquery.ui.layout/index.d.ts rename to types/jquery.ui.layout/index.d.ts diff --git a/jquery.ui.layout/tsconfig.json b/types/jquery.ui.layout/tsconfig.json similarity index 100% rename from jquery.ui.layout/tsconfig.json rename to types/jquery.ui.layout/tsconfig.json diff --git a/jquery.uniform/index.d.ts b/types/jquery.uniform/index.d.ts similarity index 100% rename from jquery.uniform/index.d.ts rename to types/jquery.uniform/index.d.ts diff --git a/jquery.uniform/jquery.uniform-tests.ts b/types/jquery.uniform/jquery.uniform-tests.ts similarity index 100% rename from jquery.uniform/jquery.uniform-tests.ts rename to types/jquery.uniform/jquery.uniform-tests.ts diff --git a/jquery.uniform/tsconfig.json b/types/jquery.uniform/tsconfig.json similarity index 100% rename from jquery.uniform/tsconfig.json rename to types/jquery.uniform/tsconfig.json diff --git a/jquery.validation/index.d.ts b/types/jquery.validation/index.d.ts similarity index 100% rename from jquery.validation/index.d.ts rename to types/jquery.validation/index.d.ts diff --git a/jquery.validation/jquery.validation-tests.ts b/types/jquery.validation/jquery.validation-tests.ts similarity index 100% rename from jquery.validation/jquery.validation-tests.ts rename to types/jquery.validation/jquery.validation-tests.ts diff --git a/jquery.validation/tsconfig.json b/types/jquery.validation/tsconfig.json similarity index 100% rename from jquery.validation/tsconfig.json rename to types/jquery.validation/tsconfig.json diff --git a/jquery.watermark/index.d.ts b/types/jquery.watermark/index.d.ts similarity index 100% rename from jquery.watermark/index.d.ts rename to types/jquery.watermark/index.d.ts diff --git a/jquery.watermark/jquery.watermark-tests.ts b/types/jquery.watermark/jquery.watermark-tests.ts similarity index 100% rename from jquery.watermark/jquery.watermark-tests.ts rename to types/jquery.watermark/jquery.watermark-tests.ts diff --git a/jquery.watermark/tsconfig.json b/types/jquery.watermark/tsconfig.json similarity index 100% rename from jquery.watermark/tsconfig.json rename to types/jquery.watermark/tsconfig.json diff --git a/jquery.window/index.d.ts b/types/jquery.window/index.d.ts similarity index 100% rename from jquery.window/index.d.ts rename to types/jquery.window/index.d.ts diff --git a/jquery.window/jquery.window-tests.ts b/types/jquery.window/jquery.window-tests.ts similarity index 100% rename from jquery.window/jquery.window-tests.ts rename to types/jquery.window/jquery.window-tests.ts diff --git a/jquery.window/tsconfig.json b/types/jquery.window/tsconfig.json similarity index 100% rename from jquery.window/tsconfig.json rename to types/jquery.window/tsconfig.json diff --git a/jquery/index.d.ts b/types/jquery/index.d.ts similarity index 100% rename from jquery/index.d.ts rename to types/jquery/index.d.ts diff --git a/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts similarity index 100% rename from jquery/jquery-tests.ts rename to types/jquery/jquery-tests.ts diff --git a/jquery/tsconfig.json b/types/jquery/tsconfig.json similarity index 100% rename from jquery/tsconfig.json rename to types/jquery/tsconfig.json diff --git a/jquerymobile/index.d.ts b/types/jquerymobile/index.d.ts similarity index 100% rename from jquerymobile/index.d.ts rename to types/jquerymobile/index.d.ts diff --git a/jquerymobile/jquerymobile-tests.ts b/types/jquerymobile/jquerymobile-tests.ts similarity index 100% rename from jquerymobile/jquerymobile-tests.ts rename to types/jquerymobile/jquerymobile-tests.ts diff --git a/jquerymobile/tsconfig.json b/types/jquerymobile/tsconfig.json similarity index 100% rename from jquerymobile/tsconfig.json rename to types/jquerymobile/tsconfig.json diff --git a/jqueryui/index.d.ts b/types/jqueryui/index.d.ts similarity index 100% rename from jqueryui/index.d.ts rename to types/jqueryui/index.d.ts diff --git a/jqueryui/jqueryui-tests.ts b/types/jqueryui/jqueryui-tests.ts similarity index 100% rename from jqueryui/jqueryui-tests.ts rename to types/jqueryui/jqueryui-tests.ts diff --git a/jqueryui/tsconfig.json b/types/jqueryui/tsconfig.json similarity index 100% rename from jqueryui/tsconfig.json rename to types/jqueryui/tsconfig.json diff --git a/js-base64/index.d.ts b/types/js-base64/index.d.ts similarity index 100% rename from js-base64/index.d.ts rename to types/js-base64/index.d.ts diff --git a/js-base64/js-base64-tests.ts b/types/js-base64/js-base64-tests.ts similarity index 100% rename from js-base64/js-base64-tests.ts rename to types/js-base64/js-base64-tests.ts diff --git a/js-base64/tsconfig.json b/types/js-base64/tsconfig.json similarity index 100% rename from js-base64/tsconfig.json rename to types/js-base64/tsconfig.json diff --git a/js-beautify/index.d.ts b/types/js-beautify/index.d.ts similarity index 100% rename from js-beautify/index.d.ts rename to types/js-beautify/index.d.ts diff --git a/js-beautify/js-beautify-tests.ts b/types/js-beautify/js-beautify-tests.ts similarity index 100% rename from js-beautify/js-beautify-tests.ts rename to types/js-beautify/js-beautify-tests.ts diff --git a/js-beautify/tsconfig.json b/types/js-beautify/tsconfig.json similarity index 100% rename from js-beautify/tsconfig.json rename to types/js-beautify/tsconfig.json diff --git a/js-clipper/index.d.ts b/types/js-clipper/index.d.ts similarity index 100% rename from js-clipper/index.d.ts rename to types/js-clipper/index.d.ts diff --git a/js-clipper/js-clipper-tests.ts b/types/js-clipper/js-clipper-tests.ts similarity index 100% rename from js-clipper/js-clipper-tests.ts rename to types/js-clipper/js-clipper-tests.ts diff --git a/js-clipper/tsconfig.json b/types/js-clipper/tsconfig.json similarity index 100% rename from js-clipper/tsconfig.json rename to types/js-clipper/tsconfig.json diff --git a/js-combinatorics/index.d.ts b/types/js-combinatorics/index.d.ts similarity index 100% rename from js-combinatorics/index.d.ts rename to types/js-combinatorics/index.d.ts diff --git a/js-combinatorics/js-combinatorics-tests.ts b/types/js-combinatorics/js-combinatorics-tests.ts similarity index 100% rename from js-combinatorics/js-combinatorics-tests.ts rename to types/js-combinatorics/js-combinatorics-tests.ts diff --git a/js-combinatorics/tsconfig.json b/types/js-combinatorics/tsconfig.json similarity index 100% rename from js-combinatorics/tsconfig.json rename to types/js-combinatorics/tsconfig.json diff --git a/js-cookie/index.d.ts b/types/js-cookie/index.d.ts similarity index 100% rename from js-cookie/index.d.ts rename to types/js-cookie/index.d.ts diff --git a/js-cookie/js-cookie-tests.ts b/types/js-cookie/js-cookie-tests.ts similarity index 100% rename from js-cookie/js-cookie-tests.ts rename to types/js-cookie/js-cookie-tests.ts diff --git a/js-cookie/tsconfig.json b/types/js-cookie/tsconfig.json similarity index 100% rename from js-cookie/tsconfig.json rename to types/js-cookie/tsconfig.json diff --git a/js-data-angular/index.d.ts b/types/js-data-angular/index.d.ts similarity index 100% rename from js-data-angular/index.d.ts rename to types/js-data-angular/index.d.ts diff --git a/js-data-angular/js-data-angular-tests.ts b/types/js-data-angular/js-data-angular-tests.ts similarity index 100% rename from js-data-angular/js-data-angular-tests.ts rename to types/js-data-angular/js-data-angular-tests.ts diff --git a/js-data-angular/tsconfig.json b/types/js-data-angular/tsconfig.json similarity index 100% rename from js-data-angular/tsconfig.json rename to types/js-data-angular/tsconfig.json diff --git a/js-data-http/index.d.ts b/types/js-data-http/index.d.ts similarity index 98% rename from js-data-http/index.d.ts rename to types/js-data-http/index.d.ts index 2fa9c0e09a..2a2fafcedb 100644 --- a/js-data-http/index.d.ts +++ b/types/js-data-http/index.d.ts @@ -6,7 +6,6 @@ import * as JSData from 'js-data'; declare module 'js-data' { - interface DSHttpAdapterOptions { serialize?: (resourceName: string, data: any) => any; deserialize?: (resourceName: string, data: any) => any; @@ -27,7 +26,6 @@ declare module 'js-data' { } interface DSHttpAdapter extends IDSAdapter { - new(options?: DSHttpAdapterOptions): DSHttpAdapter; defaults: DSHttpAdapterOptions; @@ -44,4 +42,4 @@ declare module 'js-data' { declare var DSHttpAdapter: JSData.DSHttpAdapter; export = DSHttpAdapter; -export as namespace DSHttpAdapter; \ No newline at end of file +export as namespace DSHttpAdapter; diff --git a/js-data-http/js-data-http-tests.ts b/types/js-data-http/js-data-http-tests.ts similarity index 95% rename from js-data-http/js-data-http-tests.ts rename to types/js-data-http/js-data-http-tests.ts index d98cdd642a..082d34a71f 100644 --- a/js-data-http/js-data-http-tests.ts +++ b/types/js-data-http/js-data-http-tests.ts @@ -3,14 +3,14 @@ import DSHttpAdapter = require("js-data-http"); declare var axios: any; -var adapter = new DSHttpAdapter(); -var store = new JSData.DS(); +const adapter = new DSHttpAdapter(); +const store = new JSData.DS(); store.registerAdapter('http', adapter, { default: true }); adapter.defaults.basePath = '/api'; adapter.http = axios; -var ADocument: JSData.DSResourceDefinition = store.defineResource('document'); +const ADocument: JSData.DSResourceDefinition = store.defineResource('document'); ADocument.inject({ id: 5, author: 'John' }); @@ -79,9 +79,9 @@ adapter.GET('/user/1').then(data => { data.config; // {...} }); -var User: JSData.DSResourceDefinition = store.defineResource('user'); +const User: JSData.DSResourceDefinition = store.defineResource('user'); -var params: any = { +let params: any = { age: { '>': 30 } @@ -119,7 +119,7 @@ ADocument.find(5).then((document: any) => { ADocument.get(document.id); // { id: 5, author: 'John Anderson' } }); -var params: any = { +params = { author: 'John' }; diff --git a/js-data-http/tsconfig.json b/types/js-data-http/tsconfig.json similarity index 100% rename from js-data-http/tsconfig.json rename to types/js-data-http/tsconfig.json diff --git a/js-data-http/tslint.json b/types/js-data-http/tslint.json similarity index 100% rename from js-data-http/tslint.json rename to types/js-data-http/tslint.json diff --git a/js-data/index.d.ts b/types/js-data/index.d.ts similarity index 100% rename from js-data/index.d.ts rename to types/js-data/index.d.ts diff --git a/js-data/js-data-tests.ts b/types/js-data/js-data-tests.ts similarity index 100% rename from js-data/js-data-tests.ts rename to types/js-data/js-data-tests.ts diff --git a/js-data/tsconfig.json b/types/js-data/tsconfig.json similarity index 100% rename from js-data/tsconfig.json rename to types/js-data/tsconfig.json diff --git a/js-data/v1/index.d.ts b/types/js-data/v1/index.d.ts similarity index 100% rename from js-data/v1/index.d.ts rename to types/js-data/v1/index.d.ts diff --git a/js-data/v1/js-data-tests.ts b/types/js-data/v1/js-data-tests.ts similarity index 100% rename from js-data/v1/js-data-tests.ts rename to types/js-data/v1/js-data-tests.ts diff --git a/js-data/v1/tsconfig.json b/types/js-data/v1/tsconfig.json similarity index 100% rename from js-data/v1/tsconfig.json rename to types/js-data/v1/tsconfig.json diff --git a/js-fixtures/index.d.ts b/types/js-fixtures/index.d.ts similarity index 100% rename from js-fixtures/index.d.ts rename to types/js-fixtures/index.d.ts diff --git a/js-fixtures/js-fixtures-tests.ts b/types/js-fixtures/js-fixtures-tests.ts similarity index 100% rename from js-fixtures/js-fixtures-tests.ts rename to types/js-fixtures/js-fixtures-tests.ts diff --git a/js-fixtures/tsconfig.json b/types/js-fixtures/tsconfig.json similarity index 100% rename from js-fixtures/tsconfig.json rename to types/js-fixtures/tsconfig.json diff --git a/js-git/index.d.ts b/types/js-git/index.d.ts similarity index 100% rename from js-git/index.d.ts rename to types/js-git/index.d.ts diff --git a/js-git/js-git-tests.ts b/types/js-git/js-git-tests.ts similarity index 100% rename from js-git/js-git-tests.ts rename to types/js-git/js-git-tests.ts diff --git a/js-git/tsconfig.json b/types/js-git/tsconfig.json similarity index 100% rename from js-git/tsconfig.json rename to types/js-git/tsconfig.json diff --git a/js-md5/index.d.ts b/types/js-md5/index.d.ts similarity index 100% rename from js-md5/index.d.ts rename to types/js-md5/index.d.ts diff --git a/js-md5/js-md5-tests.ts b/types/js-md5/js-md5-tests.ts similarity index 100% rename from js-md5/js-md5-tests.ts rename to types/js-md5/js-md5-tests.ts diff --git a/js-md5/tsconfig.json b/types/js-md5/tsconfig.json similarity index 100% rename from js-md5/tsconfig.json rename to types/js-md5/tsconfig.json diff --git a/jquery.tools/tslint.json b/types/js-md5/tslint.json similarity index 100% rename from jquery.tools/tslint.json rename to types/js-md5/tslint.json diff --git a/js-priority-queue/index.d.ts b/types/js-priority-queue/index.d.ts similarity index 100% rename from js-priority-queue/index.d.ts rename to types/js-priority-queue/index.d.ts diff --git a/js-priority-queue/js-priority-queue-tests.ts b/types/js-priority-queue/js-priority-queue-tests.ts similarity index 100% rename from js-priority-queue/js-priority-queue-tests.ts rename to types/js-priority-queue/js-priority-queue-tests.ts diff --git a/js-priority-queue/tsconfig.json b/types/js-priority-queue/tsconfig.json similarity index 100% rename from js-priority-queue/tsconfig.json rename to types/js-priority-queue/tsconfig.json diff --git a/js-quantities/index.d.ts b/types/js-quantities/index.d.ts similarity index 98% rename from js-quantities/index.d.ts rename to types/js-quantities/index.d.ts index 5d4a8df304..ab76433c0d 100644 --- a/js-quantities/index.d.ts +++ b/types/js-quantities/index.d.ts @@ -5,7 +5,7 @@ declare const Qty: Qty.Type; -declare interface Qty { +interface Qty { readonly numerator: string[]; readonly denominator: string[]; readonly scalar: number; @@ -39,7 +39,6 @@ declare interface Qty { } declare namespace Qty { - interface Type { (value: Source): Qty; (value: number, unit: string): Qty; diff --git a/js-quantities/js-quantities-tests.ts b/types/js-quantities/js-quantities-tests.ts similarity index 88% rename from js-quantities/js-quantities-tests.ts rename to types/js-quantities/js-quantities-tests.ts index ed69816dc3..e7734e7520 100644 --- a/js-quantities/js-quantities-tests.ts +++ b/types/js-quantities/js-quantities-tests.ts @@ -84,13 +84,13 @@ Qty('10ohm').inverse(); // '.1/ohm' (not '.1S', although they are equivalent) // however, the 'to' command will convert between inverses also Qty('10ohm').to('S'); // '.1S' -var convert = Qty.swiftConverter('m/h', 'ft/s'); // Configures converter +const convert = Qty.swiftConverter('m/h', 'ft/s'); // Configures converter // Converting single value -var converted = convert(2500); // => 2.278.. +const converted = convert(2500); // => 2.278.. // Converting large array of values -var convertedSerie = convert([2500, 5000]); // => [2.278.., 4.556.., ...] +const convertedSerie = convert([2500, 5000]); // => [2.278.., 4.556.., ...] qty1.eq(qty2); // => true if both quantities are equal (1m == 100cm => true) qty1.same(qty2); // => true if both quantities are same (1m == 100cm => false) @@ -138,10 +138,10 @@ qty = Qty('1.1234 m'); qty.format(); // same units, default formatter => '1.234 m' qty.format('cm'); // converted to 'cm', default formatter => '123.45 cm' -var configurableRoundingFormatter = (maxDecimals: number) => { +const configurableRoundingFormatter = (maxDecimals: number) => { return (scalar: number, units: string) => { - var pow = Math.pow(10, maxDecimals); - var rounded = Math.round(scalar * pow) / pow; + const pow = Math.pow(10, maxDecimals); + const rounded = Math.round(scalar * pow) / pow; return rounded + ' ' + units; }; @@ -200,13 +200,13 @@ describe("js-quantities", () => { describe("initialization", () => { it("should create unit only", () => { - var qty = Qty("m"); + const qty = Qty("m"); expect(qty.numerator).toEqual([""]); expect(qty.scalar).toBe(1); }); it("should create unitless", () => { - var qty = Qty("1"); + let qty = Qty("1"); expect(qty.toFloat()).toBe(1); expect(qty.numerator).toEqual(["<1>"]); expect(qty.denominator).toEqual(["<1>"]); @@ -217,21 +217,21 @@ describe("js-quantities", () => { }); it("should create unitless from numbers", () => { - var qty = Qty(1.5); + const qty = Qty(1.5); expect(qty.toFloat()).toBe(1.5); expect(qty.numerator).toEqual(["<1>"]); expect(qty.denominator).toEqual(["<1>"]); }); it("should create from numbers with explicit units", () => { - var qty = Qty(1.5, "m"); + const qty = Qty(1.5, "m"); expect(qty.scalar).toBe(1.5); expect(qty.numerator).toEqual([""]); expect(qty.denominator).toEqual(["<1>"]); }); it("temperatures should have base unit in kelvin", () => { - var qty = Qty("1 tempK").toBase(); + let qty = Qty("1 tempK").toBase(); expect(qty.scalar).toBe(1); expect(qty.units()).toBe("tempK"); @@ -249,7 +249,7 @@ describe("js-quantities", () => { }); it("temperature degrees should have base unit in kelvin", () => { - var qty = Qty("1 degK").toBase(); + let qty = Qty("1 degK").toBase(); expect(qty.scalar).toBe(1); expect(qty.units()).toBe("degK"); @@ -272,7 +272,7 @@ describe("js-quantities", () => { expect(() => { Qty("-459.68 tempF"); }).toThrow("Temperatures must not be less than absolute zero"); expect(() => { Qty("-1 tempR"); }).toThrow("Temperatures must not be less than absolute zero"); - var qty = Qty("1 tempK"); + let qty = Qty("1 tempK"); expect(() => { qty.mul("-1"); }).toThrow("Temperatures must not be less than absolute zero"); qty = Qty("0 tempK"); @@ -289,28 +289,28 @@ describe("js-quantities", () => { }); it("should create simple", () => { - var qty = Qty("1m"); + const qty = Qty("1m"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual([""]); expect(qty.denominator).toEqual(["<1>"]); }); it("should create negative", () => { - var qty = Qty("-1m"); + const qty = Qty("-1m"); expect(qty.scalar).toBe(-1); expect(qty.numerator).toEqual([""]); expect(qty.denominator).toEqual(["<1>"]); }); it("should create compound", () => { - var qty = Qty("1 N*m"); + const qty = Qty("1 N*m"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual(["", ""]); expect(qty.denominator).toEqual(["<1>"]); }); it("should create pressure units in term of height of water", () => { - var qty = Qty("1 inH2O"); + let qty = Qty("1 inH2O"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual([""]); @@ -320,14 +320,14 @@ describe("js-quantities", () => { }); it("should create with denominator", () => { - var qty = Qty("1 m/s"); + const qty = Qty("1 m/s"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual([""]); expect(qty.denominator).toEqual([""]); }); it("should create with denominator only", () => { - var qty = Qty("1 /s"); + let qty = Qty("1 /s"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual(["<1>"]); expect(qty.denominator).toEqual([""]); @@ -344,7 +344,7 @@ describe("js-quantities", () => { }); it("should create with powers", () => { - var qty = Qty("1 m^2/s^2"); + let qty = Qty("1 m^2/s^2"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual(["", ""]); expect(qty.denominator).toEqual(["", ""]); @@ -359,14 +359,14 @@ describe("js-quantities", () => { }); it("should create with zero power", () => { - var qty = Qty("1 m^0"); + const qty = Qty("1 m^0"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual(["<1>"]); expect(qty.denominator).toEqual(["<1>"]); }); it("should create with negative powers", () => { - var qty = Qty("1 m^2 s^-2"); + const qty = Qty("1 m^2 s^-2"); expect(qty.scalar).toBe(1); expect(qty.numerator).toEqual(["", ""]); expect(qty.denominator).toEqual(["", ""]); @@ -374,26 +374,26 @@ describe("js-quantities", () => { }); it("should accept powers without ^ syntax (simple)", () => { - var qty1 = Qty("1 m2"); - var qty2 = Qty("1 m^2"); + const qty1 = Qty("1 m2"); + const qty2 = Qty("1 m^2"); expect(qty1.eq(qty2)).toBe(true); }); it("should accept powers without ^ syntax (negative power)", () => { - var qty1 = Qty("1 m-2"); - var qty2 = Qty("1 m^-2"); + const qty1 = Qty("1 m-2"); + const qty2 = Qty("1 m^-2"); expect(qty1.eq(qty2)).toBe(true); }); it("should accept powers without ^ syntax (compound)", () => { - var qty1 = Qty("1 m^2 kg^2 J^2/s^2"); - var qty2 = Qty("1 m2 kg2 J2/s2"); + const qty1 = Qty("1 m^2 kg^2 J^2/s^2"); + const qty2 = Qty("1 m2 kg2 J2/s2"); expect(qty1.eq(qty2)).toBe(true); }); it("should accept powers without ^ syntax (compound and negative power)", () => { - var qty1 = Qty("1 m^2 kg^2 J^2 s^-2"); - var qty2 = Qty("1 m2 kg2 J2 s-2"); + const qty1 = Qty("1 m^2 kg^2 J^2 s^-2"); + const qty2 = Qty("1 m2 kg2 J2 s-2"); expect(qty1.eq(qty2)).toBe(true); }); @@ -424,7 +424,7 @@ describe("js-quantities", () => { }); it("should set baseScalar", () => { - var qty = Qty("0.018 MPa"); + let qty = Qty("0.018 MPa"); expect(qty.baseScalar).toBe(18000); qty = Qty("66 cm3"); @@ -432,8 +432,8 @@ describe("js-quantities", () => { }); it("should keep init value as is", () => { - var initValue = " 66 cm3 "; - var qty = Qty(initValue); + const initValue = " 66 cm3 "; + const qty = Qty(initValue); expect(qty.initValue).toEqual(initValue); }); @@ -443,7 +443,7 @@ describe("js-quantities", () => { }); it("should allow whitespaces between sign and scalar", () => { - var qty = Qty("- 1m"); + const qty = Qty("- 1m"); expect(qty.scalar).toEqual(-1); expect(qty.units()).toEqual("m"); @@ -457,23 +457,23 @@ describe("js-quantities", () => { describe("isCompatible", () => { it("should return true with compatible quantities", () => { - var qty1 = Qty("1 m*kg/s"); - var qty2 = Qty("1 in*pound/min"); + const qty1 = Qty("1 m*kg/s"); + let qty2 = Qty("1 in*pound/min"); expect(qty1.isCompatible(qty2)).toBe(true); qty2 = Qty("1 in/min"); expect(qty1.isCompatible(qty2)).toBe(false); }); it("should return true with dimensionless quantities", () => { - var qty1 = Qty("1"); - var qty2 = Qty("2"); + const qty1 = Qty("1"); + const qty2 = Qty("2"); expect(qty1.isCompatible(qty2)).toBe(true); }); }); describe("conversion", () => { it("should convert to base units", () => { - var qty = Qty("100 cm"); + let qty = Qty("100 cm"); expect(qty.toBase().scalar).toBe(1); expect(qty.toBase().units()).toBe("m"); qty = Qty("10 cm"); @@ -485,7 +485,7 @@ describe("js-quantities", () => { }); it("should convert to compatible units", () => { - var qty = Qty("10 cm"); + let qty = Qty("10 cm"); expect(qty.to("ft").scalar).toBe(Qty.divSafe(0.1, 0.3048)); qty = Qty("2m^3"); expect(qty.to("l").scalar).toBe(2000); @@ -518,7 +518,7 @@ describe("js-quantities", () => { }); it("should convert temperatures to compatible units", () => { - var qty = Qty("0 tempK"); + let qty = Qty("0 tempK"); expect(qty.to("tempC").scalar).toBe(-273.15); qty = Qty("0 tempF"); @@ -532,7 +532,7 @@ describe("js-quantities", () => { }); it("should convert temperature degrees to compatible units", () => { - var qty = Qty("0 degK"); + let qty = Qty("0 degK"); expect(qty.to("degC").scalar).toBe(0); qty = Qty("1 degK/s"); @@ -547,7 +547,7 @@ describe("js-quantities", () => { it("should convert temperature degrees to temperatures", () => { // according to ruby-units, deg -> temp conversion adds the degress to 0 kelvin before converting - var qty = Qty("100 degC"); + let qty = Qty("100 degC"); expect(qty.to("tempC").scalar).toBeCloseTo(-173.15, 10); qty = Qty("273.15 degC"); @@ -559,7 +559,7 @@ describe("js-quantities", () => { it("should convert temperatures to temperature degrees", () => { // according to ruby-units, temp -> deg conversion always uses the 0 relative degrees - var qty = Qty("100 tempC"); + let qty = Qty("100 tempC"); expect(qty.to("degC").scalar).toBe(100); qty = Qty("0 tempK"); @@ -576,8 +576,8 @@ describe("js-quantities", () => { }); it("should calculate inverses", () => { - var qty = Qty("1 ohm"); - var result = qty.to("siemens"); + let qty = Qty("1 ohm"); + let result = qty.to("siemens"); expect(result.scalar).toBe(1); expect(result.kind()).toBe("conductance"); @@ -611,7 +611,7 @@ describe("js-quantities", () => { }); it("should return itself if target units are the same", () => { - var qty = Qty("123 cm3"); + let qty = Qty("123 cm3"); expect(qty.to("cm3")).toBe(qty); expect(qty.to("cm^3")).toBe(qty); @@ -621,7 +621,7 @@ describe("js-quantities", () => { }); it("should be cached", () => { - var qty = Qty("100 m"), + const qty = Qty("100 m"), converted = qty.to("ft"); expect(qty.to("ft") === converted).toBe(true); @@ -630,16 +630,16 @@ describe("js-quantities", () => { describe("comparison", () => { it("should return true when comparing equal quantities", () => { - var qty1 = Qty("1cm"); - var qty2 = Qty("10mm"); + const qty1 = Qty("1cm"); + const qty2 = Qty("10mm"); expect(qty1.eq(qty2)).toBe(true); }); it("should compare compatible quantities", () => { - var qty1 = Qty("1cm"); - var qty2 = Qty("1mm"); - var qty3 = Qty("10mm"); - var qty4 = Qty("28A"); + const qty1 = Qty("1cm"); + const qty2 = Qty("1mm"); + const qty3 = Qty("10mm"); + const qty4 = Qty("28A"); expect(qty1.compareTo(qty2)).toBe(1); expect(qty2.compareTo(qty1)).toBe(-1); expect(qty1.compareTo(qty3)).toBe(0); @@ -654,21 +654,20 @@ describe("js-quantities", () => { }); it("should compare identical quantities", () => { - var qty1 = Qty("1cm"); - var qty2 = Qty("1cm"); - var qty3 = Qty("10mm"); + const qty1 = Qty("1cm"); + const qty2 = Qty("1cm"); + const qty3 = Qty("10mm"); expect(qty1.same(qty2)).toBe(true); expect(qty1.same(qty3)).toBe(false); }); it("should accept strings as parameter", () => { - var qty = Qty("1 cm"); + const qty = Qty("1 cm"); expect(qty.lt("0.5 cm")).toBe(false); expect(qty.lte("1 cm")).toBe(true); expect(qty.gte("3 mm")).toBe(true); expect(qty.gt("5 m")).toBe(false); }); - }); describe("non-ASCII character", () => { @@ -692,16 +691,15 @@ describe("js-quantities", () => { }); describe("math", () => { - it("should add quantities", () => { - var qty1 = Qty("2.5m"); - var qty2 = Qty("3m"); + const qty1 = Qty("2.5m"); + let qty2 = Qty("3m"); expect(qty1.add(qty2).scalar).toBe(5.5); expect(qty1.add("3m").scalar).toBe(5.5); qty2 = Qty("3cm"); - var result = qty1.add(qty2); + let result = qty1.add(qty2); expect(result.scalar).toBe(2.53); expect(result.units()).toBe("m"); @@ -716,15 +714,15 @@ describe("js-quantities", () => { }); it("should fail to add unlike quantities", () => { - var qty1 = Qty("3m"); - var qty2 = Qty("2s"); + const qty1 = Qty("3m"); + const qty2 = Qty("2s"); expect(() => { qty1.add(qty2); }).toThrow("Incompatible units"); expect(() => { qty2.add(qty1); }).toThrow("Incompatible units"); }); it("should fail to add inverse quantities", () => { - var qty1 = Qty("10S"); - var qty2 = qty1.inverse(); + let qty1 = Qty("10S"); + let qty2 = qty1.inverse(); expect(() => { qty1.add(qty2); }).toThrow("Incompatible units"); expect(() => { qty2.add(qty1); }).toThrow("Incompatible units"); @@ -735,15 +733,15 @@ describe("js-quantities", () => { }); it("should subtract quantities", () => { - var qty1 = Qty("2.5m"); - var qty2 = Qty("3m"); + const qty1 = Qty("2.5m"); + let qty2 = Qty("3m"); expect(qty1.sub(qty2).scalar).toBe(-0.5); expect(qty1.sub("2m").scalar).toBe(0.5); expect(qty1.sub("-2m").scalar).toBe(4.5); qty2 = Qty("3cm"); - var result = qty1.sub(qty2); + let result = qty1.sub(qty2); expect(result.scalar).toBe(2.47); expect(result.units()).toBe("m"); @@ -753,15 +751,15 @@ describe("js-quantities", () => { }); it("should fail to subtract unlike quantities", () => { - var qty1 = Qty("3m"); - var qty2 = Qty("2s"); + const qty1 = Qty("3m"); + const qty2 = Qty("2s"); expect(() => { qty1.sub(qty2); }).toThrow("Incompatible units"); expect(() => { qty2.sub(qty1); }).toThrow("Incompatible units"); }); it("should fail to subtract inverse quantities", () => { - var qty1 = Qty("10S"); - var qty2 = qty1.inverse(); + let qty1 = Qty("10S"); + let qty2 = qty1.inverse(); expect(() => { qty1.sub(qty2); }).toThrow("Incompatible units"); expect(() => { qty2.sub(qty1); }).toThrow("Incompatible units"); @@ -772,9 +770,9 @@ describe("js-quantities", () => { }); it("should multiply quantities", () => { - var qty1 = Qty("2.5m"); - var qty2 = Qty("3m"); - var result = qty1.mul(qty2); + const qty1 = Qty("2.5m"); + let qty2 = Qty("3m"); + let result = qty1.mul(qty2); expect(result.scalar).toBe(7.5); expect(result.units()).toBe("m2"); expect(result.kind()).toBe("area"); @@ -807,10 +805,10 @@ describe("js-quantities", () => { }); it("should multiply unlike quantities", () => { - var qty1 = Qty("2.5 m"); - var qty2 = Qty("3 N"); + let qty1 = Qty("2.5 m"); + let qty2 = Qty("3 N"); - var result = qty1.mul(qty2); + let result = qty1.mul(qty2); expect(result.scalar).toBe(7.5); qty1 = Qty("2.5 m^2"); @@ -822,11 +820,11 @@ describe("js-quantities", () => { }); it("should multiply inverse quantities", () => { - var qty1 = Qty("10S"); - var qty2 = Qty(".5S").inverse(); // 2/S - var qty3 = qty1.inverse(); // .1/S + const qty1 = Qty("10S"); + const qty2 = Qty(".5S").inverse(); // 2/S + const qty3 = qty1.inverse(); // .1/S - var result = qty1.mul(qty2); + let result = qty1.mul(qty2); expect(result.scalar).toBe(20); expect(result.isUnitless()).toBe(true); expect(result.units()).toBe(""); @@ -848,20 +846,20 @@ describe("js-quantities", () => { }); it("should divide quantities", () => { - var qty1 = Qty("2.5m"); - var qty2 = Qty("3m"); - var qty3 = Qty("0m"); + const qty1 = Qty("2.5m"); + const qty2 = Qty("3m"); + const qty3 = Qty("0m"); expect(() => { qty1.div(qty3); }).toThrow("Divide by zero"); expect(() => { qty1.div(0); }).toThrow("Divide by zero"); expect(qty3.div(qty1).scalar).toBe(0); - var result = qty1.div(qty2); + let result = qty1.div(qty2); expect(result.scalar).toBe(2.5 / 3); expect(result.units()).toBe(""); expect(result.kind()).toBe("unitless"); - var qty4 = Qty("3cm"); + const qty4 = Qty("3cm"); result = qty1.div(qty4); expect(result.scalar).toBe(2.5 / 0.03); expect(result.units()).toBe(""); @@ -876,20 +874,20 @@ describe("js-quantities", () => { }); it("should divide unlike quantities", () => { - var qty1 = Qty("7.5kg"); - var qty2 = Qty("2.5m^2"); + const qty1 = Qty("7.5kg"); + const qty2 = Qty("2.5m^2"); - var result = qty1.div(qty2); + const result = qty1.div(qty2); expect(result.scalar).toBe(3); expect(result.units()).toBe("kg/m2"); }); it("should divide inverse quantities", () => { - var qty1 = Qty("10 S"); - var qty2 = Qty(".5 S").inverse(); // 2/S - var qty3 = qty1.inverse(); // .1/S + const qty1 = Qty("10 S"); + const qty2 = Qty(".5 S").inverse(); // 2/S + const qty3 = qty1.inverse(); // .1/S - var result = qty1.div(qty2); + let result = qty1.div(qty2); expect(result.scalar).toBe(5); expect(result.units()).toBe("S2"); @@ -905,18 +903,16 @@ describe("js-quantities", () => { expect(result.scalar).toBe(0.01); expect(result.units()).toBe("1/S2"); }); - }); describe("math with temperatures", () => { - it("should add temperature degrees", () => { - var qty = Qty("2degC"); + let qty = Qty("2degC"); expect(qty.add("3degF").scalar).toBeCloseTo(11 / 3, 10); expect(qty.add("-1degC").scalar).toBe(1); qty = Qty("2 degC"); - var result = qty.add("2 degF"); + let result = qty.add("2 degF"); expect(result.scalar).toBe(28 / 9); expect(result.units()).toBe("degC"); @@ -932,14 +928,14 @@ describe("js-quantities", () => { }); it("should not add two temperatures", () => { - var qty = Qty("2tempC"); + const qty = Qty("2tempC"); expect(() => { qty.add("1 tempF"); }).toThrow("Cannot add two temperatures"); expect(() => { qty.add("1 tempC"); }).toThrow("Cannot add two temperatures"); }); it("should add temperatures to degrees", () => { - var qty = Qty("2degC"); - var result = qty.add("3tempF"); + let qty = Qty("2degC"); + let result = qty.add("3tempF"); expect(result.scalar).toBe(33 / 5); expect(result.units()).toBe("tempF"); @@ -954,33 +950,33 @@ describe("js-quantities", () => { }); it("should subtract degrees from degrees", () => { - var qty = Qty("2degC"); + const qty = Qty("2degC"); expect(qty.sub("1.5degK").scalar).toBe(0.5); expect(qty.sub("-2degC").scalar).toBe(4); expect(qty.sub("1degF").scalar).toBe(2 - 5 / 9); expect(qty.sub("-1degC").scalar).toBe(3); - var result = qty.sub("degC"); + const result = qty.sub("degC"); expect(result.scalar).toBe(1); expect(result.units()).toBe("degC"); }); it("should subtract degrees from temperatures", () => { - var qty = Qty("2tempC"); + const qty = Qty("2tempC"); expect(qty.sub("1.5degK").scalar).toBe(0.5); expect(qty.sub("-2degC").scalar).toBe(4); expect(qty.sub("1degF").scalar).toBe(2 - 5 / 9); expect(qty.sub("-1degC").scalar).toBe(3); - var result = qty.sub("degC"); + const result = qty.sub("degC"); expect(result.scalar).toBe(1); expect(result.units()).toBe("tempC"); }); it("should subtract temperatures from temperatures", () => { - var qty = Qty("2tempC"); + const qty = Qty("2tempC"); - var result = qty.sub("1.5tempK"); + let result = qty.sub("1.5tempK"); expect(result.scalar).toBe(273.65); expect(result.units()).toBe("degC"); @@ -994,14 +990,14 @@ describe("js-quantities", () => { }); it("should not subtract temperatures from degrees", () => { - var qty = Qty("2degC"); + const qty = Qty("2degC"); expect(() => { qty.sub("1 tempF"); }).toThrow("Cannot subtract a temperature from a differential degree unit"); expect(() => { qty.sub("1 tempC"); }).toThrow("Cannot subtract a temperature from a differential degree unit"); }); it("should multiply temperature degrees", () => { - var qty = Qty("2degF"); - var result = qty.mul(3); + let qty = Qty("2degF"); + let result = qty.mul(3); expect(result.scalar).toBe(6); expect(result.units()).toBe("degF"); @@ -1022,12 +1018,12 @@ describe("js-quantities", () => { }); it("should not multiply temperatures except by scalar", () => { - var qty = Qty("2tempF"); + const qty = Qty("2tempF"); expect(() => { qty.mul("1 tempC"); }).toThrow("Cannot multiply by temperatures"); expect(() => { qty.mul("1 degC"); }).toThrow("Cannot multiply by temperatures"); expect(() => { Qty("1 tempC*s"); }).toThrow("Cannot multiply by temperatures"); - var result = qty.mul(2); + let result = qty.mul(2); expect(result.scalar).toBe(4); expect(result.units()).toBe("tempF"); @@ -1037,10 +1033,10 @@ describe("js-quantities", () => { }); it("should multiply temperature degrees with unlike quantities", () => { - var qty1 = Qty("2.5 degF"); - var qty2 = Qty("3 m"); + let qty1 = Qty("2.5 degF"); + let qty2 = Qty("3 m"); - var result = qty1.mul(qty2); + let result = qty1.mul(qty2); expect(result.scalar).toBe(7.5); qty1 = Qty("2.5 degF"); @@ -1052,23 +1048,23 @@ describe("js-quantities", () => { }); it("should divide temperature degrees with unlike quantities", () => { - var qty1 = Qty("7.5degF"); - var qty2 = Qty("2.5m^2"); + const qty1 = Qty("7.5degF"); + const qty2 = Qty("2.5m^2"); - var result = qty1.div(qty2); + const result = qty1.div(qty2); expect(result.scalar).toBe(3); expect(result.units()).toBe("degF/m2"); }); it("should divide temperature degree quantities", () => { - var qty = Qty("2.5 degF"); + const qty = Qty("2.5 degF"); expect(() => { qty.div("0 degF"); }).toThrow("Divide by zero"); expect(() => { qty.div(0); }).toThrow("Divide by zero"); expect(Qty("0 degF").div(qty).scalar).toBe(0); expect(Qty("0 degF").div(qty).units()).toBe(""); - var result = qty.div("3 degF"); + let result = qty.div("3 degF"); expect(result.scalar).toBe(2.5 / 3); expect(result.units()).toBe(""); expect(result.kind()).toBe("unitless"); @@ -1094,11 +1090,10 @@ describe("js-quantities", () => { // inverse is division: 1/x expect(() => { Qty("tempF").inverse(); }).toThrow("Cannot divide with temperatures"); - var result = Qty("4 tempF").div(2); + const result = Qty("4 tempF").div(2); expect(result.scalar).toBe(2); expect(result.units()).toBe("tempF"); }); - }); describe("errors", () => { @@ -1112,16 +1107,15 @@ describe("js-quantities", () => { }); describe("utility methods", () => { - it("should accept string as parameter for compatibility tests", () => { - var qty = Qty("1 mm"); + const qty = Qty("1 mm"); expect(qty.isCompatible("2 mm")).toBe(true); expect(qty.isCompatible("2 mm^3")).toBe(false); }); it("should return kind", () => { - var qty = Qty("1 mm"); + let qty = Qty("1 mm"); expect(qty.kind()).toBe("length"); qty = Qty("1 N"); @@ -1129,7 +1123,7 @@ describe("js-quantities", () => { }); it("should know if a quantity is in base units", () => { - var qty = Qty("100 cm"); + let qty = Qty("100 cm"); expect(qty.isBase()).toBe(false); qty = Qty("1m"); @@ -1137,7 +1131,7 @@ describe("js-quantities", () => { }); it("should return unit part of quantities", () => { - var qty = Qty("1"); + let qty = Qty("1"); expect(qty.units()).toBe(""); qty = Qty("1 /s"); expect(qty.units()).toBe("1/s"); @@ -1152,12 +1146,11 @@ describe("js-quantities", () => { qty = Qty("1 cm^2*J^3/s^2*A^2"); expect(qty.units()).toBe("cm2*J3/s2*A2"); }); - }); describe("toString", () => { it("should generate readable human output", () => { - var qty = Qty("2m"); + let qty = Qty("2m"); expect(qty.toString()).toBe("2 m"); expect(qty.toString("cm")).toBe("200 cm"); expect(qty.toString("km")).toBe("0.002 km"); @@ -1176,7 +1169,7 @@ describe("js-quantities", () => { }); it("should round readable human output when max decimals is specified", () => { - var qty = (Qty("2m")).div(3); + let qty = Qty("2m").div(3); expect(qty.toString("cm", 2)).toBe("66.67 cm"); qty = Qty("2.8m"); @@ -1187,14 +1180,14 @@ describe("js-quantities", () => { }); it("should round to max decimals", () => { - var qty = (Qty("2.987654321 m")); + const qty = Qty("2.987654321 m"); expect(qty.toString(3)).toBe("2.988 m"); expect(qty.toString(0)).toBe("3 m"); }); it("should round according to precision passed as quantity", () => { - var qty = Qty("5.17 ft"); + const qty = Qty("5.17 ft"); expect(qty.toString(Qty("ft"))).toBe("5 ft"); expect(qty.toString(Qty("2 ft"))).toBe("6 ft"); @@ -1206,49 +1199,48 @@ describe("js-quantities", () => { }); it("should return same output with successive calls", () => { - var qty = Qty("123 cm3"); + const qty = Qty("123 cm3"); expect(qty.toString("cm3", 0)).toBe("123 cm3"); expect(qty.toString("cm3", 0)).toBe("123 cm3"); }); it("should return identical output when called with no parameters or same units", () => { - var qty = Qty("123 cm3"); + const qty = Qty("123 cm3"); expect(qty.toString()).toBe(qty.toString("cm3")); }); - }); describe("format", () => { describe("provided default formatter", () => { it("should be applied to output", () => { - var qty = (Qty("2.987654321 m")); + const qty = Qty("2.987654321 m"); expect(qty.format()).toBe("2.987654321 m"); }); }); describe("custom formatter", () => { - var roundingFormatter = (maxDecimals: number) => { + const roundingFormatter = (maxDecimals: number) => { return (scalar: number, units: string) => { - var pow = Math.pow(10, maxDecimals); - var rounded = Math.round(scalar * pow) / pow; + const pow = Math.pow(10, maxDecimals); + const rounded = Math.round(scalar * pow) / pow; return rounded + " " + units; }; }; it("should be applied to output", () => { - var qty = (Qty("2.987654321 m")); + const qty = Qty("2.987654321 m"); expect(qty.format(roundingFormatter(3))).toBe("2.988 m"); expect(qty.format(roundingFormatter(0))).toBe("3 m"); }); it("should be applied after conversion to target units", () => { - var qty = (Qty("2m")).div(3); + let qty = Qty("2m").div(3); expect(qty.format("cm", roundingFormatter(2))).toBe("66.67 cm"); - var intRoundingFormatter = roundingFormatter(0); + const intRoundingFormatter = roundingFormatter(0); qty = Qty("2.8m"); expect(qty.format("m", intRoundingFormatter)).toBe("3 m"); expect(qty.format("cm", intRoundingFormatter)).toBe("280 cm"); @@ -1257,7 +1249,7 @@ describe("js-quantities", () => { }); describe("globally set as default formatter", () => { - var previousFormatter: Qty.Formatter; + let previousFormatter: Qty.Formatter; beforeEach(() => { previousFormatter = Qty.formatter; @@ -1270,7 +1262,7 @@ describe("js-quantities", () => { }); it("should be applied when no formatter is passed", () => { - var qty = (Qty("2.987654321 m")); + const qty = Qty("2.987654321 m"); expect(qty.format()).toBe("2.988 m"); }); @@ -1280,7 +1272,7 @@ describe("js-quantities", () => { describe("precision rounding", () => { it("should round according to precision passed as quantity with same units", () => { - var qty = Qty("5.17 ft"); + const qty = Qty("5.17 ft"); expect(qty.toPrec(Qty("ft")).toString()).toBe("5 ft"); expect(qty.toPrec(Qty("2 ft")).toString()).toBe("6 ft"); @@ -1294,7 +1286,7 @@ describe("js-quantities", () => { }); it("should allow string as precision parameter", () => { - var qty = Qty("5.17 ft"); + const qty = Qty("5.17 ft"); expect(qty.toPrec("ft").toString()).toBe("5 ft"); expect(qty.toPrec("0.5 ft").toString()).toBe("5 ft"); @@ -1302,7 +1294,7 @@ describe("js-quantities", () => { }); it("should round according to precision passed as quantity with different prefixes", () => { - var qty = Qty("6.3782 m"); + const qty = Qty("6.3782 m"); expect(qty.toPrec(Qty("dm")).toString()).toBe("6.4 m"); expect(qty.toPrec(Qty("cm")).toString()).toBe("6.38 m"); @@ -1312,7 +1304,7 @@ describe("js-quantities", () => { }); it("should round according to precision passed as quantity with different compatible units", () => { - var qty = Qty("1.146 MPa"); + let qty = Qty("1.146 MPa"); expect(qty.toPrec(Qty("0.1 bar")).toString()).toBe("1.15 MPa"); expect(qty.toPrec(Qty("0.01 MPa")).toString()).toBe("1.15 MPa"); expect(qty.toPrec(Qty("dbar")).toString()).toBe("1.15 MPa"); @@ -1371,25 +1363,25 @@ describe("js-quantities", () => { it("should convert value", () => { // TODO Same test but with m/h -> ft/s triggers rounding issue // (For the sake of speed, converter does not check and fix rounding issues) - var converter = Qty.swiftConverter("m/h", "m/s"); + const converter = Qty.swiftConverter("m/h", "m/s"); expect(converter(2500)).toEqual(Qty("2500 m/h").to("m/s").scalar); }); it("should returned value unchanged when units are identical", () => { - var converter = Qty.swiftConverter("m/h", "m/h"); + const converter = Qty.swiftConverter("m/h", "m/h"); expect(converter(2500)).toEqual(2500); }); it("should convert temperatures", () => { - var converter = Qty.swiftConverter("tempF", "tempC"); + const converter = Qty.swiftConverter("tempF", "tempC"); expect(converter(32)).toEqual(0); }); it("should convert degrees", () => { - var converter = Qty.swiftConverter("degC", "degF"); + const converter = Qty.swiftConverter("degC", "degF"); expect(converter(10)).toEqual(18); }); @@ -1397,7 +1389,7 @@ describe("js-quantities", () => { describe("array of values", () => { it("should be converted", () => { - var converter = Qty.swiftConverter("MPa", "bar"), + const converter = Qty.swiftConverter("MPa", "bar"), values = [250, 10, 15], expected = [2500, 100, 150]; @@ -1413,8 +1405,8 @@ describe("js-quantities", () => { }); it("should not contain duplicate kind names", () => { - var kinds = Qty.getKinds(); - var map: { [key: string]: number } = {}; + const kinds = Qty.getKinds(); + const map: { [key: string]: number } = {}; kinds.forEach(kind => { map[kind] = 1; }); @@ -1500,14 +1492,14 @@ describe("js-quantities", () => { }); it('should not be defined as base unit', () => { - var qty = Qty("F"); + const qty = Qty("F"); expect(qty.isBase()).toBe(false); expect(qty.toBase().units()).toEqual("s4*A2/m2*kg"); }); it('should be parsed when prefixed', () => { - var qty = Qty("100 nF"); + const qty = Qty("100 nF"); expect(qty.eq(Qty("100 F").div(1e9))).toBe(true); expect(qty.baseScalar).toEqual(1e-7); diff --git a/js-quantities/tsconfig.json b/types/js-quantities/tsconfig.json similarity index 100% rename from js-quantities/tsconfig.json rename to types/js-quantities/tsconfig.json diff --git a/js-md5/tslint.json b/types/js-quantities/tslint.json similarity index 100% rename from js-md5/tslint.json rename to types/js-quantities/tslint.json diff --git a/js-schema/index.d.ts b/types/js-schema/index.d.ts similarity index 100% rename from js-schema/index.d.ts rename to types/js-schema/index.d.ts diff --git a/js-schema/js-schema-tests.ts b/types/js-schema/js-schema-tests.ts similarity index 100% rename from js-schema/js-schema-tests.ts rename to types/js-schema/js-schema-tests.ts diff --git a/js-schema/tsconfig.json b/types/js-schema/tsconfig.json similarity index 100% rename from js-schema/tsconfig.json rename to types/js-schema/tsconfig.json diff --git a/js-url/index.d.ts b/types/js-url/index.d.ts similarity index 100% rename from js-url/index.d.ts rename to types/js-url/index.d.ts diff --git a/js-url/js-url-tests.ts b/types/js-url/js-url-tests.ts similarity index 100% rename from js-url/js-url-tests.ts rename to types/js-url/js-url-tests.ts diff --git a/js-url/tsconfig.json b/types/js-url/tsconfig.json similarity index 100% rename from js-url/tsconfig.json rename to types/js-url/tsconfig.json diff --git a/js-yaml/index.d.ts b/types/js-yaml/index.d.ts similarity index 100% rename from js-yaml/index.d.ts rename to types/js-yaml/index.d.ts diff --git a/js-yaml/js-yaml-tests.ts b/types/js-yaml/js-yaml-tests.ts similarity index 100% rename from js-yaml/js-yaml-tests.ts rename to types/js-yaml/js-yaml-tests.ts diff --git a/js-yaml/tsconfig.json b/types/js-yaml/tsconfig.json similarity index 100% rename from js-yaml/tsconfig.json rename to types/js-yaml/tsconfig.json diff --git a/jsbn/index.d.ts b/types/jsbn/index.d.ts similarity index 100% rename from jsbn/index.d.ts rename to types/jsbn/index.d.ts diff --git a/jsbn/jsbn-tests.ts b/types/jsbn/jsbn-tests.ts similarity index 100% rename from jsbn/jsbn-tests.ts rename to types/jsbn/jsbn-tests.ts diff --git a/jsbn/tsconfig.json b/types/jsbn/tsconfig.json similarity index 100% rename from jsbn/tsconfig.json rename to types/jsbn/tsconfig.json diff --git a/jscrollpane/index.d.ts b/types/jscrollpane/index.d.ts similarity index 100% rename from jscrollpane/index.d.ts rename to types/jscrollpane/index.d.ts diff --git a/jscrollpane/tsconfig.json b/types/jscrollpane/tsconfig.json similarity index 100% rename from jscrollpane/tsconfig.json rename to types/jscrollpane/tsconfig.json diff --git a/jsdeferred/index.d.ts b/types/jsdeferred/index.d.ts similarity index 100% rename from jsdeferred/index.d.ts rename to types/jsdeferred/index.d.ts diff --git a/jsdeferred/jsdeferred-tests.ts b/types/jsdeferred/jsdeferred-tests.ts similarity index 100% rename from jsdeferred/jsdeferred-tests.ts rename to types/jsdeferred/jsdeferred-tests.ts diff --git a/jsdeferred/tsconfig.json b/types/jsdeferred/tsconfig.json similarity index 100% rename from jsdeferred/tsconfig.json rename to types/jsdeferred/tsconfig.json diff --git a/jsdom/index.d.ts b/types/jsdom/index.d.ts similarity index 100% rename from jsdom/index.d.ts rename to types/jsdom/index.d.ts diff --git a/jsdom/jsdom-tests.ts b/types/jsdom/jsdom-tests.ts similarity index 100% rename from jsdom/jsdom-tests.ts rename to types/jsdom/jsdom-tests.ts diff --git a/jsdom/tsconfig.json b/types/jsdom/tsconfig.json similarity index 100% rename from jsdom/tsconfig.json rename to types/jsdom/tsconfig.json diff --git a/jsen/index.d.ts b/types/jsen/index.d.ts similarity index 100% rename from jsen/index.d.ts rename to types/jsen/index.d.ts diff --git a/jsen/jsen-tests.ts b/types/jsen/jsen-tests.ts similarity index 100% rename from jsen/jsen-tests.ts rename to types/jsen/jsen-tests.ts diff --git a/jsen/tsconfig.json b/types/jsen/tsconfig.json similarity index 100% rename from jsen/tsconfig.json rename to types/jsen/tsconfig.json diff --git a/jsend/index.d.ts b/types/jsend/index.d.ts similarity index 100% rename from jsend/index.d.ts rename to types/jsend/index.d.ts diff --git a/jsend/jsend-tests.ts b/types/jsend/jsend-tests.ts similarity index 100% rename from jsend/jsend-tests.ts rename to types/jsend/jsend-tests.ts diff --git a/jsend/tsconfig.json b/types/jsend/tsconfig.json similarity index 100% rename from jsend/tsconfig.json rename to types/jsend/tsconfig.json diff --git a/jsesc/index.d.ts b/types/jsesc/index.d.ts similarity index 100% rename from jsesc/index.d.ts rename to types/jsesc/index.d.ts diff --git a/jsesc/jsesc-tests.ts b/types/jsesc/jsesc-tests.ts similarity index 100% rename from jsesc/jsesc-tests.ts rename to types/jsesc/jsesc-tests.ts diff --git a/jsesc/tsconfig.json b/types/jsesc/tsconfig.json similarity index 100% rename from jsesc/tsconfig.json rename to types/jsesc/tsconfig.json diff --git a/jsfl/index.d.ts b/types/jsfl/index.d.ts similarity index 100% rename from jsfl/index.d.ts rename to types/jsfl/index.d.ts diff --git a/jsfl/tsconfig.json b/types/jsfl/tsconfig.json similarity index 100% rename from jsfl/tsconfig.json rename to types/jsfl/tsconfig.json diff --git a/jsfl/xJSFL.d.ts b/types/jsfl/xJSFL.d.ts similarity index 100% rename from jsfl/xJSFL.d.ts rename to types/jsfl/xJSFL.d.ts diff --git a/jshamcrest/index.d.ts b/types/jshamcrest/index.d.ts similarity index 100% rename from jshamcrest/index.d.ts rename to types/jshamcrest/index.d.ts diff --git a/jshamcrest/jshamcrest-tests.ts b/types/jshamcrest/jshamcrest-tests.ts similarity index 100% rename from jshamcrest/jshamcrest-tests.ts rename to types/jshamcrest/jshamcrest-tests.ts diff --git a/jshamcrest/tsconfig.json b/types/jshamcrest/tsconfig.json similarity index 100% rename from jshamcrest/tsconfig.json rename to types/jshamcrest/tsconfig.json diff --git a/jsmockito/index.d.ts b/types/jsmockito/index.d.ts similarity index 100% rename from jsmockito/index.d.ts rename to types/jsmockito/index.d.ts diff --git a/jsmockito/jsmockito-tests.ts b/types/jsmockito/jsmockito-tests.ts similarity index 100% rename from jsmockito/jsmockito-tests.ts rename to types/jsmockito/jsmockito-tests.ts diff --git a/jsmockito/tsconfig.json b/types/jsmockito/tsconfig.json similarity index 100% rename from jsmockito/tsconfig.json rename to types/jsmockito/tsconfig.json diff --git a/jsnlog/index.d.ts b/types/jsnlog/index.d.ts similarity index 86% rename from jsnlog/index.d.ts rename to types/jsnlog/index.d.ts index e252d5cf36..4d1c707b4f 100644 --- a/jsnlog/index.d.ts +++ b/types/jsnlog/index.d.ts @@ -25,7 +25,6 @@ // JSNLog. declare namespace JL { - interface JSNLogOptions { enabled?: boolean; maxMessages?: number; @@ -88,7 +87,6 @@ declare namespace JL { declare function __jsnlog_configure(jsnlog: any): void; - // Ambient declaration of the JL function itself declare function JL(loggerName?: string): JL.JSNLogLogger; @@ -97,20 +95,20 @@ declare function JL(loggerName?: string): JL.JSNLogLogger; // overload ambient declarations with non-ambient declarations. declare namespace JL { - export function setOptions(options: JSNLogOptions): void; - export function createAjaxAppender(appenderName: string): JSNLogAjaxAppender; - export function createConsoleAppender(appenderName: string): JSNLogConsoleAppender; + function setOptions(options: JSNLogOptions): void; + function createAjaxAppender(appenderName: string): JSNLogAjaxAppender; + function createConsoleAppender(appenderName: string): JSNLogConsoleAppender; - export class Exception { + class Exception { constructor(data: any, inner?: any); } - export function getOffLevel(): number; - export function getTraceLevel(): number; - export function getDebugLevel(): number; - export function getInfoLevel(): number; - export function getWarnLevel(): number; - export function getErrorLevel(): number; - export function getFatalLevel(): number; - export function getAllLevel(): number; + function getOffLevel(): number; + function getTraceLevel(): number; + function getDebugLevel(): number; + function getInfoLevel(): number; + function getWarnLevel(): number; + function getErrorLevel(): number; + function getFatalLevel(): number; + function getAllLevel(): number; } diff --git a/jsnlog/jsnlog-tests.ts b/types/jsnlog/jsnlog-tests.ts similarity index 71% rename from jsnlog/jsnlog-tests.ts rename to types/jsnlog/jsnlog-tests.ts index c988234394..c7610aba78 100644 --- a/jsnlog/jsnlog-tests.ts +++ b/types/jsnlog/jsnlog-tests.ts @@ -1,16 +1,14 @@ - - // ---------------------------------------------------------- // JL -var offLevel: number = JL.getOffLevel(); -var traceLevel: number = JL.getTraceLevel(); -var debugLevel: number = JL.getDebugLevel(); -var infoLevel: number = JL.getInfoLevel(); -var warnLevel: number = JL.getWarnLevel(); -var errorLevel: number = JL.getErrorLevel(); -var fatalLevel: number = JL.getFatalLevel(); -var allLevel: number = JL.getAllLevel(); +const offLevel: number = JL.getOffLevel(); +const traceLevel: number = JL.getTraceLevel(); +const debugLevel: number = JL.getDebugLevel(); +const infoLevel: number = JL.getInfoLevel(); +const warnLevel: number = JL.getWarnLevel(); +const errorLevel: number = JL.getErrorLevel(); +const fatalLevel: number = JL.getFatalLevel(); +const allLevel: number = JL.getAllLevel(); JL.setOptions({ enabled: true, @@ -25,12 +23,12 @@ JL.setOptions({ // ---------------------------------------------------------- // Exception -var e = new JL.Exception("i is too small!"); +const e = new JL.Exception("i is too small!"); // ---------------------------------------------------------- // Ajax Appender -var ajaxAppender1: JL.JSNLogAjaxAppender = JL.createAjaxAppender('ajaxAppender'); +const ajaxAppender1: JL.JSNLogAjaxAppender = JL.createAjaxAppender('ajaxAppender'); ajaxAppender1.setOptions({ level: 5000, @@ -48,7 +46,7 @@ ajaxAppender1.setOptions({ // ---------------------------------------------------------- // Console Appender -var consoleAppender1: JL.JSNLogConsoleAppender = JL.createConsoleAppender('consoleAppender'); +const consoleAppender1: JL.JSNLogConsoleAppender = JL.createConsoleAppender('consoleAppender'); consoleAppender1.setOptions({ level: 5000, @@ -61,13 +59,12 @@ consoleAppender1.setOptions({ batchSize: 2 }); - // ---------------------------------------------------------- // Loggers -var logger1: JL.JSNLogLogger = JL('mylogger'); +const logger1: JL.JSNLogLogger = JL('mylogger'); -var exception = {}; +const exception = {}; logger1.trace('log message').debug({ x: 1, y: 2}); logger1.info(() => 5); @@ -85,4 +82,3 @@ logger1.setOptions({ appenders: [ ajaxAppender1, consoleAppender1 ], onceOnly: [ 'regex1', 'regex2' ] }); - diff --git a/jsnlog/tsconfig.json b/types/jsnlog/tsconfig.json similarity index 100% rename from jsnlog/tsconfig.json rename to types/jsnlog/tsconfig.json diff --git a/jsnlog/tslint.json b/types/jsnlog/tslint.json similarity index 100% rename from jsnlog/tslint.json rename to types/jsnlog/tslint.json diff --git a/jsnox/index.d.ts b/types/jsnox/index.d.ts similarity index 100% rename from jsnox/index.d.ts rename to types/jsnox/index.d.ts diff --git a/jsnox/jsnox-tests.ts b/types/jsnox/jsnox-tests.ts similarity index 100% rename from jsnox/jsnox-tests.ts rename to types/jsnox/jsnox-tests.ts diff --git a/jsnox/tsconfig.json b/types/jsnox/tsconfig.json similarity index 100% rename from jsnox/tsconfig.json rename to types/jsnox/tsconfig.json diff --git a/json-editor/index.d.ts b/types/json-editor/index.d.ts similarity index 100% rename from json-editor/index.d.ts rename to types/json-editor/index.d.ts diff --git a/json-editor/json-editor-tests.ts b/types/json-editor/json-editor-tests.ts similarity index 100% rename from json-editor/json-editor-tests.ts rename to types/json-editor/json-editor-tests.ts diff --git a/json-editor/tsconfig.json b/types/json-editor/tsconfig.json similarity index 100% rename from json-editor/tsconfig.json rename to types/json-editor/tsconfig.json diff --git a/json-merge-patch/index.d.ts b/types/json-merge-patch/index.d.ts similarity index 100% rename from json-merge-patch/index.d.ts rename to types/json-merge-patch/index.d.ts diff --git a/json-merge-patch/json-merge-patch-tests.ts b/types/json-merge-patch/json-merge-patch-tests.ts similarity index 100% rename from json-merge-patch/json-merge-patch-tests.ts rename to types/json-merge-patch/json-merge-patch-tests.ts diff --git a/json-merge-patch/tsconfig.json b/types/json-merge-patch/tsconfig.json similarity index 100% rename from json-merge-patch/tsconfig.json rename to types/json-merge-patch/tsconfig.json diff --git a/json-patch/index.d.ts b/types/json-patch/index.d.ts similarity index 100% rename from json-patch/index.d.ts rename to types/json-patch/index.d.ts diff --git a/json-patch/json-patch-tests.ts b/types/json-patch/json-patch-tests.ts similarity index 100% rename from json-patch/json-patch-tests.ts rename to types/json-patch/json-patch-tests.ts diff --git a/json-patch/tsconfig.json b/types/json-patch/tsconfig.json similarity index 100% rename from json-patch/tsconfig.json rename to types/json-patch/tsconfig.json diff --git a/json-pointer/index.d.ts b/types/json-pointer/index.d.ts similarity index 100% rename from json-pointer/index.d.ts rename to types/json-pointer/index.d.ts diff --git a/json-pointer/json-pointer-tests.ts b/types/json-pointer/json-pointer-tests.ts similarity index 100% rename from json-pointer/json-pointer-tests.ts rename to types/json-pointer/json-pointer-tests.ts diff --git a/json-pointer/tsconfig.json b/types/json-pointer/tsconfig.json similarity index 100% rename from json-pointer/tsconfig.json rename to types/json-pointer/tsconfig.json diff --git a/json-socket/index.d.ts b/types/json-socket/index.d.ts similarity index 100% rename from json-socket/index.d.ts rename to types/json-socket/index.d.ts diff --git a/json-socket/json-socket-tests.ts b/types/json-socket/json-socket-tests.ts similarity index 100% rename from json-socket/json-socket-tests.ts rename to types/json-socket/json-socket-tests.ts diff --git a/json-socket/tsconfig.json b/types/json-socket/tsconfig.json similarity index 100% rename from json-socket/tsconfig.json rename to types/json-socket/tsconfig.json diff --git a/json-stable-stringify/index.d.ts b/types/json-stable-stringify/index.d.ts similarity index 100% rename from json-stable-stringify/index.d.ts rename to types/json-stable-stringify/index.d.ts diff --git a/json-stable-stringify/json-stable-stringify-tests.ts b/types/json-stable-stringify/json-stable-stringify-tests.ts similarity index 100% rename from json-stable-stringify/json-stable-stringify-tests.ts rename to types/json-stable-stringify/json-stable-stringify-tests.ts diff --git a/json-stable-stringify/tsconfig.json b/types/json-stable-stringify/tsconfig.json similarity index 100% rename from json-stable-stringify/tsconfig.json rename to types/json-stable-stringify/tsconfig.json diff --git a/js-quantities/tslint.json b/types/json-stable-stringify/tslint.json similarity index 100% rename from js-quantities/tslint.json rename to types/json-stable-stringify/tslint.json diff --git a/json5/index.d.ts b/types/json5/index.d.ts similarity index 100% rename from json5/index.d.ts rename to types/json5/index.d.ts diff --git a/json5/json5-tests.ts b/types/json5/json5-tests.ts similarity index 100% rename from json5/json5-tests.ts rename to types/json5/json5-tests.ts diff --git a/json5/tsconfig.json b/types/json5/tsconfig.json similarity index 100% rename from json5/tsconfig.json rename to types/json5/tsconfig.json diff --git a/jsoneditor/index.d.ts b/types/jsoneditor/index.d.ts similarity index 100% rename from jsoneditor/index.d.ts rename to types/jsoneditor/index.d.ts diff --git a/jsoneditor/jsoneditor-tests.ts b/types/jsoneditor/jsoneditor-tests.ts similarity index 100% rename from jsoneditor/jsoneditor-tests.ts rename to types/jsoneditor/jsoneditor-tests.ts diff --git a/jsoneditor/tsconfig.json b/types/jsoneditor/tsconfig.json similarity index 100% rename from jsoneditor/tsconfig.json rename to types/jsoneditor/tsconfig.json diff --git a/jsoneditoronline/index.d.ts b/types/jsoneditoronline/index.d.ts similarity index 100% rename from jsoneditoronline/index.d.ts rename to types/jsoneditoronline/index.d.ts diff --git a/jsoneditoronline/jsoneditoronline-tests.ts b/types/jsoneditoronline/jsoneditoronline-tests.ts similarity index 100% rename from jsoneditoronline/jsoneditoronline-tests.ts rename to types/jsoneditoronline/jsoneditoronline-tests.ts diff --git a/jsoneditoronline/tsconfig.json b/types/jsoneditoronline/tsconfig.json similarity index 100% rename from jsoneditoronline/tsconfig.json rename to types/jsoneditoronline/tsconfig.json diff --git a/jsonminify/index.d.ts b/types/jsonminify/index.d.ts similarity index 100% rename from jsonminify/index.d.ts rename to types/jsonminify/index.d.ts diff --git a/jsonminify/jsonminify-tests.ts b/types/jsonminify/jsonminify-tests.ts similarity index 100% rename from jsonminify/jsonminify-tests.ts rename to types/jsonminify/jsonminify-tests.ts diff --git a/jsonminify/tsconfig.json b/types/jsonminify/tsconfig.json similarity index 100% rename from jsonminify/tsconfig.json rename to types/jsonminify/tsconfig.json diff --git a/jsonnet/index.d.ts b/types/jsonnet/index.d.ts similarity index 100% rename from jsonnet/index.d.ts rename to types/jsonnet/index.d.ts diff --git a/jsonnet/jsonnet-tests.ts b/types/jsonnet/jsonnet-tests.ts similarity index 100% rename from jsonnet/jsonnet-tests.ts rename to types/jsonnet/jsonnet-tests.ts diff --git a/jsonnet/tsconfig.json b/types/jsonnet/tsconfig.json similarity index 100% rename from jsonnet/tsconfig.json rename to types/jsonnet/tsconfig.json diff --git a/jsonpath/index.d.ts b/types/jsonpath/index.d.ts similarity index 100% rename from jsonpath/index.d.ts rename to types/jsonpath/index.d.ts diff --git a/jsonpath/jsonpath-tests.ts b/types/jsonpath/jsonpath-tests.ts similarity index 100% rename from jsonpath/jsonpath-tests.ts rename to types/jsonpath/jsonpath-tests.ts diff --git a/jsonpath/tsconfig.json b/types/jsonpath/tsconfig.json similarity index 100% rename from jsonpath/tsconfig.json rename to types/jsonpath/tsconfig.json diff --git a/jsonrpc-serializer/index.d.ts b/types/jsonrpc-serializer/index.d.ts similarity index 100% rename from jsonrpc-serializer/index.d.ts rename to types/jsonrpc-serializer/index.d.ts diff --git a/jsonrpc-serializer/jsonrpc-serializer-tests.ts b/types/jsonrpc-serializer/jsonrpc-serializer-tests.ts similarity index 100% rename from jsonrpc-serializer/jsonrpc-serializer-tests.ts rename to types/jsonrpc-serializer/jsonrpc-serializer-tests.ts diff --git a/jsonrpc-serializer/tsconfig.json b/types/jsonrpc-serializer/tsconfig.json similarity index 100% rename from jsonrpc-serializer/tsconfig.json rename to types/jsonrpc-serializer/tsconfig.json diff --git a/json-stable-stringify/tslint.json b/types/jsonrpc-serializer/tslint.json similarity index 100% rename from json-stable-stringify/tslint.json rename to types/jsonrpc-serializer/tslint.json diff --git a/jsonstream/index.d.ts b/types/jsonstream/index.d.ts similarity index 100% rename from jsonstream/index.d.ts rename to types/jsonstream/index.d.ts diff --git a/jsonstream/jsonstream-tests.ts b/types/jsonstream/jsonstream-tests.ts similarity index 100% rename from jsonstream/jsonstream-tests.ts rename to types/jsonstream/jsonstream-tests.ts diff --git a/jsonstream/tsconfig.json b/types/jsonstream/tsconfig.json similarity index 100% rename from jsonstream/tsconfig.json rename to types/jsonstream/tsconfig.json diff --git a/jsonwebtoken/index.d.ts b/types/jsonwebtoken/index.d.ts similarity index 100% rename from jsonwebtoken/index.d.ts rename to types/jsonwebtoken/index.d.ts diff --git a/jsonwebtoken/jsonwebtoken-tests.ts b/types/jsonwebtoken/jsonwebtoken-tests.ts similarity index 100% rename from jsonwebtoken/jsonwebtoken-tests.ts rename to types/jsonwebtoken/jsonwebtoken-tests.ts diff --git a/jsonwebtoken/tsconfig.json b/types/jsonwebtoken/tsconfig.json similarity index 100% rename from jsonwebtoken/tsconfig.json rename to types/jsonwebtoken/tsconfig.json diff --git a/jspdf/index.d.ts b/types/jspdf/index.d.ts similarity index 100% rename from jspdf/index.d.ts rename to types/jspdf/index.d.ts diff --git a/jspdf/jspdf-tests.ts b/types/jspdf/jspdf-tests.ts similarity index 100% rename from jspdf/jspdf-tests.ts rename to types/jspdf/jspdf-tests.ts diff --git a/jspdf/tsconfig.json b/types/jspdf/tsconfig.json similarity index 100% rename from jspdf/tsconfig.json rename to types/jspdf/tsconfig.json diff --git a/jsplumb/index.d.ts b/types/jsplumb/index.d.ts similarity index 100% rename from jsplumb/index.d.ts rename to types/jsplumb/index.d.ts diff --git a/jsplumb/tsconfig.json b/types/jsplumb/tsconfig.json similarity index 100% rename from jsplumb/tsconfig.json rename to types/jsplumb/tsconfig.json diff --git a/jsrender/index.d.ts b/types/jsrender/index.d.ts similarity index 100% rename from jsrender/index.d.ts rename to types/jsrender/index.d.ts diff --git a/jsrender/jsrender-tests.ts b/types/jsrender/jsrender-tests.ts similarity index 100% rename from jsrender/jsrender-tests.ts rename to types/jsrender/jsrender-tests.ts diff --git a/jsrender/tsconfig.json b/types/jsrender/tsconfig.json similarity index 100% rename from jsrender/tsconfig.json rename to types/jsrender/tsconfig.json diff --git a/jss/index.d.ts b/types/jss/index.d.ts similarity index 100% rename from jss/index.d.ts rename to types/jss/index.d.ts diff --git a/jss/jss-tests.ts b/types/jss/jss-tests.ts similarity index 100% rename from jss/jss-tests.ts rename to types/jss/jss-tests.ts diff --git a/jss/tsconfig.json b/types/jss/tsconfig.json similarity index 100% rename from jss/tsconfig.json rename to types/jss/tsconfig.json diff --git a/jssha/index.d.ts b/types/jssha/index.d.ts similarity index 100% rename from jssha/index.d.ts rename to types/jssha/index.d.ts diff --git a/jssha/jssha-tests.ts b/types/jssha/jssha-tests.ts similarity index 100% rename from jssha/jssha-tests.ts rename to types/jssha/jssha-tests.ts diff --git a/jssha/tsconfig.json b/types/jssha/tsconfig.json similarity index 100% rename from jssha/tsconfig.json rename to types/jssha/tsconfig.json diff --git a/jstimezonedetect/index.d.ts b/types/jstimezonedetect/index.d.ts similarity index 100% rename from jstimezonedetect/index.d.ts rename to types/jstimezonedetect/index.d.ts diff --git a/jstimezonedetect/jstimezonedetect-tests.ts b/types/jstimezonedetect/jstimezonedetect-tests.ts similarity index 100% rename from jstimezonedetect/jstimezonedetect-tests.ts rename to types/jstimezonedetect/jstimezonedetect-tests.ts diff --git a/jstimezonedetect/tsconfig.json b/types/jstimezonedetect/tsconfig.json similarity index 100% rename from jstimezonedetect/tsconfig.json rename to types/jstimezonedetect/tsconfig.json diff --git a/jstorage/index.d.ts b/types/jstorage/index.d.ts similarity index 100% rename from jstorage/index.d.ts rename to types/jstorage/index.d.ts diff --git a/jstorage/jstorage-tests.ts b/types/jstorage/jstorage-tests.ts similarity index 100% rename from jstorage/jstorage-tests.ts rename to types/jstorage/jstorage-tests.ts diff --git a/jstorage/tsconfig.json b/types/jstorage/tsconfig.json similarity index 100% rename from jstorage/tsconfig.json rename to types/jstorage/tsconfig.json diff --git a/jstree/index.d.ts b/types/jstree/index.d.ts similarity index 100% rename from jstree/index.d.ts rename to types/jstree/index.d.ts diff --git a/jstree/jstree-tests.ts b/types/jstree/jstree-tests.ts similarity index 100% rename from jstree/jstree-tests.ts rename to types/jstree/jstree-tests.ts diff --git a/jstree/tsconfig.json b/types/jstree/tsconfig.json similarity index 100% rename from jstree/tsconfig.json rename to types/jstree/tsconfig.json diff --git a/jsts/index.d.ts b/types/jsts/index.d.ts similarity index 100% rename from jsts/index.d.ts rename to types/jsts/index.d.ts diff --git a/jsts/jsts-tests.ts b/types/jsts/jsts-tests.ts similarity index 100% rename from jsts/jsts-tests.ts rename to types/jsts/jsts-tests.ts diff --git a/jsts/tsconfig.json b/types/jsts/tsconfig.json similarity index 100% rename from jsts/tsconfig.json rename to types/jsts/tsconfig.json diff --git a/jsuite/index.d.ts b/types/jsuite/index.d.ts similarity index 100% rename from jsuite/index.d.ts rename to types/jsuite/index.d.ts diff --git a/jsuite/tsconfig.json b/types/jsuite/tsconfig.json similarity index 100% rename from jsuite/tsconfig.json rename to types/jsuite/tsconfig.json diff --git a/jsuri/index.d.ts b/types/jsuri/index.d.ts similarity index 100% rename from jsuri/index.d.ts rename to types/jsuri/index.d.ts diff --git a/jsuri/jsuri-tests.ts b/types/jsuri/jsuri-tests.ts similarity index 100% rename from jsuri/jsuri-tests.ts rename to types/jsuri/jsuri-tests.ts diff --git a/jsuri/tsconfig.json b/types/jsuri/tsconfig.json similarity index 100% rename from jsuri/tsconfig.json rename to types/jsuri/tsconfig.json diff --git a/jsurl/index.d.ts b/types/jsurl/index.d.ts similarity index 100% rename from jsurl/index.d.ts rename to types/jsurl/index.d.ts diff --git a/jsurl/jsurl-tests.ts b/types/jsurl/jsurl-tests.ts similarity index 100% rename from jsurl/jsurl-tests.ts rename to types/jsurl/jsurl-tests.ts diff --git a/jsurl/tsconfig.json b/types/jsurl/tsconfig.json similarity index 100% rename from jsurl/tsconfig.json rename to types/jsurl/tsconfig.json diff --git a/jsx-chai/index.d.ts b/types/jsx-chai/index.d.ts similarity index 100% rename from jsx-chai/index.d.ts rename to types/jsx-chai/index.d.ts diff --git a/jsx-chai/jsx-chai-tests.ts b/types/jsx-chai/jsx-chai-tests.ts similarity index 100% rename from jsx-chai/jsx-chai-tests.ts rename to types/jsx-chai/jsx-chai-tests.ts diff --git a/jsx-chai/tsconfig.json b/types/jsx-chai/tsconfig.json similarity index 100% rename from jsx-chai/tsconfig.json rename to types/jsx-chai/tsconfig.json diff --git a/jszip/index.d.ts b/types/jszip/index.d.ts similarity index 100% rename from jszip/index.d.ts rename to types/jszip/index.d.ts diff --git a/jszip/jszip-tests.ts b/types/jszip/jszip-tests.ts similarity index 100% rename from jszip/jszip-tests.ts rename to types/jszip/jszip-tests.ts diff --git a/jszip/tsconfig.json b/types/jszip/tsconfig.json similarity index 100% rename from jszip/tsconfig.json rename to types/jszip/tsconfig.json diff --git a/jug/index.d.ts b/types/jug/index.d.ts similarity index 100% rename from jug/index.d.ts rename to types/jug/index.d.ts diff --git a/jug/jug-tests.ts b/types/jug/jug-tests.ts similarity index 100% rename from jug/jug-tests.ts rename to types/jug/jug-tests.ts diff --git a/jug/tsconfig.json b/types/jug/tsconfig.json similarity index 100% rename from jug/tsconfig.json rename to types/jug/tsconfig.json diff --git a/jui-core/index.d.ts b/types/jui-core/index.d.ts similarity index 99% rename from jui-core/index.d.ts rename to types/jui-core/index.d.ts index 0f1184c0a3..6d15361d8e 100644 --- a/jui-core/index.d.ts +++ b/types/jui-core/index.d.ts @@ -132,7 +132,6 @@ interface UtilBase { */ typeCheck(typeName: string, value: any): boolean; - typeCheckObj(uiObj: any, list: any): void; /** @@ -318,7 +317,6 @@ interface UtilBase { inArray(target: any, list: any[]): number; - trim(text: string): string; ready: ((...args: any[]) => void); @@ -398,7 +396,6 @@ interface JuiStatic { */ add(uiIns: any): void; - /** * @method emit * Generates a custom event to an applicable component @@ -443,7 +440,6 @@ interface UICollection { } interface UICore { - tpl?: any; event?: any; @@ -543,7 +539,6 @@ interface UICore { //noinspection TypeScriptUnresolvedVariable export interface UIEvent extends UICore { - root?: any; /** @@ -809,7 +804,6 @@ interface UtilMath { matrix3d(a: T[], b: T[]): T[]; inverseMatrix3d(a: any[]): any[]; - } export interface UtilScaleOrdinal extends Function { diff --git a/jui-core/jui-core-tests.ts b/types/jui-core/jui-core-tests.ts similarity index 84% rename from jui-core/jui-core-tests.ts rename to types/jui-core/jui-core-tests.ts index c0677926e6..a5d4f23bcb 100644 --- a/jui-core/jui-core-tests.ts +++ b/types/jui-core/jui-core-tests.ts @@ -1,4 +1,4 @@ -import {jui, UtilColor, UtilBase} from "./index"; +import {jui, UtilColor, UtilBase} from "jui-core"; jui.ready(["util.color"], (color: UtilColor) => { console.log(color.rgb("#ff0000")); diff --git a/jui-core/tsconfig.json b/types/jui-core/tsconfig.json similarity index 100% rename from jui-core/tsconfig.json rename to types/jui-core/tsconfig.json diff --git a/jsonrpc-serializer/tslint.json b/types/jui-core/tslint.json similarity index 100% rename from jsonrpc-serializer/tslint.json rename to types/jui-core/tslint.json diff --git a/jui-grid/index.d.ts b/types/jui-grid/index.d.ts similarity index 99% rename from jui-grid/index.d.ts rename to types/jui-grid/index.d.ts index 0fee7cc271..31b3ca2b51 100644 --- a/jui-grid/index.d.ts +++ b/types/jui-grid/index.d.ts @@ -232,7 +232,6 @@ export interface GridTable extends UIEvent { * Determines whether to use the move function when you fire row draggable event. */ moveRow?: boolean, - }): this; root?: any; @@ -612,9 +611,7 @@ export interface GridTable extends UIEvent { } export interface GridXTable extends UIEvent { - (selector: any, options?: { - - }): this; + (selector: any, options?: {}): this; render(isTree?: boolean): void; diff --git a/jui-grid/jui-grid-tests.ts b/types/jui-grid/jui-grid-tests.ts similarity index 95% rename from jui-grid/jui-grid-tests.ts rename to types/jui-grid/jui-grid-tests.ts index 1fb65c4b97..2609e94021 100644 --- a/jui-grid/jui-grid-tests.ts +++ b/types/jui-grid/jui-grid-tests.ts @@ -1,8 +1,7 @@ /// import {jui} from 'jui-core'; -import {GridTable, GridXTable, GridRow} from "./index"; - +import {GridTable, GridXTable, GridRow} from "jui-grid"; jui.ready([ "grid.table" ], (table: GridTable) => { const table_1: GridTable = table("#table_1", { @@ -41,7 +40,7 @@ jui.ready([ "grid.table" ], (table: GridTable) => { ]); const table_3_submit: Function = (index: number) => { - var name = $(table_3.root).find(".name").val(), + const name = $(table_3.root).find(".name").val(), age = $(table_3.root).find(".age").val(), location = $(table_3.root).find(".location").val(); @@ -52,7 +51,7 @@ jui.ready([ "grid.table" ], (table: GridTable) => { }); jui.ready([ "grid.xtable" ], (xtable: GridXTable) => { - var page = 1; + let page = 1; const xtable_2: GridXTable = xtable("#xtable_2", { fields: [ "name", "age", "location" ], @@ -63,9 +62,9 @@ jui.ready([ "grid.xtable" ], (xtable: GridXTable) => { }); const xtable_2_submit: Function = () => { - var result: any[] = []; + const result: any[] = []; - for (var i = 0; i < 1000000; i++) { + for (let i = 0; i < 1000000; i++) { result.push({ name: "Alvin" + i, age: Math.floor(Math.random() * 100) + 1, location: "LA" }); } @@ -81,7 +80,6 @@ jui.ready([ "grid.xtable" ], (xtable: GridXTable) => { }; }); - jui.ready([ "grid.xtable" ], (xtable: GridXTable) => { const xtable_4: GridXTable = xtable("#xtable_4", { fields: [ "name", "age", "location" ], @@ -130,9 +128,9 @@ jui.ready([ "grid.xtable" ], (xtable: GridXTable) => { }); const xtable_6_submit: Function = () => { - var result: any[] = []; + const result: any[] = []; - for (var i = 0; i < 1000000; i++) { + for (let i = 0; i < 1000000; i++) { result.push({ name: "Alvin" + i, age: Math.floor(Math.random() * 100) + 1, location: "LA" }); } @@ -178,5 +176,4 @@ jui.ready([ "grid.xtable" ], (xtable: GridXTable) => { { index: "0.5", type: "fold", data: { url: "/sitemap.xml", count: 10 } }, { index: "0.6", type: "fold", data: { url: "/package.json", count: 5 } } ]); - }); diff --git a/jui-grid/tsconfig.json b/types/jui-grid/tsconfig.json similarity index 100% rename from jui-grid/tsconfig.json rename to types/jui-grid/tsconfig.json diff --git a/jui-grid/tslint.json b/types/jui-grid/tslint.json similarity index 100% rename from jui-grid/tslint.json rename to types/jui-grid/tslint.json diff --git a/jui/index.d.ts b/types/jui/index.d.ts similarity index 99% rename from jui/index.d.ts rename to types/jui/index.d.ts index c1dec57e39..24e5ed215c 100644 --- a/jui/index.d.ts +++ b/types/jui/index.d.ts @@ -6,7 +6,6 @@ import {UIEvent} from 'jui-core'; export interface UIAccordion extends UIEvent { - (selector: any, options?: { tpl?: any, event?: any, @@ -91,10 +90,8 @@ export interface UIColorPicker { getColor(type: string): string|{}; setColor(value: string|{}): void; - } - export interface UICombo { (selector: any, options?: { tpl?: any, @@ -201,7 +198,6 @@ export interface UICombo { reload(): void; } - export interface UIDatePicker { (selector: any, options?: { tpl?: any, @@ -399,7 +395,6 @@ export interface UIDropdown { reload(): void; } - export interface UIModal { (selector: any, options?: { tpl?: any, @@ -460,7 +455,6 @@ export interface UIModal { resize(): void; } - export interface UINotify { (selector: any, options?: { tpl?: any, @@ -611,7 +605,6 @@ export interface UIProgress { setStriped(isStriped: boolean): void; setValue(v: number): void; getValue(): number; - } export interface UIProperty { @@ -716,7 +709,6 @@ export interface UISlider { tooltip?: boolean, format?: string, progress?: boolean - }): this; /** @@ -750,10 +742,8 @@ export interface UISlider { * @return {Number} value */ getToValue(): number; - } - export interface UISplitter { (selector: any, options?: { tpl?: any, @@ -849,7 +839,6 @@ export interface UISwitch { } export interface UITab { - (selector: any, options?: { tpl?: any, event?: any, @@ -1011,7 +1000,6 @@ export interface UITooltip { * Sets the content of a tooltip (referring to the title properties in markup) */ title?: string, - }): this; /** diff --git a/jui/jui-tests.ts b/types/jui/jui-tests.ts similarity index 99% rename from jui/jui-tests.ts rename to types/jui/jui-tests.ts index 8a7a5d03f4..5cc6dd93f2 100644 --- a/jui/jui-tests.ts +++ b/types/jui/jui-tests.ts @@ -118,5 +118,4 @@ jui.ready([ }); console.log(selectInstance.getValue()); - }); diff --git a/jui/tsconfig.json b/types/jui/tsconfig.json similarity index 100% rename from jui/tsconfig.json rename to types/jui/tsconfig.json diff --git a/jui-core/tslint.json b/types/jui/tslint.json similarity index 100% rename from jui-core/tslint.json rename to types/jui/tslint.json diff --git a/types/jump.js/index.d.ts b/types/jump.js/index.d.ts new file mode 100644 index 0000000000..111c41d59a --- /dev/null +++ b/types/jump.js/index.d.ts @@ -0,0 +1,19 @@ +// Type definitions for jump.js 1.0 +// Project: https://github.com/callmecavs/jump.js +// Definitions by: rhysd +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = jump; + +declare function jump(target: string | Element | number, opts?: jump.Options): void; + +declare namespace jump { + type TransitionFunc = (t: number, b: number, c: number, d: number) => number; + interface Options { + duration?: number; + offset?: number; + callback?: () => void; + easing?: TransitionFunc; + a11y?: boolean; + } +} diff --git a/jump.js/jump.js-tests.ts b/types/jump.js/jump.js-tests.ts similarity index 100% rename from jump.js/jump.js-tests.ts rename to types/jump.js/jump.js-tests.ts diff --git a/jump.js/tsconfig.json b/types/jump.js/tsconfig.json similarity index 100% rename from jump.js/tsconfig.json rename to types/jump.js/tsconfig.json diff --git a/jui/tslint.json b/types/jump.js/tslint.json similarity index 100% rename from jui/tslint.json rename to types/jump.js/tslint.json diff --git a/jwplayer/index.d.ts b/types/jwplayer/index.d.ts similarity index 100% rename from jwplayer/index.d.ts rename to types/jwplayer/index.d.ts diff --git a/jwplayer/tsconfig.json b/types/jwplayer/tsconfig.json similarity index 100% rename from jwplayer/tsconfig.json rename to types/jwplayer/tsconfig.json diff --git a/jwt-client/index.d.ts b/types/jwt-client/index.d.ts similarity index 100% rename from jwt-client/index.d.ts rename to types/jwt-client/index.d.ts diff --git a/jwt-client/jwt-client-tests.ts b/types/jwt-client/jwt-client-tests.ts similarity index 100% rename from jwt-client/jwt-client-tests.ts rename to types/jwt-client/jwt-client-tests.ts diff --git a/jwt-client/tsconfig.json b/types/jwt-client/tsconfig.json similarity index 100% rename from jwt-client/tsconfig.json rename to types/jwt-client/tsconfig.json diff --git a/jwt-decode/index.d.ts b/types/jwt-decode/index.d.ts similarity index 100% rename from jwt-decode/index.d.ts rename to types/jwt-decode/index.d.ts diff --git a/jwt-decode/jwt-decode-tests.ts b/types/jwt-decode/jwt-decode-tests.ts similarity index 100% rename from jwt-decode/jwt-decode-tests.ts rename to types/jwt-decode/jwt-decode-tests.ts diff --git a/jwt-decode/tsconfig.json b/types/jwt-decode/tsconfig.json similarity index 100% rename from jwt-decode/tsconfig.json rename to types/jwt-decode/tsconfig.json diff --git a/jwt-simple/index.d.ts b/types/jwt-simple/index.d.ts similarity index 100% rename from jwt-simple/index.d.ts rename to types/jwt-simple/index.d.ts diff --git a/jwt-simple/jwt-simple-tests.ts b/types/jwt-simple/jwt-simple-tests.ts similarity index 100% rename from jwt-simple/jwt-simple-tests.ts rename to types/jwt-simple/jwt-simple-tests.ts diff --git a/jwt-simple/tsconfig.json b/types/jwt-simple/tsconfig.json similarity index 100% rename from jwt-simple/tsconfig.json rename to types/jwt-simple/tsconfig.json diff --git a/kafka-node/index.d.ts b/types/kafka-node/index.d.ts similarity index 100% rename from kafka-node/index.d.ts rename to types/kafka-node/index.d.ts diff --git a/kafka-node/kafka-node-tests.ts b/types/kafka-node/kafka-node-tests.ts similarity index 100% rename from kafka-node/kafka-node-tests.ts rename to types/kafka-node/kafka-node-tests.ts diff --git a/kafka-node/tsconfig.json b/types/kafka-node/tsconfig.json similarity index 100% rename from kafka-node/tsconfig.json rename to types/kafka-node/tsconfig.json diff --git a/karma-chai-sinon/index.d.ts b/types/karma-chai-sinon/index.d.ts similarity index 100% rename from karma-chai-sinon/index.d.ts rename to types/karma-chai-sinon/index.d.ts diff --git a/karma-chai-sinon/karma-chai-sinon-tests.ts b/types/karma-chai-sinon/karma-chai-sinon-tests.ts similarity index 100% rename from karma-chai-sinon/karma-chai-sinon-tests.ts rename to types/karma-chai-sinon/karma-chai-sinon-tests.ts diff --git a/karma-chai-sinon/tsconfig.json b/types/karma-chai-sinon/tsconfig.json similarity index 100% rename from karma-chai-sinon/tsconfig.json rename to types/karma-chai-sinon/tsconfig.json diff --git a/karma-coverage/index.d.ts b/types/karma-coverage/index.d.ts similarity index 100% rename from karma-coverage/index.d.ts rename to types/karma-coverage/index.d.ts diff --git a/karma-coverage/karma-coverage-tests.ts b/types/karma-coverage/karma-coverage-tests.ts similarity index 100% rename from karma-coverage/karma-coverage-tests.ts rename to types/karma-coverage/karma-coverage-tests.ts diff --git a/karma-coverage/tsconfig.json b/types/karma-coverage/tsconfig.json similarity index 100% rename from karma-coverage/tsconfig.json rename to types/karma-coverage/tsconfig.json diff --git a/karma-fixture/index.d.ts b/types/karma-fixture/index.d.ts similarity index 100% rename from karma-fixture/index.d.ts rename to types/karma-fixture/index.d.ts diff --git a/karma-fixture/karma-fixture-tests.ts b/types/karma-fixture/karma-fixture-tests.ts similarity index 100% rename from karma-fixture/karma-fixture-tests.ts rename to types/karma-fixture/karma-fixture-tests.ts diff --git a/karma-fixture/tsconfig.json b/types/karma-fixture/tsconfig.json similarity index 100% rename from karma-fixture/tsconfig.json rename to types/karma-fixture/tsconfig.json diff --git a/karma-jasmine/index.d.ts b/types/karma-jasmine/index.d.ts similarity index 100% rename from karma-jasmine/index.d.ts rename to types/karma-jasmine/index.d.ts diff --git a/karma-jasmine/karma-jasmine-tests.ts b/types/karma-jasmine/karma-jasmine-tests.ts similarity index 100% rename from karma-jasmine/karma-jasmine-tests.ts rename to types/karma-jasmine/karma-jasmine-tests.ts diff --git a/karma-jasmine/tsconfig.json b/types/karma-jasmine/tsconfig.json similarity index 100% rename from karma-jasmine/tsconfig.json rename to types/karma-jasmine/tsconfig.json diff --git a/karma/index.d.ts b/types/karma/index.d.ts similarity index 100% rename from karma/index.d.ts rename to types/karma/index.d.ts diff --git a/karma/karma-tests.ts b/types/karma/karma-tests.ts similarity index 100% rename from karma/karma-tests.ts rename to types/karma/karma-tests.ts diff --git a/karma/tsconfig.json b/types/karma/tsconfig.json similarity index 100% rename from karma/tsconfig.json rename to types/karma/tsconfig.json diff --git a/katex/index.d.ts b/types/katex/index.d.ts similarity index 100% rename from katex/index.d.ts rename to types/katex/index.d.ts diff --git a/katex/katex-tests.ts b/types/katex/katex-tests.ts similarity index 100% rename from katex/katex-tests.ts rename to types/katex/katex-tests.ts diff --git a/katex/tsconfig.json b/types/katex/tsconfig.json similarity index 100% rename from katex/tsconfig.json rename to types/katex/tsconfig.json diff --git a/kcors/index.d.ts b/types/kcors/index.d.ts similarity index 70% rename from kcors/index.d.ts rename to types/kcors/index.d.ts index e2618f63cb..e4e9e53fa6 100644 --- a/kcors/index.d.ts +++ b/types/kcors/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for kcors 2.2 // Project: https://github.com/koajs/cors -// Definitions by: Xavier Stouder +// Definitions by: Xavier Stouder , Izayoi Ko // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Koa from "koa"; @@ -10,10 +10,10 @@ export = cors; declare namespace cors { interface Options { - origin?: (req: Koa.Request) => string | string; + origin?: ((req: Koa.Request) => string) | string; allowMethods?: string[] | string; exposeHeaders?: string[] | string; - allowHeaders: string[] | string; + allowHeaders?: string[] | string; maxAge?: number | string; credentials?: boolean; keepHeadersOnError?: boolean; diff --git a/kcors/kcors-tests.ts b/types/kcors/kcors-tests.ts similarity index 100% rename from kcors/kcors-tests.ts rename to types/kcors/kcors-tests.ts diff --git a/kcors/tsconfig.json b/types/kcors/tsconfig.json similarity index 100% rename from kcors/tsconfig.json rename to types/kcors/tsconfig.json diff --git a/jump.js/tslint.json b/types/kcors/tslint.json similarity index 100% rename from jump.js/tslint.json rename to types/kcors/tslint.json diff --git a/kefir/index.d.ts b/types/kefir/index.d.ts similarity index 100% rename from kefir/index.d.ts rename to types/kefir/index.d.ts diff --git a/kefir/kefir-tests.ts b/types/kefir/kefir-tests.ts similarity index 100% rename from kefir/kefir-tests.ts rename to types/kefir/kefir-tests.ts diff --git a/kefir/tsconfig.json b/types/kefir/tsconfig.json similarity index 100% rename from kefir/tsconfig.json rename to types/kefir/tsconfig.json diff --git a/kendo-ui/index.d.ts b/types/kendo-ui/index.d.ts similarity index 100% rename from kendo-ui/index.d.ts rename to types/kendo-ui/index.d.ts diff --git a/kendo-ui/kendo-ui-tests.ts b/types/kendo-ui/kendo-ui-tests.ts similarity index 100% rename from kendo-ui/kendo-ui-tests.ts rename to types/kendo-ui/kendo-ui-tests.ts diff --git a/kendo-ui/tsconfig.json b/types/kendo-ui/tsconfig.json similarity index 100% rename from kendo-ui/tsconfig.json rename to types/kendo-ui/tsconfig.json diff --git a/keyboardjs/index.d.ts b/types/keyboardjs/index.d.ts similarity index 100% rename from keyboardjs/index.d.ts rename to types/keyboardjs/index.d.ts diff --git a/keyboardjs/tsconfig.json b/types/keyboardjs/tsconfig.json similarity index 100% rename from keyboardjs/tsconfig.json rename to types/keyboardjs/tsconfig.json diff --git a/keycloak-js/index.d.ts b/types/keycloak-js/index.d.ts similarity index 94% rename from keycloak-js/index.d.ts rename to types/keycloak-js/index.d.ts index 540084d6fd..9f7e817df1 100644 --- a/keycloak-js/index.d.ts +++ b/types/keycloak-js/index.d.ts @@ -14,13 +14,13 @@ export = Keycloak; declare function Keycloak(config?: string|{}): Keycloak.KeycloakInstance; declare namespace Keycloak { - export type KeycloakAdapterName = 'cordova'|'default'; - export type KeycloakOnLoad = 'login-required'|'check-sso'; - export type KeycloakResponseMode = 'query'|'fragment'; - export type KeycloakResponseType = 'code'|'id_token token'|'code id_token token'; - export type KeycloakFlow = 'standard'|'implicit'|'hybrid'; + type KeycloakAdapterName = 'cordova'|'default'; + type KeycloakOnLoad = 'login-required'|'check-sso'; + type KeycloakResponseMode = 'query'|'fragment'; + type KeycloakResponseType = 'code'|'id_token token'|'code id_token token'; + type KeycloakFlow = 'standard'|'implicit'|'hybrid'; - export interface KeycloakInitOptions { + interface KeycloakInitOptions { /** * @private Undocumented. */ @@ -81,7 +81,7 @@ declare namespace Keycloak { flow?: KeycloakFlow; } - export interface KeycloakLoginOptions { + interface KeycloakLoginOptions { /** * @private Undocumented. */ @@ -131,9 +131,9 @@ declare namespace Keycloak { locale?: string; } - export type KeycloakPromiseCallback = (result: T) => void; + type KeycloakPromiseCallback = (result: T) => void; - export interface KeycloakPromise { + interface KeycloakPromise { /** * Function to call if the promised action succeeds. */ @@ -145,12 +145,12 @@ declare namespace Keycloak { error(callback: KeycloakPromiseCallback): KeycloakPromise; } - export interface KeycloakError { + interface KeycloakError { error: string; error_description: string; } - export interface KeycloakAdapter { + interface KeycloakAdapter { login(options?: KeycloakLoginOptions): KeycloakPromise; logout(options?: any): KeycloakPromise; register(options?: KeycloakLoginOptions): KeycloakPromise; @@ -158,7 +158,7 @@ declare namespace Keycloak { redirectUri(options: { redirectUri: string; }, encodeHash: boolean): string; } - export interface KeycloakProfile { + interface KeycloakProfile { id?: string; username?: string; email?: string; @@ -176,7 +176,7 @@ declare namespace Keycloak { * A client for the Keycloak authentication server. * @see {@link https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/javascript-adapter.html|Keycloak JS adapter documentation} */ - export interface KeycloakInstance { + interface KeycloakInstance { /** * Is true if the user is authenticated, false otherwise. */ diff --git a/keycloak-js/keycloak-authz.d.ts b/types/keycloak-js/keycloak-authz.d.ts similarity index 92% rename from keycloak-js/keycloak-authz.d.ts rename to types/keycloak-js/keycloak-authz.d.ts index 4db057ad97..b15c505257 100644 --- a/keycloak-js/keycloak-authz.d.ts +++ b/types/keycloak-js/keycloak-authz.d.ts @@ -11,11 +11,11 @@ export = KeycloakAuthorization; declare function KeycloakAuthorization(keycloak: Keycloak.KeycloakInstance): KeycloakAuthorization.KeycloakAuthorizationInstance; declare namespace KeycloakAuthorization { - export interface KeycloakAuthorizationPromise { + interface KeycloakAuthorizationPromise { then(onGrant: (rpt: string) => void, onDeny: () => void, onError: () => void): void; } - export interface KeycloakAuthorizationInstance { + interface KeycloakAuthorizationInstance { rpt: any; config: { rpt_endpoint: string }; diff --git a/keycloak-js/keycloak-js-tests.ts b/types/keycloak-js/keycloak-js-tests.ts similarity index 100% rename from keycloak-js/keycloak-js-tests.ts rename to types/keycloak-js/keycloak-js-tests.ts diff --git a/keycloak-js/tsconfig.json b/types/keycloak-js/tsconfig.json similarity index 100% rename from keycloak-js/tsconfig.json rename to types/keycloak-js/tsconfig.json diff --git a/kcors/tslint.json b/types/keycloak-js/tslint.json similarity index 100% rename from kcors/tslint.json rename to types/keycloak-js/tslint.json diff --git a/keygrip/index.d.ts b/types/keygrip/index.d.ts similarity index 89% rename from keygrip/index.d.ts rename to types/keygrip/index.d.ts index b5929aaec6..4c858839c9 100644 --- a/keygrip/index.d.ts +++ b/types/keygrip/index.d.ts @@ -3,13 +3,13 @@ // Definitions by: jKey Lu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare interface Keygrip { +interface Keygrip { sign(data: any): string; verify(data: any, digest: string): boolean; index(data: any, digest: string): number; } -declare interface KeygripFunction { +interface KeygripFunction { new (keys: string[], algorithm?: string, encoding?: string): Keygrip; (keys: string[], algorithm?: string, encoding?: string): Keygrip; } diff --git a/keygrip/keygrip-tests.ts b/types/keygrip/keygrip-tests.ts similarity index 100% rename from keygrip/keygrip-tests.ts rename to types/keygrip/keygrip-tests.ts diff --git a/keygrip/tsconfig.json b/types/keygrip/tsconfig.json similarity index 100% rename from keygrip/tsconfig.json rename to types/keygrip/tsconfig.json diff --git a/keycloak-js/tslint.json b/types/keygrip/tslint.json similarity index 100% rename from keycloak-js/tslint.json rename to types/keygrip/tslint.json diff --git a/keymaster/index.d.ts b/types/keymaster/index.d.ts similarity index 100% rename from keymaster/index.d.ts rename to types/keymaster/index.d.ts diff --git a/keymaster/keymaster-tests.ts b/types/keymaster/keymaster-tests.ts similarity index 100% rename from keymaster/keymaster-tests.ts rename to types/keymaster/keymaster-tests.ts diff --git a/keymaster/tsconfig.json b/types/keymaster/tsconfig.json similarity index 100% rename from keymaster/tsconfig.json rename to types/keymaster/tsconfig.json diff --git a/keymirror/index.d.ts b/types/keymirror/index.d.ts similarity index 100% rename from keymirror/index.d.ts rename to types/keymirror/index.d.ts diff --git a/keymirror/keymirror-tests.ts b/types/keymirror/keymirror-tests.ts similarity index 100% rename from keymirror/keymirror-tests.ts rename to types/keymirror/keymirror-tests.ts diff --git a/keymirror/tsconfig.json b/types/keymirror/tsconfig.json similarity index 100% rename from keymirror/tsconfig.json rename to types/keymirror/tsconfig.json diff --git a/keypress/index.d.ts b/types/keypress/index.d.ts similarity index 100% rename from keypress/index.d.ts rename to types/keypress/index.d.ts diff --git a/keypress/keypress-tests.ts b/types/keypress/keypress-tests.ts similarity index 100% rename from keypress/keypress-tests.ts rename to types/keypress/keypress-tests.ts diff --git a/keypress/tsconfig.json b/types/keypress/tsconfig.json similarity index 100% rename from keypress/tsconfig.json rename to types/keypress/tsconfig.json diff --git a/keytar/index.d.ts b/types/keytar/index.d.ts similarity index 100% rename from keytar/index.d.ts rename to types/keytar/index.d.ts diff --git a/keytar/keytar-tests.ts b/types/keytar/keytar-tests.ts similarity index 100% rename from keytar/keytar-tests.ts rename to types/keytar/keytar-tests.ts diff --git a/keytar/tsconfig.json b/types/keytar/tsconfig.json similarity index 100% rename from keytar/tsconfig.json rename to types/keytar/tsconfig.json diff --git a/kii-cloud-sdk/index.d.ts b/types/kii-cloud-sdk/index.d.ts similarity index 99% rename from kii-cloud-sdk/index.d.ts rename to types/kii-cloud-sdk/index.d.ts index 8dec3a94c8..0879b355bd 100644 --- a/kii-cloud-sdk/index.d.ts +++ b/types/kii-cloud-sdk/index.d.ts @@ -15,7 +15,7 @@ declare namespace KiiCloud { KiiACLSendMessageToTopic, } - export enum KiiSite { + enum KiiSite { US, JP, CN, @@ -24,7 +24,7 @@ declare namespace KiiCloud { EU } - export enum KiiAnalyticsSite { + enum KiiAnalyticsSite { US, JP, CN, @@ -207,7 +207,7 @@ declare namespace KiiCloud { /** * The main SDK class */ - export class Kii { + class Kii { /** * Kii SDK Build Number * @@ -673,7 +673,7 @@ declare namespace KiiCloud { /** * Represents a KiiACL object */ - export class KiiACL { + class KiiACL { /** * Get the list of active ACLs associated with this object from the server * @@ -809,7 +809,7 @@ declare namespace KiiCloud { /** * Represents a KiiACLEntry object */ - export class KiiACLEntry { + class KiiACLEntry { /** * The action that is being permitted/restricted. Possible values: *

@@ -898,7 +898,7 @@ declare namespace KiiCloud { /** * The main SDK class */ - export class KiiAnalytics { + class KiiAnalytics { /** * Retrieve the current app ID * @@ -1107,7 +1107,7 @@ declare namespace KiiCloud { * * When retrieving ACL from an object, test for this class to determine the subject type. */ - export class KiiAnonymousUser { + class KiiAnonymousUser { /** * Returns the ID of Anonymous user. */ @@ -1119,7 +1119,7 @@ declare namespace KiiCloud { * * When retrieving ACL from an object, test for this class to determine the subject type. Example: */ - export class KiiAnyAuthenticatedUser { + class KiiAnyAuthenticatedUser { /** * Returns the ID of AuthenticatedUser user. */ @@ -1136,7 +1136,7 @@ declare namespace KiiCloud { * * Application administrator context. Entities obtained from this class will be manipulated by application admin. */ - export class KiiAppAdminContext { + class KiiAppAdminContext { /** * Creates a reference to a bucket operated by app admin. *

The bucket will be created/accessed within this app's scope @@ -1983,7 +1983,7 @@ declare namespace KiiCloud { /** * Represents a KiiBucket object */ - export class KiiBucket { + class KiiBucket { /** * The name of this bucket * @@ -2332,7 +2332,7 @@ declare namespace KiiCloud { /** * Represents a KiiClause expression object */ - export class KiiClause { + class KiiClause { /** * Create a KiiClause with the AND operator concatenating multiple KiiClause objects * @@ -2542,7 +2542,7 @@ declare namespace KiiCloud { /** * A Parser for error string or error object returned by SDK. */ - export class KiiErrorParser { + class KiiErrorParser { /** * Parse an error string or error object returned by SDK. * @@ -2574,7 +2574,7 @@ declare namespace KiiCloud { /** * Represents Geo Point. */ - export class KiiGeoPoint { + class KiiGeoPoint { /** * Return the latitide of this point. */ @@ -2607,7 +2607,7 @@ declare namespace KiiCloud { /** * Represents a KiiGroup object */ - export class KiiGroup { + class KiiGroup { /** * * @@ -3310,7 +3310,7 @@ declare namespace KiiCloud { /** * Represents a KiiObject object */ - export class KiiObject { + class KiiObject { /** * Get the UUID of the given object, assigned by the server * @@ -4160,7 +4160,7 @@ declare namespace KiiCloud { /** * Represents a KiiPushInstallation object */ - export class KiiPushInstallation { + class KiiPushInstallation { /** * Register the id issued by GCM to the Kii cloud for current logged in user. * @@ -4315,7 +4315,7 @@ declare namespace KiiCloud { /** * Builder of push message */ - export class KiiPushMessageBuilder { + class KiiPushMessageBuilder { /** * instantiate builder with push message data. * By default all push channels (gcm, apns, jpush, mqtt) is enabled. @@ -4591,7 +4591,7 @@ declare namespace KiiCloud { /** * Represents a KiiPushSubscription. */ - export class KiiPushSubscription { + class KiiPushSubscription { /** * Subscribe to bucket or topic. * @@ -4770,7 +4770,7 @@ declare namespace KiiCloud { /** * Represents a KiiQuery object */ - export class KiiQuery { + class KiiQuery { /** * Get the limit of the current query * @@ -4826,7 +4826,7 @@ declare namespace KiiCloud { /** * Represents a server side code entry in KiiCloud. */ - export class KiiServerCodeEntry { + class KiiServerCodeEntry { /** * Execute this server code entry.
* If argument is an empty object or not type of Object, callbacks.failure or reject callback of promise will be called.
@@ -4911,7 +4911,7 @@ declare namespace KiiCloud { /** * Represents a server side code execution result in KiiCloud. */ - export class KiiServerCodeExecResult { + class KiiServerCodeExecResult { /** * Get calculated number of executed steps. * @@ -4930,7 +4930,7 @@ declare namespace KiiCloud { /** * Represents a KiiSocialConnect object */ - export class KiiSocialConnect { + class KiiSocialConnect { /** * * @@ -5533,7 +5533,7 @@ declare namespace KiiCloud { /** * Represents a Thing object */ - export class KiiThing { + class KiiThing { /** * of this thing. * For details refer to {@link KiiThing.register} @@ -6446,7 +6446,7 @@ declare namespace KiiCloud { /** * represents a KiiThingContext object */ - export class KiiThingContext { + class KiiThingContext { /** * Creates a reference to a bucket in App scope operated by thing. * @@ -6608,7 +6608,7 @@ declare namespace KiiCloud { /** * Represents a Topic object. */ - export class KiiTopic { + class KiiTopic { /** * get name of this topic * @@ -6814,7 +6814,7 @@ declare namespace KiiCloud { /** * Represents a KiiUser object */ - export class KiiUser { + class KiiUser { /** * * @@ -8657,7 +8657,7 @@ declare namespace KiiCloud { /** * Represents a KiiUser builder */ - export class KiiUserBuilder { + class KiiUserBuilder { /** * Create a KiiUser builder with identifier. * diff --git a/kii-cloud-sdk/kii-cloud-sdk-tests.ts b/types/kii-cloud-sdk/kii-cloud-sdk-tests.ts similarity index 76% rename from kii-cloud-sdk/kii-cloud-sdk-tests.ts rename to types/kii-cloud-sdk/kii-cloud-sdk-tests.ts index 40abd1e8d4..bd25adeeb0 100644 --- a/kii-cloud-sdk/kii-cloud-sdk-tests.ts +++ b/types/kii-cloud-sdk/kii-cloud-sdk-tests.ts @@ -1,9 +1,7 @@ - - function main() { Kii.initializeWithSite("abc", "def", KiiSite.JP); - var user = KiiUser.userWithUsername("name", "password"); + const user = KiiUser.userWithUsername("name", "password"); user.register({ success(user: KiiUser) { @@ -27,18 +25,18 @@ function main() { }); user.setLocale("en"); - var locale: string = user.getLocale(); + const locale: string = user.getLocale(); - var anotherUser: KiiUser = KiiUserBuilder + const anotherUser: KiiUser = KiiUserBuilder .builderWithIdentifier("id", "password") .setEmailAddress("mail@example.org") .build(); - var bucket = Kii.bucketWithName("foo"); - var clause1 = KiiClause.lessThan("x", 1); - var clause2 = KiiClause.greaterThan("y", 1); - var clause3 = KiiClause.and(clause1, clause2); - var query = KiiQuery.queryWithClause(clause3); + const bucket = Kii.bucketWithName("foo"); + const clause1 = KiiClause.lessThan("x", 1); + const clause2 = KiiClause.greaterThan("y", 1); + const clause3 = KiiClause.and(clause1, clause2); + const query = KiiQuery.queryWithClause(clause3); bucket.executeQuery(query, { success: (query: KiiQuery, @@ -51,10 +49,10 @@ function main() { bucket.executeQuery(query) .then((params: [KiiQuery, KiiObject[], KiiQuery]) => { - var [query, results, nextQuery] = params; + const [query, results, nextQuery] = params; }); - var object = bucket.createObject(); + const object = bucket.createObject(); object.set("foo", 1); @@ -93,11 +91,11 @@ function main() { KiiThing.loadWithVendorThingID("thing ID") .then((thing) => { - var isOnline: boolean = thing.isOnline(); - var onlineStatusModifiedAt: Date = thing.getOnlineStatusModifiedAt(); + const isOnline: boolean = thing.isOnline(); + const onlineStatusModifiedAt: Date = thing.getOnlineStatusModifiedAt(); }); - var error = KiiErrorParser.parse(""); + const error = KiiErrorParser.parse(""); error.code.toLowerCase(); } diff --git a/kii-cloud-sdk/tsconfig.json b/types/kii-cloud-sdk/tsconfig.json similarity index 100% rename from kii-cloud-sdk/tsconfig.json rename to types/kii-cloud-sdk/tsconfig.json diff --git a/kii-cloud-sdk/tslint.json b/types/kii-cloud-sdk/tslint.json similarity index 100% rename from kii-cloud-sdk/tslint.json rename to types/kii-cloud-sdk/tslint.json diff --git a/kik-browser/index.d.ts b/types/kik-browser/index.d.ts similarity index 100% rename from kik-browser/index.d.ts rename to types/kik-browser/index.d.ts diff --git a/kik-browser/kik-browser-tests.ts b/types/kik-browser/kik-browser-tests.ts similarity index 100% rename from kik-browser/kik-browser-tests.ts rename to types/kik-browser/kik-browser-tests.ts diff --git a/kik-browser/tsconfig.json b/types/kik-browser/tsconfig.json similarity index 100% rename from kik-browser/tsconfig.json rename to types/kik-browser/tsconfig.json diff --git a/kineticjs/index.d.ts b/types/kineticjs/index.d.ts similarity index 100% rename from kineticjs/index.d.ts rename to types/kineticjs/index.d.ts diff --git a/kineticjs/kineticjs-tests.ts b/types/kineticjs/kineticjs-tests.ts similarity index 100% rename from kineticjs/kineticjs-tests.ts rename to types/kineticjs/kineticjs-tests.ts diff --git a/kineticjs/tsconfig.json b/types/kineticjs/tsconfig.json similarity index 100% rename from kineticjs/tsconfig.json rename to types/kineticjs/tsconfig.json diff --git a/klaw-sync/index.d.ts b/types/klaw-sync/index.d.ts similarity index 100% rename from klaw-sync/index.d.ts rename to types/klaw-sync/index.d.ts diff --git a/klaw-sync/klaw-sync-tests.ts b/types/klaw-sync/klaw-sync-tests.ts similarity index 100% rename from klaw-sync/klaw-sync-tests.ts rename to types/klaw-sync/klaw-sync-tests.ts diff --git a/klaw-sync/tsconfig.json b/types/klaw-sync/tsconfig.json similarity index 100% rename from klaw-sync/tsconfig.json rename to types/klaw-sync/tsconfig.json diff --git a/klaw-sync/tslint.json b/types/klaw-sync/tslint.json similarity index 100% rename from klaw-sync/tslint.json rename to types/klaw-sync/tslint.json diff --git a/klaw/index.d.ts b/types/klaw/index.d.ts similarity index 100% rename from klaw/index.d.ts rename to types/klaw/index.d.ts diff --git a/klaw/klaw-tests.ts b/types/klaw/klaw-tests.ts similarity index 100% rename from klaw/klaw-tests.ts rename to types/klaw/klaw-tests.ts diff --git a/klaw/tsconfig.json b/types/klaw/tsconfig.json similarity index 100% rename from klaw/tsconfig.json rename to types/klaw/tsconfig.json diff --git a/knex/index.d.ts b/types/knex/index.d.ts similarity index 100% rename from knex/index.d.ts rename to types/knex/index.d.ts diff --git a/knex/knex-tests.ts b/types/knex/knex-tests.ts similarity index 100% rename from knex/knex-tests.ts rename to types/knex/knex-tests.ts diff --git a/knex/tsconfig.json b/types/knex/tsconfig.json similarity index 100% rename from knex/tsconfig.json rename to types/knex/tsconfig.json diff --git a/knockback/index.d.ts b/types/knockback/index.d.ts similarity index 100% rename from knockback/index.d.ts rename to types/knockback/index.d.ts diff --git a/knockback/tsconfig.json b/types/knockback/tsconfig.json similarity index 100% rename from knockback/tsconfig.json rename to types/knockback/tsconfig.json diff --git a/knockout-amd-helpers/index.d.ts b/types/knockout-amd-helpers/index.d.ts similarity index 100% rename from knockout-amd-helpers/index.d.ts rename to types/knockout-amd-helpers/index.d.ts diff --git a/knockout-amd-helpers/knockout-amd-helpers-tests.ts b/types/knockout-amd-helpers/knockout-amd-helpers-tests.ts similarity index 100% rename from knockout-amd-helpers/knockout-amd-helpers-tests.ts rename to types/knockout-amd-helpers/knockout-amd-helpers-tests.ts diff --git a/knockout-amd-helpers/tsconfig.json b/types/knockout-amd-helpers/tsconfig.json similarity index 100% rename from knockout-amd-helpers/tsconfig.json rename to types/knockout-amd-helpers/tsconfig.json diff --git a/knockout-paging/index.d.ts b/types/knockout-paging/index.d.ts similarity index 100% rename from knockout-paging/index.d.ts rename to types/knockout-paging/index.d.ts diff --git a/knockout-paging/knockout-paging-tests.ts b/types/knockout-paging/knockout-paging-tests.ts similarity index 100% rename from knockout-paging/knockout-paging-tests.ts rename to types/knockout-paging/knockout-paging-tests.ts diff --git a/knockout-paging/tsconfig.json b/types/knockout-paging/tsconfig.json similarity index 100% rename from knockout-paging/tsconfig.json rename to types/knockout-paging/tsconfig.json diff --git a/knockout-pre-rendered/index.d.ts b/types/knockout-pre-rendered/index.d.ts similarity index 100% rename from knockout-pre-rendered/index.d.ts rename to types/knockout-pre-rendered/index.d.ts diff --git a/knockout-pre-rendered/knockout-pre-rendered-tests.ts b/types/knockout-pre-rendered/knockout-pre-rendered-tests.ts similarity index 100% rename from knockout-pre-rendered/knockout-pre-rendered-tests.ts rename to types/knockout-pre-rendered/knockout-pre-rendered-tests.ts diff --git a/knockout-pre-rendered/tsconfig.json b/types/knockout-pre-rendered/tsconfig.json similarity index 100% rename from knockout-pre-rendered/tsconfig.json rename to types/knockout-pre-rendered/tsconfig.json diff --git a/knockout-secure-binding/index.d.ts b/types/knockout-secure-binding/index.d.ts similarity index 100% rename from knockout-secure-binding/index.d.ts rename to types/knockout-secure-binding/index.d.ts diff --git a/knockout-secure-binding/knockout-secure-binding-tests.ts b/types/knockout-secure-binding/knockout-secure-binding-tests.ts similarity index 100% rename from knockout-secure-binding/knockout-secure-binding-tests.ts rename to types/knockout-secure-binding/knockout-secure-binding-tests.ts diff --git a/knockout-secure-binding/tsconfig.json b/types/knockout-secure-binding/tsconfig.json similarity index 100% rename from knockout-secure-binding/tsconfig.json rename to types/knockout-secure-binding/tsconfig.json diff --git a/knockout-transformations/index.d.ts b/types/knockout-transformations/index.d.ts similarity index 100% rename from knockout-transformations/index.d.ts rename to types/knockout-transformations/index.d.ts diff --git a/knockout-transformations/knockout-transformations-tests.ts b/types/knockout-transformations/knockout-transformations-tests.ts similarity index 100% rename from knockout-transformations/knockout-transformations-tests.ts rename to types/knockout-transformations/knockout-transformations-tests.ts diff --git a/knockout-transformations/tsconfig.json b/types/knockout-transformations/tsconfig.json similarity index 100% rename from knockout-transformations/tsconfig.json rename to types/knockout-transformations/tsconfig.json diff --git a/knockout.deferred.updates/index.d.ts b/types/knockout.deferred.updates/index.d.ts similarity index 100% rename from knockout.deferred.updates/index.d.ts rename to types/knockout.deferred.updates/index.d.ts diff --git a/knockout.deferred.updates/knockout.deferred.updates-tests.ts b/types/knockout.deferred.updates/knockout.deferred.updates-tests.ts similarity index 100% rename from knockout.deferred.updates/knockout.deferred.updates-tests.ts rename to types/knockout.deferred.updates/knockout.deferred.updates-tests.ts diff --git a/knockout.deferred.updates/tsconfig.json b/types/knockout.deferred.updates/tsconfig.json similarity index 100% rename from knockout.deferred.updates/tsconfig.json rename to types/knockout.deferred.updates/tsconfig.json diff --git a/knockout.editables/index.d.ts b/types/knockout.editables/index.d.ts similarity index 100% rename from knockout.editables/index.d.ts rename to types/knockout.editables/index.d.ts diff --git a/knockout.editables/tsconfig.json b/types/knockout.editables/tsconfig.json similarity index 100% rename from knockout.editables/tsconfig.json rename to types/knockout.editables/tsconfig.json diff --git a/knockout.es5/index.d.ts b/types/knockout.es5/index.d.ts similarity index 100% rename from knockout.es5/index.d.ts rename to types/knockout.es5/index.d.ts diff --git a/knockout.es5/knockout.es5-tests.ts b/types/knockout.es5/knockout.es5-tests.ts similarity index 100% rename from knockout.es5/knockout.es5-tests.ts rename to types/knockout.es5/knockout.es5-tests.ts diff --git a/knockout.es5/tsconfig.json b/types/knockout.es5/tsconfig.json similarity index 100% rename from knockout.es5/tsconfig.json rename to types/knockout.es5/tsconfig.json diff --git a/knockout.kogrid/index.d.ts b/types/knockout.kogrid/index.d.ts similarity index 100% rename from knockout.kogrid/index.d.ts rename to types/knockout.kogrid/index.d.ts diff --git a/knockout.kogrid/knockout.kogrid-tests.ts b/types/knockout.kogrid/knockout.kogrid-tests.ts similarity index 100% rename from knockout.kogrid/knockout.kogrid-tests.ts rename to types/knockout.kogrid/knockout.kogrid-tests.ts diff --git a/knockout.kogrid/tsconfig.json b/types/knockout.kogrid/tsconfig.json similarity index 100% rename from knockout.kogrid/tsconfig.json rename to types/knockout.kogrid/tsconfig.json diff --git a/knockout.mapper/index.d.ts b/types/knockout.mapper/index.d.ts similarity index 100% rename from knockout.mapper/index.d.ts rename to types/knockout.mapper/index.d.ts diff --git a/knockout.mapper/tsconfig.json b/types/knockout.mapper/tsconfig.json similarity index 100% rename from knockout.mapper/tsconfig.json rename to types/knockout.mapper/tsconfig.json diff --git a/knockout.mapping/index.d.ts b/types/knockout.mapping/index.d.ts similarity index 100% rename from knockout.mapping/index.d.ts rename to types/knockout.mapping/index.d.ts diff --git a/knockout.mapping/knockout.mapping-tests.ts b/types/knockout.mapping/knockout.mapping-tests.ts similarity index 100% rename from knockout.mapping/knockout.mapping-tests.ts rename to types/knockout.mapping/knockout.mapping-tests.ts diff --git a/knockout.mapping/tsconfig.json b/types/knockout.mapping/tsconfig.json similarity index 100% rename from knockout.mapping/tsconfig.json rename to types/knockout.mapping/tsconfig.json diff --git a/knockout.postbox/index.d.ts b/types/knockout.postbox/index.d.ts similarity index 100% rename from knockout.postbox/index.d.ts rename to types/knockout.postbox/index.d.ts diff --git a/knockout.postbox/tsconfig.json b/types/knockout.postbox/tsconfig.json similarity index 100% rename from knockout.postbox/tsconfig.json rename to types/knockout.postbox/tsconfig.json diff --git a/knockout.projections/index.d.ts b/types/knockout.projections/index.d.ts similarity index 100% rename from knockout.projections/index.d.ts rename to types/knockout.projections/index.d.ts diff --git a/knockout.projections/knockout.projections-tests.ts b/types/knockout.projections/knockout.projections-tests.ts similarity index 100% rename from knockout.projections/knockout.projections-tests.ts rename to types/knockout.projections/knockout.projections-tests.ts diff --git a/knockout.projections/tsconfig.json b/types/knockout.projections/tsconfig.json similarity index 100% rename from knockout.projections/tsconfig.json rename to types/knockout.projections/tsconfig.json diff --git a/knockout.punches/index.d.ts b/types/knockout.punches/index.d.ts similarity index 100% rename from knockout.punches/index.d.ts rename to types/knockout.punches/index.d.ts diff --git a/knockout.punches/knockout.punches-tests.ts b/types/knockout.punches/knockout.punches-tests.ts similarity index 100% rename from knockout.punches/knockout.punches-tests.ts rename to types/knockout.punches/knockout.punches-tests.ts diff --git a/knockout.punches/tsconfig.json b/types/knockout.punches/tsconfig.json similarity index 100% rename from knockout.punches/tsconfig.json rename to types/knockout.punches/tsconfig.json diff --git a/knockout.rx/index.d.ts b/types/knockout.rx/index.d.ts similarity index 100% rename from knockout.rx/index.d.ts rename to types/knockout.rx/index.d.ts diff --git a/knockout.rx/knockout.rx-tests.ts b/types/knockout.rx/knockout.rx-tests.ts similarity index 100% rename from knockout.rx/knockout.rx-tests.ts rename to types/knockout.rx/knockout.rx-tests.ts diff --git a/knockout.rx/tsconfig.json b/types/knockout.rx/tsconfig.json similarity index 100% rename from knockout.rx/tsconfig.json rename to types/knockout.rx/tsconfig.json diff --git a/knockout.validation/index.d.ts b/types/knockout.validation/index.d.ts similarity index 100% rename from knockout.validation/index.d.ts rename to types/knockout.validation/index.d.ts diff --git a/knockout.validation/tsconfig.json b/types/knockout.validation/tsconfig.json similarity index 100% rename from knockout.validation/tsconfig.json rename to types/knockout.validation/tsconfig.json diff --git a/knockout.viewmodel/index.d.ts b/types/knockout.viewmodel/index.d.ts similarity index 100% rename from knockout.viewmodel/index.d.ts rename to types/knockout.viewmodel/index.d.ts diff --git a/knockout.viewmodel/tsconfig.json b/types/knockout.viewmodel/tsconfig.json similarity index 100% rename from knockout.viewmodel/tsconfig.json rename to types/knockout.viewmodel/tsconfig.json diff --git a/knockout/index.d.ts b/types/knockout/index.d.ts similarity index 100% rename from knockout/index.d.ts rename to types/knockout/index.d.ts diff --git a/knockout/test/index.ts b/types/knockout/test/index.ts similarity index 100% rename from knockout/test/index.ts rename to types/knockout/test/index.ts diff --git a/knockout/test/templatingBehaviors.ts b/types/knockout/test/templatingBehaviors.ts similarity index 100% rename from knockout/test/templatingBehaviors.ts rename to types/knockout/test/templatingBehaviors.ts diff --git a/knockout/tsconfig.json b/types/knockout/tsconfig.json similarity index 100% rename from knockout/tsconfig.json rename to types/knockout/tsconfig.json diff --git a/knockstrap/index.d.ts b/types/knockstrap/index.d.ts similarity index 100% rename from knockstrap/index.d.ts rename to types/knockstrap/index.d.ts diff --git a/knockstrap/knockstrap-tests.ts b/types/knockstrap/knockstrap-tests.ts similarity index 100% rename from knockstrap/knockstrap-tests.ts rename to types/knockstrap/knockstrap-tests.ts diff --git a/knockstrap/tsconfig.json b/types/knockstrap/tsconfig.json similarity index 100% rename from knockstrap/tsconfig.json rename to types/knockstrap/tsconfig.json diff --git a/knuddels-userapps-api/index.d.ts b/types/knuddels-userapps-api/index.d.ts similarity index 98% rename from knuddels-userapps-api/index.d.ts rename to types/knuddels-userapps-api/index.d.ts index 52183f832f..98eb30e054 100644 --- a/knuddels-userapps-api/index.d.ts +++ b/types/knuddels-userapps-api/index.d.ts @@ -7,21 +7,25 @@ interface Json { [x: string]: string | number | boolean | Date | Json | JsonArray; } +// tslint:disable-next-line no-empty-interface interface JsonArray extends Array { } // serializable objects (for persistence) type KnuddelsSerializable = string | number | boolean | User | BotUser; interface KnuddelsJson { [x: string]: string | number | boolean | Date | KnuddelsJson | KnuddelsJsonArray | KnuddelsSerializable; } +// tslint:disable-next-line no-empty-interface interface KnuddelsJsonArray extends Array { } // "data" that may be send between apps and between server and client type KnuddelsEvent = string | Json | KnuddelsEventArray; +// tslint:disable-next-line no-empty-interface interface KnuddelsEventArray extends Array { } + /** * App ist die abstrakte Klasse einer konkreten App, die ein Entwickler schreiben kann. * Im eigenen Javascript-Code muss eine Variable mit dem Namen App vorhanden sein, damit eine App lauffähig ist. */ -declare interface App { +interface App { /** * Dieses Methode wird aufgerufen, sobald ein Nutzer versucht den Channel zu betreten. * Die App kann nun entscheiden, ob der Nutzer den Channel betreten darf. @@ -533,9 +537,15 @@ declare class BotUser extends User { * Hat ein Channelbesitzer eine gewisse Menge Schulden angesammelt, so schalten wir alle Apps in diesem Channel ab. *
Es können nur Knuddel transferiert werden zu Nutzern mit UserType.Human. */ - transferKnuddel(receivingUserOrAccount: (User|KnuddelAccount), knuddelAmount: KnuddelAmount, - parameters?: { displayReasonText?: string; transferDisplayType?: KnuddelTransferDisplayType; - onSuccess?: () => void; onError?: (message: string) => void; }): void; + transferKnuddel( + receivingUserOrAccount: User | KnuddelAccount, + knuddelAmount: KnuddelAmount, + parameters?: { + displayReasonText?: string; + transferDisplayType?: KnuddelTransferDisplayType; + onSuccess?: () => void; + onError?: (message: string) => void; + }): void; } /** @@ -869,8 +879,8 @@ declare class Client { /** * Klasse, mit der clientseitige Farbobjekte erstellt werden können. */ -declare module Client { - export class Color { +declare namespace Client { + class Color { /** * Erzeugt ein Color-Objekt mit RGB-Werten. */ @@ -901,8 +911,8 @@ declare module Client { /** * Klasse, die es ermöglicht ein Event via Client/dispatchEvent:method zu versenden. */ -declare module Client { - export class Event { +declare namespace Client { + class Event { /** * Erzeugt ein Event. */ @@ -913,8 +923,8 @@ declare module Client { /** * Klasse, die es ermöglicht den Inhalte zu steuern, die im Bereich liegen, der das HTML User Interface hostet. */ -declare module Client { - export class HostFrame { +declare namespace Client { + class HostFrame { /** * Setzt den Titel der Seite im gezoomten Modus (nur Android). */ @@ -1960,7 +1970,7 @@ declare class SingleDiceResult { /** * Diese Dokumentation beschreibt, welche Erweiterungen am serverseitigen String-Objekt vorgenommen wurden. */ -declare interface String { +interface String { /** * Die Methode liefert den String zurück, auf dem sie aufgerufen wurde mit KCode escaped. */ @@ -2454,8 +2464,9 @@ declare class UserAccess { * Loopt über alle zugreifbaren User sortiert nach Registrierzeitpunkt und * führt für jeden User das übergebene Callback aus. */ - eachAccessibleUser(callback: (user: User, index: number, accessibleUserCount: number, key?: string) => boolean, - parameters?: { onStart?: (accessibleUserCount: number, key?: string) => void; + eachAccessibleUser( + callback: (user: User, index: number, accessibleUserCount: number, key?: string) => boolean, + parameters?: { onStart?: (accessibleUserCount: number, key?: string) => void; onEnd?: (accessibleUserCount: number, key?: string) => void; }): void; } @@ -2570,9 +2581,17 @@ declare class UserPersistenceNumbers { * Ruft eine Funktion für alle Nutzer auf, die einen bestimmten key in der UserPersistence gesetzt haben. * Hierbei greifen die übergebenen Filter. */ - static each(key: string, callback: { user: User; value: number; index: number; totalCount: number; key: string; }, - parameters?: { ascending?: boolean; minimumValue?: number; maximumValue?: number; maximumCount?: number; - onStart?: (totalCount: number, key: string) => void; onEnd?: (totalCount: number, key: string) => void; }): void; + static each( + key: string, + callback: { user: User; value: number; index: number; totalCount: number; key: string; }, + parameters?: { + ascending?: boolean; + minimumValue?: number; + maximumValue?: number; + maximumCount?: number; + onStart?: (totalCount: number, key: string) => void; + onEnd?: (totalCount: number, key: string) => void; + }): void; /** * Liefert alle keys, die für User in der Persistence * gespeichert wurden. @@ -2689,4 +2708,3 @@ declare class VideoChannelData { */ getStreamingVideoUsers(): User[]; } - diff --git a/knuddels-userapps-api/knuddels-userapps-api-tests.ts b/types/knuddels-userapps-api/knuddels-userapps-api-tests.ts similarity index 84% rename from knuddels-userapps-api/knuddels-userapps-api-tests.ts rename to types/knuddels-userapps-api/knuddels-userapps-api-tests.ts index a940b7f19b..dadd8b93b6 100644 --- a/knuddels-userapps-api/knuddels-userapps-api-tests.ts +++ b/types/knuddels-userapps-api/knuddels-userapps-api-tests.ts @@ -1,5 +1,4 @@ class Server implements App { - private usersPlaying: { [nick: string]: number } = {}; private isShuttingDown: boolean = false; @@ -10,7 +9,7 @@ class Server implements App { KnuddelsServer.getChannel() .getOnlineUsers(UserType.Human) .forEach((user) => { - this.onUserJoined(user) + this.onUserJoined(user); }); }; @@ -22,7 +21,7 @@ class Server implements App { }; onUserLeft(user: User) { - if (this.usersPlaying[user.getNick()] == 1) { + if (this.usersPlaying[user.getNick()] === 1) { KnuddelsServer.getDefaultBotUser() .transferKnuddel(user, new KnuddelAmount(1), 'Du hast den Channel verlassen.'); @@ -34,7 +33,7 @@ class Server implements App { if (!this.isShuttingDown) { this.isShuttingDown = true; - for (let key in this.usersPlaying) { + for (const key in this.usersPlaying) { const userId = KnuddelsServer.getUserAccess() .getUserId(key); const user = KnuddelsServer.getUserAccess() @@ -58,14 +57,13 @@ class Server implements App { if (!sender.canSendAppContent(this.appContent)) { knuddelTransfer.reject('Sorry, mit diesem Gerät kannst du gerade nicht spielen.'); } else if (sender.isChannelOwner() && knuddelTransfer.getKnuddelAmount() - .asNumber() != 1) { + .asNumber() !== 1) { knuddelTransfer.accept(); } else if (this.isShuttingDown) { knuddelTransfer.reject('Du App nimmt gerade keine neuen Spieler an.'); } else if (this.usersPlaying[sender.getNick()]) { knuddelTransfer.reject('Du spielst bereits.'); - } else if (knuddelTransfer.getKnuddelAmount() - .asNumber() != 1) { + } else if (knuddelTransfer.getKnuddelAmount().asNumber() !== 1) { const botNick = KnuddelsServer.getDefaultBotUser() .getNick() .escapeKCode(); @@ -76,7 +74,7 @@ class Server implements App { }; onKnuddelReceived(user: User, receiver: User, knuddelAmount: KnuddelAmount) { - if (knuddelAmount.asNumber() == 1) { + if (knuddelAmount.asNumber() === 1) { this.usersPlaying[user.getNick()] = 1; user.sendAppContent(this.appContent); } else { @@ -85,27 +83,23 @@ class Server implements App { }; onEventReceived(user: User, key: string, data: string) { - if (key == 'selectedEntry' && this.usersPlaying[user.getNick()] == 1) { + if (key === 'selectedEntry' && this.usersPlaying[user.getNick()] === 1) { this.usersPlaying[user.getNick()] = 2; setTimeout(() => { - - let doorNumber = parseInt(data[data.length - 1], 10); - - let winningDoorNumber = RandomOperations.nextInt(0, 2) + 1; - - let hasWon = winningDoorNumber == doorNumber; - - let text = hasWon + const doorNumber = parseInt(data[data.length - 1], 10); + const winningDoorNumber = RandomOperations.nextInt(0, 2) + 1; + const hasWon = winningDoorNumber === doorNumber; + const text = hasWon ? 'Richtig getippt' : 'Knapp daneben'; user.getAppContentSession(AppViewMode.Overlay) .getAppContent() .sendEvent('openDoor', { - 'door': doorNumber, - 'winningDoor': winningDoorNumber, - 'text': text, + door: doorNumber, + winningDoor: winningDoorNumber, + text, }); if (hasWon) { @@ -127,7 +121,6 @@ class Server implements App { }, 1500); } }; - } declare let App: Server; // tell the compiler that "App" will be available diff --git a/knuddels-userapps-api/tsconfig.json b/types/knuddels-userapps-api/tsconfig.json similarity index 100% rename from knuddels-userapps-api/tsconfig.json rename to types/knuddels-userapps-api/tsconfig.json diff --git a/knuddels-userapps-api/tslint.json b/types/knuddels-userapps-api/tslint.json similarity index 100% rename from knuddels-userapps-api/tslint.json rename to types/knuddels-userapps-api/tslint.json diff --git a/ko.plus/index.d.ts b/types/ko.plus/index.d.ts similarity index 100% rename from ko.plus/index.d.ts rename to types/ko.plus/index.d.ts diff --git a/ko.plus/ko.plus-tests.ts b/types/ko.plus/ko.plus-tests.ts similarity index 100% rename from ko.plus/ko.plus-tests.ts rename to types/ko.plus/ko.plus-tests.ts diff --git a/ko.plus/tsconfig.json b/types/ko.plus/tsconfig.json similarity index 100% rename from ko.plus/tsconfig.json rename to types/ko.plus/tsconfig.json diff --git a/koa-basic-auth/index.d.ts b/types/koa-basic-auth/index.d.ts similarity index 99% rename from koa-basic-auth/index.d.ts rename to types/koa-basic-auth/index.d.ts index 2cbf888606..0fff3bb731 100644 --- a/koa-basic-auth/index.d.ts +++ b/types/koa-basic-auth/index.d.ts @@ -6,11 +6,8 @@ import * as Koa from "koa"; declare function auth(opts: { - name: string; - pass: string; - }): Koa.Middleware; export = auth; diff --git a/koa-basic-auth/koa-basic-auth-tests.ts b/types/koa-basic-auth/koa-basic-auth-tests.ts similarity index 100% rename from koa-basic-auth/koa-basic-auth-tests.ts rename to types/koa-basic-auth/koa-basic-auth-tests.ts diff --git a/koa-basic-auth/tsconfig.json b/types/koa-basic-auth/tsconfig.json similarity index 100% rename from koa-basic-auth/tsconfig.json rename to types/koa-basic-auth/tsconfig.json diff --git a/keygrip/tslint.json b/types/koa-basic-auth/tslint.json similarity index 100% rename from keygrip/tslint.json rename to types/koa-basic-auth/tslint.json diff --git a/koa-bodyparser/index.d.ts b/types/koa-bodyparser/index.d.ts similarity index 100% rename from koa-bodyparser/index.d.ts rename to types/koa-bodyparser/index.d.ts diff --git a/koa-bodyparser/koa-bodyparser-tests.ts b/types/koa-bodyparser/koa-bodyparser-tests.ts similarity index 100% rename from koa-bodyparser/koa-bodyparser-tests.ts rename to types/koa-bodyparser/koa-bodyparser-tests.ts diff --git a/koa-bodyparser/tsconfig.json b/types/koa-bodyparser/tsconfig.json similarity index 100% rename from koa-bodyparser/tsconfig.json rename to types/koa-bodyparser/tsconfig.json diff --git a/koa-cache-control/index.d.ts b/types/koa-cache-control/index.d.ts similarity index 100% rename from koa-cache-control/index.d.ts rename to types/koa-cache-control/index.d.ts diff --git a/koa-cache-control/koa-cache-control-tests.ts b/types/koa-cache-control/koa-cache-control-tests.ts similarity index 100% rename from koa-cache-control/koa-cache-control-tests.ts rename to types/koa-cache-control/koa-cache-control-tests.ts diff --git a/koa-cache-control/tsconfig.json b/types/koa-cache-control/tsconfig.json similarity index 100% rename from koa-cache-control/tsconfig.json rename to types/koa-cache-control/tsconfig.json diff --git a/koa-cache-control/tslint.json b/types/koa-cache-control/tslint.json similarity index 100% rename from koa-cache-control/tslint.json rename to types/koa-cache-control/tslint.json diff --git a/koa-compose/index.d.ts b/types/koa-compose/index.d.ts similarity index 100% rename from koa-compose/index.d.ts rename to types/koa-compose/index.d.ts diff --git a/koa-compose/koa-compose-tests.ts b/types/koa-compose/koa-compose-tests.ts similarity index 100% rename from koa-compose/koa-compose-tests.ts rename to types/koa-compose/koa-compose-tests.ts diff --git a/koa-compose/tsconfig.json b/types/koa-compose/tsconfig.json similarity index 100% rename from koa-compose/tsconfig.json rename to types/koa-compose/tsconfig.json diff --git a/koa-compose/tslint.json b/types/koa-compose/tslint.json similarity index 100% rename from koa-compose/tslint.json rename to types/koa-compose/tslint.json diff --git a/koa-compress/index.d.ts b/types/koa-compress/index.d.ts similarity index 100% rename from koa-compress/index.d.ts rename to types/koa-compress/index.d.ts diff --git a/koa-compress/koa-compress-tests.ts b/types/koa-compress/koa-compress-tests.ts similarity index 100% rename from koa-compress/koa-compress-tests.ts rename to types/koa-compress/koa-compress-tests.ts diff --git a/koa-compress/tsconfig.json b/types/koa-compress/tsconfig.json similarity index 100% rename from koa-compress/tsconfig.json rename to types/koa-compress/tsconfig.json diff --git a/koa-favicon/index.d.ts b/types/koa-favicon/index.d.ts similarity index 100% rename from koa-favicon/index.d.ts rename to types/koa-favicon/index.d.ts diff --git a/koa-favicon/koa-favicon-tests.ts b/types/koa-favicon/koa-favicon-tests.ts similarity index 100% rename from koa-favicon/koa-favicon-tests.ts rename to types/koa-favicon/koa-favicon-tests.ts diff --git a/koa-favicon/tsconfig.json b/types/koa-favicon/tsconfig.json similarity index 100% rename from koa-favicon/tsconfig.json rename to types/koa-favicon/tsconfig.json diff --git a/koa-hbs/index.d.ts b/types/koa-hbs/index.d.ts similarity index 100% rename from koa-hbs/index.d.ts rename to types/koa-hbs/index.d.ts diff --git a/koa-hbs/koa-hbs-tests.ts b/types/koa-hbs/koa-hbs-tests.ts similarity index 100% rename from koa-hbs/koa-hbs-tests.ts rename to types/koa-hbs/koa-hbs-tests.ts diff --git a/koa-hbs/tsconfig.json b/types/koa-hbs/tsconfig.json similarity index 100% rename from koa-hbs/tsconfig.json rename to types/koa-hbs/tsconfig.json diff --git a/koa-json-error/index.d.ts b/types/koa-json-error/index.d.ts similarity index 100% rename from koa-json-error/index.d.ts rename to types/koa-json-error/index.d.ts diff --git a/koa-json-error/koa-json-error-tests.ts b/types/koa-json-error/koa-json-error-tests.ts similarity index 96% rename from koa-json-error/koa-json-error-tests.ts rename to types/koa-json-error/koa-json-error-tests.ts index 77a13a1f64..31779f7bd9 100644 --- a/koa-json-error/koa-json-error-tests.ts +++ b/types/koa-json-error/koa-json-error-tests.ts @@ -5,4 +5,4 @@ const app = new Koa(); app.use(error({ preFormat: err => Object.assign({}, err) -})); \ No newline at end of file +})); diff --git a/koa-json-error/tsconfig.json b/types/koa-json-error/tsconfig.json similarity index 100% rename from koa-json-error/tsconfig.json rename to types/koa-json-error/tsconfig.json diff --git a/koa-basic-auth/tslint.json b/types/koa-json-error/tslint.json similarity index 100% rename from koa-basic-auth/tslint.json rename to types/koa-json-error/tslint.json diff --git a/koa-json/index.d.ts b/types/koa-json/index.d.ts similarity index 100% rename from koa-json/index.d.ts rename to types/koa-json/index.d.ts diff --git a/koa-json/koa-json-tests.ts b/types/koa-json/koa-json-tests.ts similarity index 100% rename from koa-json/koa-json-tests.ts rename to types/koa-json/koa-json-tests.ts diff --git a/koa-json/tsconfig.json b/types/koa-json/tsconfig.json similarity index 100% rename from koa-json/tsconfig.json rename to types/koa-json/tsconfig.json diff --git a/koa-jwt/index.d.ts b/types/koa-jwt/index.d.ts similarity index 94% rename from koa-jwt/index.d.ts rename to types/koa-jwt/index.d.ts index e2a4435aef..ba60bd8e61 100644 --- a/koa-jwt/index.d.ts +++ b/types/koa-jwt/index.d.ts @@ -10,7 +10,7 @@ export = jwt; declare function jwt(options: jwt.Options): Koa.Middleware; declare namespace jwt { - export interface Options { + interface Options { secret: string | Buffer; key?: string; getToken?: (opts: jwt.Options) => string; diff --git a/koa-jwt/koa-jwt-tests.ts b/types/koa-jwt/koa-jwt-tests.ts similarity index 88% rename from koa-jwt/koa-jwt-tests.ts rename to types/koa-jwt/koa-jwt-tests.ts index 793bf50872..88bd75e739 100644 --- a/koa-jwt/koa-jwt-tests.ts +++ b/types/koa-jwt/koa-jwt-tests.ts @@ -1,7 +1,7 @@ import koa = require('koa'); import jwt = require('koa-jwt'); -var app = new koa(); +const app = new koa(); app.use(jwt({ secret: 'some-secret-key' diff --git a/koa-jwt/tsconfig.json b/types/koa-jwt/tsconfig.json similarity index 100% rename from koa-jwt/tsconfig.json rename to types/koa-jwt/tsconfig.json diff --git a/koa-json-error/tslint.json b/types/koa-jwt/tslint.json similarity index 100% rename from koa-json-error/tslint.json rename to types/koa-jwt/tslint.json diff --git a/koa-logger/index.d.ts b/types/koa-logger/index.d.ts similarity index 100% rename from koa-logger/index.d.ts rename to types/koa-logger/index.d.ts diff --git a/koa-logger/koa-logger-tests.ts b/types/koa-logger/koa-logger-tests.ts similarity index 100% rename from koa-logger/koa-logger-tests.ts rename to types/koa-logger/koa-logger-tests.ts diff --git a/koa-logger/tsconfig.json b/types/koa-logger/tsconfig.json similarity index 100% rename from koa-logger/tsconfig.json rename to types/koa-logger/tsconfig.json diff --git a/koa-mount/index.d.ts b/types/koa-mount/index.d.ts similarity index 100% rename from koa-mount/index.d.ts rename to types/koa-mount/index.d.ts diff --git a/koa-mount/koa-mount-tests.ts b/types/koa-mount/koa-mount-tests.ts similarity index 100% rename from koa-mount/koa-mount-tests.ts rename to types/koa-mount/koa-mount-tests.ts diff --git a/koa-mount/tsconfig.json b/types/koa-mount/tsconfig.json similarity index 100% rename from koa-mount/tsconfig.json rename to types/koa-mount/tsconfig.json diff --git a/koa-passport/index.d.ts b/types/koa-passport/index.d.ts similarity index 100% rename from koa-passport/index.d.ts rename to types/koa-passport/index.d.ts diff --git a/koa-passport/koa-passport-tests.ts b/types/koa-passport/koa-passport-tests.ts similarity index 100% rename from koa-passport/koa-passport-tests.ts rename to types/koa-passport/koa-passport-tests.ts diff --git a/koa-passport/tsconfig.json b/types/koa-passport/tsconfig.json similarity index 100% rename from koa-passport/tsconfig.json rename to types/koa-passport/tsconfig.json diff --git a/koa-pug/index.d.ts b/types/koa-pug/index.d.ts similarity index 86% rename from koa-pug/index.d.ts rename to types/koa-pug/index.d.ts index 836d7c88fe..f478072953 100644 --- a/koa-pug/index.d.ts +++ b/types/koa-pug/index.d.ts @@ -5,19 +5,16 @@ import * as koa from "koa"; - export = Pug; - /** main module */ declare class Pug { constructor(options?: Pug.PugOptions); use(app: koa): void; } - declare namespace Pug { - export interface PugOptions { + interface PugOptions { viewPath?: string; pretty?: boolean; compileDebug?: boolean; @@ -28,14 +25,12 @@ declare namespace Pug { basedir?: string; app?: koa; } - export interface PugCtxOptions extends PugOptions { + interface PugCtxOptions extends PugOptions { fromString: boolean; } - export interface PugLocals { [str: string]: any; } + interface PugLocals { [str: string]: any; } } - - /** plugin */ declare module 'koa' { interface Context { diff --git a/koa-pug/koa-pug-tests.ts b/types/koa-pug/koa-pug-tests.ts similarity index 100% rename from koa-pug/koa-pug-tests.ts rename to types/koa-pug/koa-pug-tests.ts diff --git a/koa-pug/tsconfig.json b/types/koa-pug/tsconfig.json similarity index 100% rename from koa-pug/tsconfig.json rename to types/koa-pug/tsconfig.json diff --git a/types/koa-pug/tslint.json b/types/koa-pug/tslint.json new file mode 100644 index 0000000000..d3631e8907 --- /dev/null +++ b/types/koa-pug/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "../tslint.json", + "rules": { + "no-useless-files": false + } +} diff --git a/koa-router/index.d.ts b/types/koa-router/index.d.ts similarity index 100% rename from koa-router/index.d.ts rename to types/koa-router/index.d.ts diff --git a/koa-router/koa-router-tests.ts b/types/koa-router/koa-router-tests.ts similarity index 100% rename from koa-router/koa-router-tests.ts rename to types/koa-router/koa-router-tests.ts diff --git a/koa-router/tsconfig.json b/types/koa-router/tsconfig.json similarity index 100% rename from koa-router/tsconfig.json rename to types/koa-router/tsconfig.json diff --git a/koa-send/index.d.ts b/types/koa-send/index.d.ts similarity index 100% rename from koa-send/index.d.ts rename to types/koa-send/index.d.ts diff --git a/koa-send/koa-send-tests.ts b/types/koa-send/koa-send-tests.ts similarity index 100% rename from koa-send/koa-send-tests.ts rename to types/koa-send/koa-send-tests.ts diff --git a/koa-send/tsconfig.json b/types/koa-send/tsconfig.json similarity index 100% rename from koa-send/tsconfig.json rename to types/koa-send/tsconfig.json diff --git a/koa-session-minimal/index.d.ts b/types/koa-session-minimal/index.d.ts similarity index 100% rename from koa-session-minimal/index.d.ts rename to types/koa-session-minimal/index.d.ts diff --git a/koa-session-minimal/koa-session-minimal-tests.ts b/types/koa-session-minimal/koa-session-minimal-tests.ts similarity index 100% rename from koa-session-minimal/koa-session-minimal-tests.ts rename to types/koa-session-minimal/koa-session-minimal-tests.ts diff --git a/koa-session-minimal/tsconfig.json b/types/koa-session-minimal/tsconfig.json similarity index 100% rename from koa-session-minimal/tsconfig.json rename to types/koa-session-minimal/tsconfig.json diff --git a/koa-static/index.d.ts b/types/koa-static/index.d.ts similarity index 100% rename from koa-static/index.d.ts rename to types/koa-static/index.d.ts diff --git a/koa-static/koa-static-tests.ts b/types/koa-static/koa-static-tests.ts similarity index 100% rename from koa-static/koa-static-tests.ts rename to types/koa-static/koa-static-tests.ts diff --git a/koa-static/tsconfig.json b/types/koa-static/tsconfig.json similarity index 100% rename from koa-static/tsconfig.json rename to types/koa-static/tsconfig.json diff --git a/koa/index.d.ts b/types/koa/index.d.ts similarity index 100% rename from koa/index.d.ts rename to types/koa/index.d.ts diff --git a/koa/koa-tests.ts b/types/koa/koa-tests.ts similarity index 100% rename from koa/koa-tests.ts rename to types/koa/koa-tests.ts diff --git a/koa/tsconfig.json b/types/koa/tsconfig.json similarity index 100% rename from koa/tsconfig.json rename to types/koa/tsconfig.json diff --git a/kolite/index.d.ts b/types/kolite/index.d.ts similarity index 100% rename from kolite/index.d.ts rename to types/kolite/index.d.ts diff --git a/kolite/knockout.activity.d.ts b/types/kolite/knockout.activity.d.ts similarity index 100% rename from kolite/knockout.activity.d.ts rename to types/kolite/knockout.activity.d.ts diff --git a/kolite/knockout.command.d.ts b/types/kolite/knockout.command.d.ts similarity index 100% rename from kolite/knockout.command.d.ts rename to types/kolite/knockout.command.d.ts diff --git a/kolite/knockout.dirtyFlag.d.ts b/types/kolite/knockout.dirtyFlag.d.ts similarity index 100% rename from kolite/knockout.dirtyFlag.d.ts rename to types/kolite/knockout.dirtyFlag.d.ts diff --git a/kolite/kolite-tests.ts b/types/kolite/kolite-tests.ts similarity index 100% rename from kolite/kolite-tests.ts rename to types/kolite/kolite-tests.ts diff --git a/kolite/tsconfig.json b/types/kolite/tsconfig.json similarity index 100% rename from kolite/tsconfig.json rename to types/kolite/tsconfig.json diff --git a/konami.js/index.d.ts b/types/konami.js/index.d.ts similarity index 100% rename from konami.js/index.d.ts rename to types/konami.js/index.d.ts diff --git a/konami.js/konami.js-tests.ts b/types/konami.js/konami.js-tests.ts similarity index 100% rename from konami.js/konami.js-tests.ts rename to types/konami.js/konami.js-tests.ts diff --git a/konami.js/tsconfig.json b/types/konami.js/tsconfig.json similarity index 100% rename from konami.js/tsconfig.json rename to types/konami.js/tsconfig.json diff --git a/kramed/index.d.ts b/types/kramed/index.d.ts similarity index 99% rename from kramed/index.d.ts rename to types/kramed/index.d.ts index 41984f9dc5..c7cc41b7e6 100644 --- a/kramed/index.d.ts +++ b/types/kramed/index.d.ts @@ -157,4 +157,4 @@ export interface KramedOptions { smartypants?: boolean; } -export declare var kramed: KramedStatic; \ No newline at end of file +export const kramed: KramedStatic; diff --git a/types/kramed/kramed-tests.ts b/types/kramed/kramed-tests.ts new file mode 100644 index 0000000000..2ec7ea833b --- /dev/null +++ b/types/kramed/kramed-tests.ts @@ -0,0 +1,40 @@ +import { KramedOptions, kramed, KramedParser, KramedStatic, KramedRenderer } from 'kramed'; + +const options: KramedOptions = { + gfm: true, + tables: true, + breaks: false, + pedantic: false, + sanitize: true, + smartLists: true, + silent: false, + highlight(code: string, lang: string) { + return ''; + }, + langPrefix: 'lang-', + smartypants: false, + renderer: new kramed.Renderer() +}; + +function callback() { + 'callback called'; +} + +kramed.setOptions(options); + +kramed('i am using __kramdown__.'); +kramed('i am using __kramdown__.', options); +kramed('i am using __kramdown__.', callback); +kramed('i am using __kramdown__.', options, callback); + +kramed.parse('i am using __kramdown__.'); +kramed.parse('i am using __kramdown__.', options); +kramed.parse('i am using __kramdown__.', callback); +kramed.parse('i am using __kramdown__.', options, callback); + +const text = 'something'; +const tokens = kramed.lexer(text, options); +kramed.parser(tokens); + +const renderer = new kramed.Renderer(); +renderer.heading = (text, level, raw) => text + level.toString() + raw; diff --git a/kramed/tsconfig.json b/types/kramed/tsconfig.json similarity index 89% rename from kramed/tsconfig.json rename to types/kramed/tsconfig.json index 50f51102f7..dec874decf 100644 --- a/kramed/tsconfig.json +++ b/types/kramed/tsconfig.json @@ -1,7 +1,9 @@ { "compilerOptions": { "module": "commonjs", - "target": "es6", + "lib": [ + "es6" + ], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/koa-jwt/tslint.json b/types/kramed/tslint.json similarity index 100% rename from koa-jwt/tslint.json rename to types/kramed/tslint.json diff --git a/kue/index.d.ts b/types/kue/index.d.ts similarity index 100% rename from kue/index.d.ts rename to types/kue/index.d.ts diff --git a/kue/kue-tests.ts b/types/kue/kue-tests.ts similarity index 100% rename from kue/kue-tests.ts rename to types/kue/kue-tests.ts diff --git a/kue/tsconfig.json b/types/kue/tsconfig.json similarity index 100% rename from kue/tsconfig.json rename to types/kue/tsconfig.json diff --git a/kuromoji/index.d.ts b/types/kuromoji/index.d.ts similarity index 100% rename from kuromoji/index.d.ts rename to types/kuromoji/index.d.ts diff --git a/kuromoji/kuromoji-tests.ts b/types/kuromoji/kuromoji-tests.ts similarity index 100% rename from kuromoji/kuromoji-tests.ts rename to types/kuromoji/kuromoji-tests.ts diff --git a/kuromoji/tsconfig.json b/types/kuromoji/tsconfig.json similarity index 100% rename from kuromoji/tsconfig.json rename to types/kuromoji/tsconfig.json diff --git a/lab/index.d.ts b/types/lab/index.d.ts similarity index 100% rename from lab/index.d.ts rename to types/lab/index.d.ts diff --git a/lab/lab-tests.ts b/types/lab/lab-tests.ts similarity index 100% rename from lab/lab-tests.ts rename to types/lab/lab-tests.ts diff --git a/lab/tsconfig.json b/types/lab/tsconfig.json similarity index 100% rename from lab/tsconfig.json rename to types/lab/tsconfig.json diff --git a/ladda/index.d.ts b/types/ladda/index.d.ts similarity index 100% rename from ladda/index.d.ts rename to types/ladda/index.d.ts diff --git a/ladda/ladda-tests.ts b/types/ladda/ladda-tests.ts similarity index 100% rename from ladda/ladda-tests.ts rename to types/ladda/ladda-tests.ts diff --git a/ladda/tsconfig.json b/types/ladda/tsconfig.json similarity index 100% rename from ladda/tsconfig.json rename to types/ladda/tsconfig.json diff --git a/later/index.d.ts b/types/later/index.d.ts similarity index 100% rename from later/index.d.ts rename to types/later/index.d.ts diff --git a/later/later-tests.ts b/types/later/later-tests.ts similarity index 100% rename from later/later-tests.ts rename to types/later/later-tests.ts diff --git a/later/tsconfig.json b/types/later/tsconfig.json similarity index 100% rename from later/tsconfig.json rename to types/later/tsconfig.json diff --git a/koa-pug/tslint.json b/types/later/tslint.json similarity index 100% rename from koa-pug/tslint.json rename to types/later/tslint.json diff --git a/latinize/index.d.ts b/types/latinize/index.d.ts similarity index 100% rename from latinize/index.d.ts rename to types/latinize/index.d.ts diff --git a/latinize/latinize-tests.ts b/types/latinize/latinize-tests.ts similarity index 100% rename from latinize/latinize-tests.ts rename to types/latinize/latinize-tests.ts diff --git a/latinize/tsconfig.json b/types/latinize/tsconfig.json similarity index 100% rename from latinize/tsconfig.json rename to types/latinize/tsconfig.json diff --git a/launchpad/index.d.ts b/types/launchpad/index.d.ts similarity index 100% rename from launchpad/index.d.ts rename to types/launchpad/index.d.ts diff --git a/launchpad/launchpad-tests.ts b/types/launchpad/launchpad-tests.ts similarity index 100% rename from launchpad/launchpad-tests.ts rename to types/launchpad/launchpad-tests.ts diff --git a/launchpad/tsconfig.json b/types/launchpad/tsconfig.json similarity index 100% rename from launchpad/tsconfig.json rename to types/launchpad/tsconfig.json diff --git a/lazy.js/index.d.ts b/types/lazy.js/index.d.ts similarity index 100% rename from lazy.js/index.d.ts rename to types/lazy.js/index.d.ts diff --git a/lazy.js/lazy.js-tests.ts b/types/lazy.js/lazy.js-tests.ts similarity index 100% rename from lazy.js/lazy.js-tests.ts rename to types/lazy.js/lazy.js-tests.ts diff --git a/lazy.js/tsconfig.json b/types/lazy.js/tsconfig.json similarity index 100% rename from lazy.js/tsconfig.json rename to types/lazy.js/tsconfig.json diff --git a/lazypipe/index.d.ts b/types/lazypipe/index.d.ts similarity index 100% rename from lazypipe/index.d.ts rename to types/lazypipe/index.d.ts diff --git a/lazypipe/lazypipe-tests.ts b/types/lazypipe/lazypipe-tests.ts similarity index 100% rename from lazypipe/lazypipe-tests.ts rename to types/lazypipe/lazypipe-tests.ts diff --git a/lazypipe/tsconfig.json b/types/lazypipe/tsconfig.json similarity index 100% rename from lazypipe/tsconfig.json rename to types/lazypipe/tsconfig.json diff --git a/ldapjs/index.d.ts b/types/ldapjs/index.d.ts similarity index 100% rename from ldapjs/index.d.ts rename to types/ldapjs/index.d.ts diff --git a/ldapjs/ldapjs-tests.ts b/types/ldapjs/ldapjs-tests.ts similarity index 100% rename from ldapjs/ldapjs-tests.ts rename to types/ldapjs/ldapjs-tests.ts diff --git a/ldapjs/tsconfig.json b/types/ldapjs/tsconfig.json similarity index 100% rename from ldapjs/tsconfig.json rename to types/ldapjs/tsconfig.json diff --git a/ldclient-js/index.d.ts b/types/ldclient-js/index.d.ts similarity index 100% rename from ldclient-js/index.d.ts rename to types/ldclient-js/index.d.ts diff --git a/ldclient-js/ldclient-js-tests.ts b/types/ldclient-js/ldclient-js-tests.ts similarity index 100% rename from ldclient-js/ldclient-js-tests.ts rename to types/ldclient-js/ldclient-js-tests.ts diff --git a/ldclient-js/tsconfig.json b/types/ldclient-js/tsconfig.json similarity index 100% rename from ldclient-js/tsconfig.json rename to types/ldclient-js/tsconfig.json diff --git a/leadfoot/index.d.ts b/types/leadfoot/index.d.ts similarity index 100% rename from leadfoot/index.d.ts rename to types/leadfoot/index.d.ts diff --git a/leadfoot/leadfoot-tests.ts b/types/leadfoot/leadfoot-tests.ts similarity index 100% rename from leadfoot/leadfoot-tests.ts rename to types/leadfoot/leadfoot-tests.ts diff --git a/leadfoot/tsconfig.json b/types/leadfoot/tsconfig.json similarity index 100% rename from leadfoot/tsconfig.json rename to types/leadfoot/tsconfig.json diff --git a/leaflet-curve/index.d.ts b/types/leaflet-curve/index.d.ts similarity index 100% rename from leaflet-curve/index.d.ts rename to types/leaflet-curve/index.d.ts diff --git a/leaflet-curve/leaflet-curve-tests.ts b/types/leaflet-curve/leaflet-curve-tests.ts similarity index 100% rename from leaflet-curve/leaflet-curve-tests.ts rename to types/leaflet-curve/leaflet-curve-tests.ts diff --git a/leaflet-curve/package.json b/types/leaflet-curve/package.json similarity index 100% rename from leaflet-curve/package.json rename to types/leaflet-curve/package.json diff --git a/leaflet-curve/tsconfig.json b/types/leaflet-curve/tsconfig.json similarity index 100% rename from leaflet-curve/tsconfig.json rename to types/leaflet-curve/tsconfig.json diff --git a/leaflet-draw/index.d.ts b/types/leaflet-draw/index.d.ts similarity index 81% rename from leaflet-draw/index.d.ts rename to types/leaflet-draw/index.d.ts index 3e2963f18b..300c97b80f 100644 --- a/leaflet-draw/index.d.ts +++ b/types/leaflet-draw/index.d.ts @@ -6,14 +6,12 @@ /// declare namespace L { - export interface MapOptions { + interface MapOptions { drawControl?: boolean; } namespace Control { - - export interface DrawConstructorOptions { - + interface DrawConstructorOptions { /** * The initial position of the control (one of the map corners). * @@ -34,11 +32,9 @@ declare namespace L { * Default value: false */ edit: EditOptions; - } - export interface DrawOptions { - + interface DrawOptions { /** * Polyline draw handler options. Set to false to disable handler. * @@ -75,8 +71,7 @@ declare namespace L { marker?: DrawOptions.MarkerOptions; } - export interface EditOptions { - + interface EditOptions { /** * This is the FeatureGroup that stores all editable shapes. * THIS IS REQUIRED FOR THE EDIT TOOLBAR TO WORK @@ -100,21 +95,17 @@ declare namespace L { remove?: DrawOptions.DeleteHandlerOptions; } - export interface Draw extends Control { + interface Draw extends Control { setDrawingOptions(options: DrawOptions): void; } - export class Draw { + class Draw { constructor(options?: DrawConstructorOptions); } - } - namespace DrawOptions { - - export interface PolylineOptions { - + interface PolylineOptions { /** * Determines if line segments can cross. * @@ -165,8 +156,7 @@ declare namespace L { repeatMode?: boolean; } - export interface PolygonOptions extends PolylineOptions { - + interface PolygonOptions extends PolylineOptions { /** * Show the area of the drawn polygon in m², ha or km². * The area is only approximate and become less accurate the larger the polygon is. @@ -176,8 +166,7 @@ declare namespace L { showArea?: boolean; } - export interface RectangleOptions { - + interface RectangleOptions { /** * The options used when drawing the rectangle on the map. * @@ -193,8 +182,7 @@ declare namespace L { repeatMode?: boolean; } - export interface CircleOptions { - + interface CircleOptions { /** * The options used when drawing the circle on the map. * @@ -210,8 +198,7 @@ declare namespace L { repeatMode?: boolean; } - export interface MarkerOptions { - + interface MarkerOptions { /** * TThe icon displayed when drawing a marker. * @@ -234,7 +221,7 @@ declare namespace L { repeatMode?: boolean; } - export interface EditHandlerOptions { + interface EditHandlerOptions { /** * The path options for how the layers will look while in edit mode. * If this is set to null the editable path options will not be set. @@ -244,37 +231,30 @@ declare namespace L { selectedPathOptions?: L.PathOptions; } - export interface DeleteHandlerOptions { + interface DeleteHandlerOptions { } - } namespace Draw { - namespace Event { - - export const CREATED: string; - export const EDITED: string; - export const DELETED: string; - export const DRAWSTART: string; - export const DRAWSTOP: string; - export const DRAWVERTEX: string; - export const EDITSTART: string; - export const EDITMOVE: string; - export const EDITRESIZE: string; - export const EDITVERTEX: string; - export const EDITSTOP: string; - export const DELETESTART: string; - export const DELETESTOP: string; - + const CREATED: string; + const EDITED: string; + const DELETED: string; + const DRAWSTART: string; + const DRAWSTOP: string; + const DRAWVERTEX: string; + const EDITSTART: string; + const EDITMOVE: string; + const EDITRESIZE: string; + const EDITVERTEX: string; + const EDITSTOP: string; + const DELETESTART: string; + const DELETESTOP: string; } - } namespace DrawEvents { - - export interface Created { - + interface Created { /** * Layer that was just created. */ @@ -286,8 +266,7 @@ declare namespace L { layerType: string; } - export interface Edited { - + interface Edited { /** * List of all layers just edited on the map. */ @@ -297,52 +276,49 @@ declare namespace L { /** * Triggered when layers have been removed (and saved) from the FeatureGroup. */ - export interface Deleted { - + interface Deleted { /** * List of all layers just removed from the map. */ layers: LayerGroup; } - export interface DrawStart { - + interface DrawStart { /** * The type of layer this is. One of: polyline, polygon, rectangle, circle, marker */ layerType: string; } - export interface DrawStop { - + interface DrawStop { /** * The type of layer this is. One of: polyline, polygon, rectangle, circle, marker */ layerType: string; } - export interface EditStart { + interface EditStart { /** * The type of edit this is. One of: edit */ handler: string; } - export interface EditStop { + interface EditStop { /** * The type of edit this is. One of: edit */ handler: string; } - export interface DeleteStart { + interface DeleteStart { /** * The type of edit this is. One of: remove */ handler: string; } - export interface DeleteStop { + interface DeleteStop { /** * The type of edit this is. One of: remove */ @@ -351,15 +327,14 @@ declare namespace L { } namespace GeometryUtil { - /** * Returns the area of a polygon drawn with leaflet.draw */ - export function geodesicArea(coordinates: L.LatLngLiteral[]): number; + function geodesicArea(coordinates: L.LatLngLiteral[]): number; /** * Returns a readable area string in yards or metric */ - export function readableArea(area: number, isMetric: boolean): string; + function readableArea(area: number, isMetric: boolean): string; } } diff --git a/leaflet-draw/leaflet-draw-tests.ts b/types/leaflet-draw/leaflet-draw-tests.ts similarity index 84% rename from leaflet-draw/leaflet-draw-tests.ts rename to types/leaflet-draw/leaflet-draw-tests.ts index 8ad6e2a804..9729747851 100644 --- a/leaflet-draw/leaflet-draw-tests.ts +++ b/types/leaflet-draw/leaflet-draw-tests.ts @@ -1,12 +1,12 @@ -var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', +const osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', osmAttrib = '© OpenStreetMap contributors', osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}), map = L.map('map', {layers: [osm], center: L.latLng(-37.7772, 175.2756), zoom: 15 }); -var drawnItems = L.featureGroup(); +const drawnItems = L.featureGroup(); map.addLayer(drawnItems); -var drawControl = new L.Control.Draw({ +const drawControl = new L.Control.Draw({ position: 'topleft' , draw: { polygon: { @@ -36,8 +36,8 @@ var drawControl = new L.Control.Draw({ map.addControl(drawControl); map.on('draw:created', (e: any) => { - var drawEvent = (e as L.DrawEvents.Created); - var type = drawEvent.layerType, + const drawEvent = e as L.DrawEvents.Created; + const type = drawEvent.layerType, layer = drawEvent.layer; drawnItems.addLayer(layer); diff --git a/leaflet-draw/tsconfig.json b/types/leaflet-draw/tsconfig.json similarity index 100% rename from leaflet-draw/tsconfig.json rename to types/leaflet-draw/tsconfig.json diff --git a/leaflet-draw/tslint.json b/types/leaflet-draw/tslint.json similarity index 100% rename from leaflet-draw/tslint.json rename to types/leaflet-draw/tslint.json diff --git a/leaflet-editable/index.d.ts b/types/leaflet-editable/index.d.ts similarity index 100% rename from leaflet-editable/index.d.ts rename to types/leaflet-editable/index.d.ts diff --git a/leaflet-editable/leaflet-editable-tests.ts b/types/leaflet-editable/leaflet-editable-tests.ts similarity index 100% rename from leaflet-editable/leaflet-editable-tests.ts rename to types/leaflet-editable/leaflet-editable-tests.ts diff --git a/leaflet-editable/package.json b/types/leaflet-editable/package.json similarity index 100% rename from leaflet-editable/package.json rename to types/leaflet-editable/package.json diff --git a/leaflet-editable/tsconfig.json b/types/leaflet-editable/tsconfig.json similarity index 100% rename from leaflet-editable/tsconfig.json rename to types/leaflet-editable/tsconfig.json diff --git a/leaflet-geocoder-mapzen/index.d.ts b/types/leaflet-geocoder-mapzen/index.d.ts similarity index 100% rename from leaflet-geocoder-mapzen/index.d.ts rename to types/leaflet-geocoder-mapzen/index.d.ts diff --git a/leaflet-geocoder-mapzen/leaflet-geocoder-mapzen-tests.ts b/types/leaflet-geocoder-mapzen/leaflet-geocoder-mapzen-tests.ts similarity index 100% rename from leaflet-geocoder-mapzen/leaflet-geocoder-mapzen-tests.ts rename to types/leaflet-geocoder-mapzen/leaflet-geocoder-mapzen-tests.ts diff --git a/leaflet-geocoder-mapzen/package.json b/types/leaflet-geocoder-mapzen/package.json similarity index 100% rename from leaflet-geocoder-mapzen/package.json rename to types/leaflet-geocoder-mapzen/package.json diff --git a/leaflet-geocoder-mapzen/tsconfig.json b/types/leaflet-geocoder-mapzen/tsconfig.json similarity index 100% rename from leaflet-geocoder-mapzen/tsconfig.json rename to types/leaflet-geocoder-mapzen/tsconfig.json diff --git a/types/leaflet-imageoverlay-rotated/index.d.ts b/types/leaflet-imageoverlay-rotated/index.d.ts new file mode 100644 index 0000000000..a60a1d4b37 --- /dev/null +++ b/types/leaflet-imageoverlay-rotated/index.d.ts @@ -0,0 +1,26 @@ +// Type definitions for leaflet-imageoverlay-rotated 0.1 +// Project: https://github.com/IvanSanchez/Leaflet.ImageOverlay.Rotated +// Definitions by: Thomas Kleinke +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace L { + namespace ImageOverlay { + interface Rotated extends L.ImageOverlay { + reposition( + topleft: L.LatLngExpression, + topright: L.LatLngExpression, + bottomleft: L.LatLngExpression): void; + } + } + + namespace imageOverlay { + function rotated( + imgSrc: string | HTMLImageElement | HTMLCanvasElement, + topleft: L.LatLngExpression, + topright: L.LatLngExpression, + bottomleft: L.LatLngExpression, + options?: L.ImageOverlayOptions): L.ImageOverlay.Rotated; + } +} diff --git a/types/leaflet-imageoverlay-rotated/leaflet-imageoverlay-rotated-tests.ts b/types/leaflet-imageoverlay-rotated/leaflet-imageoverlay-rotated-tests.ts new file mode 100644 index 0000000000..50db445f79 --- /dev/null +++ b/types/leaflet-imageoverlay-rotated/leaflet-imageoverlay-rotated-tests.ts @@ -0,0 +1,10 @@ +const topleft = L.latLng(40.52256691873593, -3.7743186950683594); +const topright = L.latLng(40.5210255066156, -3.7734764814376835); +const bottomleft = L.latLng(40.52180437272552, -3.7768453359603886); + +const overlay = L.imageOverlay.rotated("image.jpg", topleft, topright, bottomleft, { + opacity: 0.5, + interactive: true +}); + +overlay.reposition(topleft, topright, bottomleft); diff --git a/leaflet-imageoverlay-rotated/tsconfig.json b/types/leaflet-imageoverlay-rotated/tsconfig.json similarity index 100% rename from leaflet-imageoverlay-rotated/tsconfig.json rename to types/leaflet-imageoverlay-rotated/tsconfig.json diff --git a/kramed/tslint.json b/types/leaflet-imageoverlay-rotated/tslint.json similarity index 100% rename from kramed/tslint.json rename to types/leaflet-imageoverlay-rotated/tslint.json diff --git a/leaflet-label/index.d.ts b/types/leaflet-label/index.d.ts similarity index 98% rename from leaflet-label/index.d.ts rename to types/leaflet-label/index.d.ts index 879f456e2d..da3fafd1a1 100644 --- a/leaflet-label/index.d.ts +++ b/types/leaflet-label/index.d.ts @@ -68,7 +68,7 @@ declare global { new(options?: LabelOptions): Label; } - var Label: LabelStatic; + const Label: LabelStatic; interface Label extends IEventPowered