From 582c37431d1ccc34cc35ab88985db59292cea9ea Mon Sep 17 00:00:00 2001 From: Emilio Martinez Date: Wed, 13 Jun 2018 23:47:15 -0700 Subject: [PATCH 01/65] feat(globby): update definitions for globby 8.0 --- types/globby/globby-tests.ts | 59 +++++++++++++++++++++++--- types/globby/index.d.ts | 82 +++++++++++++++++++++++++++++++----- types/globby/package.json | 6 +++ 3 files changed, 131 insertions(+), 16 deletions(-) create mode 100644 types/globby/package.json diff --git a/types/globby/globby-tests.ts b/types/globby/globby-tests.ts index 1c3c1842d4..e1a57adb74 100644 --- a/types/globby/globby-tests.ts +++ b/types/globby/globby-tests.ts @@ -1,24 +1,71 @@ import { IOptions } from 'glob'; -import globby = require("globby"); +import globby = require('globby'); (async () => { let result: string[]; + + /** + * Standard `pattern` usage + */ result = await globby('*.tmp'); result = await globby(['a.tmp', '*.tmp', '!{c,d,e}.tmp']); result = globby.sync('*.tmp'); result = globby.sync(['a.tmp', '*.tmp', '!{c,d,e}.tmp']); - result = await globby('*.tmp', Object.freeze({ignore: Object.freeze([])})); - result = globby.sync('*.tmp', Object.freeze({ignore: Object.freeze([])})); + /** + * `expandDirectories` option + */ + result = await globby('*.tmp', { expandDirectories: false }); + result = globby.sync('*.tmp', { expandDirectories: false }); + result = await globby('*.tmp', { expandDirectories: ['a*', 'b*'] }); + result = globby.sync('*.tmp', { expandDirectories: ['a*', 'b*'] }); + result = await globby('*.tmp', { + expandDirectories: { + files: ['a', 'b'], + extensions: ['tmp'] + } + }); + result = globby.sync('*.tmp', { + expandDirectories: { + files: ['a', 'b'], + extensions: ['tmp'] + } + }); + + /** + * Options passed through from `fast-glob` + */ + result = await globby('*.tmp', { ignore: ['**/b.tmp'] }); + result = globby.sync('*.tmp', { ignore: ['**/b.tmp'] }); })(); const tasks: Array<{ - pattern: string, - options: IOptions -}> = globby.generateGlobTasks(['*.tmp', '!b.tmp'], {ignore: ['c.tmp']}); + pattern: string; + options: IOptions; +}> = globby.generateGlobTasks(['*.tmp', '!b.tmp'], { ignore: ['c.tmp'] }); console.log(globby.hasMagic('**')); console.log(globby.hasMagic(['**', 'path1', 'path2'])); console.log(!globby.hasMagic(['path1', 'path2'])); + +(async () => { + let result: (path: string) => boolean; + + /** + * Standard `gitignore` usage + */ + result = await globby.gitignore(); + result = globby.gitignore.sync(); + + /** With options */ + result = await globby.gitignore({ + cwd: __dirname, + ignore: ['**/b.tmp'] + }); + result = globby.gitignore.sync({ + cwd: __dirname, + ignore: ['**/b.tmp'] + }); +})(); diff --git a/types/globby/index.d.ts b/types/globby/index.d.ts index 531888f803..af49813432 100644 --- a/types/globby/index.d.ts +++ b/types/globby/index.d.ts @@ -1,37 +1,99 @@ -// Type definitions for globby 6.1 +// Type definitions for globby 8.0 // Project: https://github.com/sindresorhus/globby#readme // Definitions by: Douglas Duteil // Ika // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 -import { IOptions } from 'glob'; +import { IOptions as NodeGlobOptions } from 'glob'; +import { Options as FastGlobOptions } from 'fast-glob'; + +type ExpandDirectoriesOption = boolean | string[] | { files: string[]; extensions: string[] }; + +interface Options extends FastGlobOptions { + /** + * If set to `true`, `globby` will automatically glob directories for you. + * If you define an `Array` it will only glob files that matches the patterns inside the Array. + * You can also define an `Object` with `files` and `extensions` like below: + * + * ```js + * (async () => { + * const paths = await globby('images', { + * expandDirectories: { + * files: ['cat', 'unicorn', '*.jpg'], + * extensions: ['png'] + * } + * }); + * console.log(paths); + * //=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg'] + * })(); + * ``` + * + * Note that if you set this option to `false`, you won't get back matched directories unless + * you set `onlyFiles: false`. + */ + expandDirectories?: ExpandDirectoriesOption; + /** + * Respect ignore patterns in `.gitignore` files that apply to the globbed files. + */ + gitignore?: boolean; +} /** * Returns a `Promise` of matching paths. */ -declare function globby(patterns: string | string[], options?: IOptions): Promise; +declare function globby(patterns: string | string[], options?: Options): Promise; declare namespace globby { /** * Returns an `Array` of matching paths. */ - function sync(patterns: string | string[], options?: IOptions): string[]; + function sync(patterns: string | string[], options?: Options): string[]; /** * Returns an `Array` in the format `{ pattern: string, opts: Object }`, - * which can be passed as arguments to [node-glob](https://github.com/isaacs/node-glob). + * which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). * This is useful for other globbing-related packages. * * Note that you should avoid running the same tasks multiple times as they contain a file system cache. * Instead, run this method each time to ensure file system changes are taken into consideration. */ - function generateGlobTasks(patterns: string | string[], options?: IOptions): Array<{pattern: string, options: IOptions}>; + function generateGlobTasks(patterns: string | string[], options?: Options): Array<{ pattern: string; options: Options }>; /** - * Returns a `boolean` of whether there are any special glob characters in the patterns. + * Returns a boolean of whether there are any special glob characters in the `patterns`. * - * Note that the options affect the results. If `noext: true` is set, then `+(a|b)` will not be considered a magic pattern. - * If the pattern has a brace expansion, like `a/{b/c,x/y}`, then that is considered magical, unless `nobrace: true` is set. + * Note that the options affect the results. If `noext: true` is set, then `+(a|b)` will not + * be considered a magic pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`, + * then that is considered magical, unless `nobrace: true` is set. + * + * This function is backed by [`node-glob`](https://github.com/isaacs/node-glob#globhasmagicpattern-options) */ - function hasMagic(patterns: string | string[], options?: IOptions): boolean; + function hasMagic(patterns: string | string[], options?: NodeGlobOptions): boolean; + /** + * Returns a Promise<(path: string) => boolean> indicating whether a given path is ignored + * via a `.gitignore` file. + * + * Takes `cwd?: string` and `ignore?: string[]` as options. `.gitignore` files matched by the + * ignore config are not used for the resulting filter function. + * + * ```js + * const {gitignore} = require('globby'); + * + * (async () => { + * const isIgnored = await gitignore(); + * console.log(isIgnored('some/file')); + * })(); + * ``` + */ + function gitignore(options?: { cwd?: string; ignore?: string[]; }): Promise<(path: string) => boolean>; + + namespace gitignore { + /** + * Returns a `(path: string) => boolean` indicating whether a given path is ignored via a `.gitignore` file. + * + * Takes the same options as `globby.gitignore`. + */ + function sync(options?: { cwd?: string; ignore?: string[]; }): (path: string) => boolean; + } } export = globby; diff --git a/types/globby/package.json b/types/globby/package.json new file mode 100644 index 0000000000..136d4694e9 --- /dev/null +++ b/types/globby/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "fast-glob": "^2.0.2" + } +} From 1ad3b1f4660cbf46f369c0b57e0c0f88717ae56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20V=C4=82LCIU?= Date: Thu, 14 Jun 2018 14:39:51 +0300 Subject: [PATCH 02/65] nodegit: fix the arguments list of Repository.createBranch() --- types/nodegit/repository.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nodegit/repository.d.ts b/types/nodegit/repository.d.ts index b94d7bd626..008301aa47 100644 --- a/types/nodegit/repository.d.ts +++ b/types/nodegit/repository.d.ts @@ -78,7 +78,7 @@ export class Repository { /** * Creates a branch with the passed in name pointing to the commit */ - createBranch(name: string, commit: Commit | string | Oid, force: boolean, signature: Signature, logMessage: string): Promise; + createBranch(name: string, commit: Commit | string | Oid, force: boolean): Promise; /** * Look up a refs's commit. */ From a610882055ca470278200e4be6f45279f339c8c3 Mon Sep 17 00:00:00 2001 From: Alberto Restifo Date: Fri, 15 Jun 2018 13:00:24 +0200 Subject: [PATCH 03/65] Add NODE_STREAM_INPUT support to Papa Parse --- types/papaparse/index.d.ts | 6 ++++++ types/papaparse/papaparse-tests.ts | 3 +++ 2 files changed, 9 insertions(+) diff --git a/types/papaparse/index.d.ts b/types/papaparse/index.d.ts index d97a25010b..3b9a479030 100644 --- a/types/papaparse/index.d.ts +++ b/types/papaparse/index.d.ts @@ -4,6 +4,7 @@ // Rain Shen // João Loff // John Reilly +// Alberto Restifo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -18,6 +19,8 @@ export function parse(file: File, config?: ParseConfig): ParseResult; export function parse(stream: ReadableStream, config?: ParseConfig): ParseResult; +export function parse(stream: 1, config?: ParseConfig): ReadableStream; + /** * Unparses javascript data objects and returns a csv string */ @@ -45,6 +48,9 @@ export const WORKERS_SUPPORTED: boolean; // The relative path to Papa Parse. This is automatically detected when Papa Parse is loaded synchronously. export const SCRIPT_PATH: string; +// When passed to Papa Parse a Readable stream is returned. +export const NODE_STREAM_INPUT = 1; + /** * Configurable Properties */ diff --git a/types/papaparse/papaparse-tests.ts b/types/papaparse/papaparse-tests.ts index 1e527c4c32..5edcf9a251 100644 --- a/types/papaparse/papaparse-tests.ts +++ b/types/papaparse/papaparse-tests.ts @@ -36,6 +36,9 @@ Papa.parse(file, { } }); + +Papa.parse(Papa.NODE_STREAM_INPUT); + /** * Unparsing */ From fc32ee0facfaf4321fc0fafd032cc367fd25a0f2 Mon Sep 17 00:00:00 2001 From: Alberto Restifo Date: Fri, 15 Jun 2018 13:03:57 +0200 Subject: [PATCH 04/65] Bump version in header --- types/papaparse/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/papaparse/index.d.ts b/types/papaparse/index.d.ts index 3b9a479030..eb634e52b4 100644 --- a/types/papaparse/index.d.ts +++ b/types/papaparse/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for PapaParse v4.1 +// Type definitions for PapaParse v4.5 // Project: https://github.com/mholt/PapaParse // Definitions by: Pedro Flemming // Rain Shen From 1c275841aa34c5c12187acc9fa4a113316e9c283 Mon Sep 17 00:00:00 2001 From: Claas Ahlrichs Date: Mon, 18 Jun 2018 06:43:16 +0200 Subject: [PATCH 05/65] generated files for "starwars-names" package --- types/starwars-names/index.d.ts | 39 ++++++++++++++++++++ types/starwars-names/starwars-names-tests.ts | 0 types/starwars-names/tsconfig.json | 22 +++++++++++ types/starwars-names/tslint.json | 1 + 4 files changed, 62 insertions(+) create mode 100644 types/starwars-names/index.d.ts create mode 100644 types/starwars-names/starwars-names-tests.ts create mode 100644 types/starwars-names/tsconfig.json create mode 100644 types/starwars-names/tslint.json diff --git a/types/starwars-names/index.d.ts b/types/starwars-names/index.d.ts new file mode 100644 index 0000000000..0d2a23d66f --- /dev/null +++ b/types/starwars-names/index.d.ts @@ -0,0 +1,39 @@ +// Type definitions for starwars-names 1.6 +// Project: https://github.com/kentcdodds/starwars-names#readme +// Definitions by: My Self +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/*~ If this module is a UMD module that exposes a global variable 'myLib' when + *~ loaded outside a module loader environment, declare that global here. + *~ Otherwise, delete this declaration. + */ +export as namespace myLib; + +/*~ If this module has methods, declare them as functions like so. + */ +export function myMethod(a: string): string; +export function myOtherMethod(a: number): number; + +/*~ You can declare types that are available via importing the module */ +export interface someType { + name: string; + length: number; + extras?: string[]; +} + +/*~ You can declare properties of the module using const, let, or var */ +export const myField: number; + +/*~ If there are types, properties, or methods inside dotted names + *~ of the module, declare them inside a 'namespace'. + */ +export namespace subProp { + /*~ For example, given this definition, someone could write: + *~ import { subProp } from 'yourModule'; + *~ subProp.foo(); + *~ or + *~ import * as yourMod from 'yourModule'; + *~ yourMod.subProp.foo(); + */ + export function foo(): void; +} \ No newline at end of file diff --git a/types/starwars-names/starwars-names-tests.ts b/types/starwars-names/starwars-names-tests.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/types/starwars-names/tsconfig.json b/types/starwars-names/tsconfig.json new file mode 100644 index 0000000000..90bf11ab77 --- /dev/null +++ b/types/starwars-names/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "starwars-names-tests.ts" + ] +} diff --git a/types/starwars-names/tslint.json b/types/starwars-names/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/starwars-names/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 755fdae13f7c32d17ce9042e5507c5de5837425f Mon Sep 17 00:00:00 2001 From: Claas Ahlrichs Date: Tue, 19 Jun 2018 06:43:25 +0200 Subject: [PATCH 06/65] added exports for "starwars-names" --- types/starwars-names/index.d.ts | 39 ++++----------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/types/starwars-names/index.d.ts b/types/starwars-names/index.d.ts index 0d2a23d66f..a03a7b5fac 100644 --- a/types/starwars-names/index.d.ts +++ b/types/starwars-names/index.d.ts @@ -1,39 +1,8 @@ // Type definitions for starwars-names 1.6 // Project: https://github.com/kentcdodds/starwars-names#readme -// Definitions by: My Self +// Definitions by: Claas Ahlrichs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/*~ If this module is a UMD module that exposes a global variable 'myLib' when - *~ loaded outside a module loader environment, declare that global here. - *~ Otherwise, delete this declaration. - */ -export as namespace myLib; - -/*~ If this module has methods, declare them as functions like so. - */ -export function myMethod(a: string): string; -export function myOtherMethod(a: number): number; - -/*~ You can declare types that are available via importing the module */ -export interface someType { - name: string; - length: number; - extras?: string[]; -} - -/*~ You can declare properties of the module using const, let, or var */ -export const myField: number; - -/*~ If there are types, properties, or methods inside dotted names - *~ of the module, declare them inside a 'namespace'. - */ -export namespace subProp { - /*~ For example, given this definition, someone could write: - *~ import { subProp } from 'yourModule'; - *~ subProp.foo(); - *~ or - *~ import * as yourMod from 'yourModule'; - *~ yourMod.subProp.foo(); - */ - export function foo(): void; -} \ No newline at end of file +export as namespace starwarsNames; +export const all: string[]; +export function random(number: number): number; From dce93542d0b919c8feddae673aae60d4bca8c5d1 Mon Sep 17 00:00:00 2001 From: Horiuchi_H Date: Tue, 19 Jun 2018 16:19:51 +0900 Subject: [PATCH 07/65] add `SunCalc` definition --- types/suncalc/index.d.ts | 49 ++++++++++++++++++++++++++++++++++ types/suncalc/suncalc-tests.ts | 48 +++++++++++++++++++++++++++++++++ types/suncalc/tsconfig.json | 22 +++++++++++++++ types/suncalc/tslint.json | 1 + 4 files changed, 120 insertions(+) create mode 100644 types/suncalc/index.d.ts create mode 100644 types/suncalc/suncalc-tests.ts create mode 100644 types/suncalc/tsconfig.json create mode 100644 types/suncalc/tslint.json diff --git a/types/suncalc/index.d.ts b/types/suncalc/index.d.ts new file mode 100644 index 0000000000..5c9b0bf67e --- /dev/null +++ b/types/suncalc/index.d.ts @@ -0,0 +1,49 @@ +// Type definitions for suncalc 1.8 +// Project: https://github.com/mourner/suncalc +// Definitions by: horiuchi +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export interface GetTimesResult { + dawn: Date; + dusk: Date; + goldenHour: Date; + goldenHourEnd: Date; + nadir: Date; + nauticalDawn: Date; + nauticalDusk: Date; + night: Date; + nightEnd: Date; + solarNoon: Date; + sunrise: Date; + sunriseEnd: Date; + sunset: Date; + sunsetStart: Date; +} +export interface GetSunPositionResult { + altitude: number; + azimuth: number; +} +export interface GetMoonPositionResult { + altitude: number; + azimuth: number; + distance: number; + parallacticAngle: number; +} +export interface GetMoonIlluminationResult { + fraction: number; + phase: number; + angle: number; +} +export interface GetMoonTimes { + rise: Date; + set: Date; + alwaysUp: boolean; + alwaysDown: boolean; +} + +export function getTimes(date: Date, latitude: number, longitude: number): GetTimesResult; +export function addTime(angleInDegrees: number, morningName: string, eveningName: string): void; +export function getPosition(timeAndDate: Date, latitude: number, longitude: number): GetSunPositionResult; +export function getMoonPosition(timeAndDate: Date, latitude: number, longitude: number): GetMoonPositionResult; +export function getMoonIllumination(timeAndDate: Date): GetMoonIlluminationResult; +export function getMoonTimes(date: Date, latitude: number, longitude: number, inUTC?: boolean): GetMoonTimes; diff --git a/types/suncalc/suncalc-tests.ts b/types/suncalc/suncalc-tests.ts new file mode 100644 index 0000000000..0bc8772d04 --- /dev/null +++ b/types/suncalc/suncalc-tests.ts @@ -0,0 +1,48 @@ +import * as SunCalc from 'suncalc'; + +let d: Date; +let x: number; +let b: boolean; + +const date = new Date(); +const latitude = 0.0; +const longitude = 0.0; + +const times = SunCalc.getTimes(date, latitude, longitude); +d = times.dawn; +d = times.dusk; +d = times.goldenHour; +d = times.goldenHourEnd; +d = times.nadir; +d = times.nauticalDawn; +d = times.nauticalDusk; +d = times.night; +d = times.nightEnd; +d = times.solarNoon; +d = times.sunrise; +d = times.sunriseEnd; +d = times.sunset; +d = times.sunsetStart; + +SunCalc.addTime(0.0, 'customTime', 'customTimeEnd'); + +const pos = SunCalc.getPosition(date, latitude, longitude); +x = pos.altitude; +x = pos.azimuth; + +const mp = SunCalc.getMoonPosition(date, latitude, longitude); +x = mp.altitude; +x = mp.azimuth; +x = mp.distance; +x = mp.parallacticAngle; + +const mi = SunCalc.getMoonIllumination(date); +x = mi.fraction; +x = mi.phase; +x = mi.angle; + +const mt = SunCalc.getMoonTimes(date, latitude, longitude, true); +d = mt.rise; +d = mt.set; +b = mt.alwaysUp; +b = mt.alwaysDown; diff --git a/types/suncalc/tsconfig.json b/types/suncalc/tsconfig.json new file mode 100644 index 0000000000..ce875cd1d7 --- /dev/null +++ b/types/suncalc/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "suncalc-tests.ts" + ] +} diff --git a/types/suncalc/tslint.json b/types/suncalc/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/suncalc/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 88b8534ce0cef64742533fdda5fd9374bad683dd Mon Sep 17 00:00:00 2001 From: Horiuchi_H Date: Tue, 19 Jun 2018 16:25:37 +0900 Subject: [PATCH 08/65] add compiler option --- types/suncalc/tsconfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/suncalc/tsconfig.json b/types/suncalc/tsconfig.json index ce875cd1d7..0225e8390e 100644 --- a/types/suncalc/tsconfig.json +++ b/types/suncalc/tsconfig.json @@ -6,7 +6,9 @@ ], "noImplicitAny": true, "noImplicitThis": true, + "strict": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From c242d55f9712823e28e3f3af656b1dc27e539523 Mon Sep 17 00:00:00 2001 From: Saulo Tauil Date: Tue, 19 Jun 2018 02:29:01 -0700 Subject: [PATCH 09/65] Extending and fixing intercom api typings --- types/intercom-client/Company.d.ts | 31 ++++++++++++++ types/intercom-client/IntercomError.d.ts | 16 +++++++ types/intercom-client/User.d.ts | 2 +- types/intercom-client/index.d.ts | 53 ++++++++++++++++++++---- 4 files changed, 94 insertions(+), 8 deletions(-) create mode 100644 types/intercom-client/Company.d.ts create mode 100644 types/intercom-client/IntercomError.d.ts diff --git a/types/intercom-client/Company.d.ts b/types/intercom-client/Company.d.ts new file mode 100644 index 0000000000..8fedb015c6 --- /dev/null +++ b/types/intercom-client/Company.d.ts @@ -0,0 +1,31 @@ + +export type CompanyIdentifier = {company_id: string } + +export interface Company { + readonly "type": "company", + readonly "id": string, + readonly app_id?: string, + company_id?: string, + plan?: string | { type: string, id: string, name: string }, + remote_created_at?: number, + name?: string, + readonly "updated_at": number, + readonly "created_at": number, + size?: number, + website?: string, + industry?: string, + monthly_spend?: number, + session_count?: number, + user_count?: number, + custom_attributes?: { + [key: string]: any + }, + +} + +export interface List { + "type": "company.list", + "total_count": number, + "companies": (Company & CompanyIdentifier)[], + "pages": { "next"?: string, "page": number, "per_page": number, "total_pages": number } +} \ No newline at end of file diff --git a/types/intercom-client/IntercomError.d.ts b/types/intercom-client/IntercomError.d.ts new file mode 100644 index 0000000000..44482e4e03 --- /dev/null +++ b/types/intercom-client/IntercomError.d.ts @@ -0,0 +1,16 @@ + +export interface IntercomError { + statusCode: number, + body: { + type: "error.list", + request_id: string, + errors: [ + { + code: string, //"400", + message: string + } + ] + }, + headers: { status: string } & {[k: string]: string} +} + diff --git a/types/intercom-client/User.d.ts b/types/intercom-client/User.d.ts index 880b8b5681..5b5450f35d 100644 --- a/types/intercom-client/User.d.ts +++ b/types/intercom-client/User.d.ts @@ -1,4 +1,4 @@ -import {Company} from "intercom-client"; +import { Company } from "./Company"; export type UserIdentifier = { "id": string } | { "user_id": string } | { "email": string } diff --git a/types/intercom-client/index.d.ts b/types/intercom-client/index.d.ts index 4d9e572da0..8ffdea477f 100644 --- a/types/intercom-client/index.d.ts +++ b/types/intercom-client/index.d.ts @@ -3,8 +3,16 @@ // Definitions by: Jinesh Shah , Josef Hornych // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 +/// + import { List as UserList, User, UserIdentifier } from './User'; +import { CompanyIdentifier, List as CompanyList, Company } from './Company' import { Scroll } from './Scroll'; +import { IntercomError } from './IntercomError' + +import { IncomingMessage } from 'http'; + +export { IntercomError }; export interface IdentityVerificationOptions { secretKey: string; @@ -20,22 +28,30 @@ export class Client { constructor(username: string, password: string); users: Users; + companies: Companies; } -export interface Company { - readonly "id": string; +type ApiResponse = IncomingMessage & { + body: T } +type callback = ((d: T) => void) | ((err: IntercomError, d: T) => void); + export class Users { - create(user: Partial): Promise; + create(user: Partial): Promise>; + create(user: Partial, cb: callback>): void; - update(user: UserIdentifier & Partial): Promise; + update(user: UserIdentifier & Partial): Promise>; + update(user: UserIdentifier & Partial, cb: callback>): void; - find(identifier: UserIdentifier): Promise; + find(identifier: UserIdentifier): Promise>; + find(identifier: UserIdentifier, cb: callback>): void; - list(): Promise; + list(): Promise>; + list(cb: callback>): void; - listBy(params: {tag_id: string, segment_id: string}): Promise; + listBy(params: {tag_id?: string, segment_id?: string}): Promise>; + listBy(params: {tag_id?: string, segment_id?: string}, cb: callback>): void; scroll: Scroll; @@ -43,3 +59,26 @@ export class Users { requestPermanentDeletion(): Promise<{id: number}>; } + + +export class Companies { + + create(company: CompanyIdentifier & Partial): Promise>; + create(company: CompanyIdentifier & Partial, cb: callback>): void; + + update(company: CompanyIdentifier & Partial): Promise>; + update(company: CompanyIdentifier & Partial, cb: callback>): void; + + find(identifier: CompanyIdentifier): Promise>; + find(identifier: CompanyIdentifier, cb: callback>): void; + + list(): Promise>; + list(cb: callback>): void; + + listBy(params: {tag_id?: string, segment_id?: string}): Promise>; + listBy(params: {tag_id?: string, segment_id?: string}, cb: callback>): void; + + scroll: Scroll; + + archive(): Promise; +} From 8aa65706fa1191b62c1730e7a40ac9d59e7447bb Mon Sep 17 00:00:00 2001 From: Saulo Tauil Date: Tue, 19 Jun 2018 02:37:55 -0700 Subject: [PATCH 10/65] fix linter --- types/intercom-client/index.d.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/types/intercom-client/index.d.ts b/types/intercom-client/index.d.ts index 8ffdea477f..b08e26f9ad 100644 --- a/types/intercom-client/index.d.ts +++ b/types/intercom-client/index.d.ts @@ -6,9 +6,9 @@ /// import { List as UserList, User, UserIdentifier } from './User'; -import { CompanyIdentifier, List as CompanyList, Company } from './Company' +import { CompanyIdentifier, List as CompanyList, Company } from './Company'; import { Scroll } from './Scroll'; -import { IntercomError } from './IntercomError' +import { IntercomError } from './IntercomError'; import { IncomingMessage } from 'http'; @@ -31,11 +31,11 @@ export class Client { companies: Companies; } -type ApiResponse = IncomingMessage & { +export type ApiResponse = IncomingMessage & { body: T -} +}; -type callback = ((d: T) => void) | ((err: IntercomError, d: T) => void); +export type callback = ((d: T) => void) | ((err: IntercomError, d: T) => void); export class Users { create(user: Partial): Promise>; @@ -60,9 +60,7 @@ export class Users { requestPermanentDeletion(): Promise<{id: number}>; } - export class Companies { - create(company: CompanyIdentifier & Partial): Promise>; create(company: CompanyIdentifier & Partial, cb: callback>): void; From d8dabe48c508139fdb6d20d92bbabf3ea0ca0d23 Mon Sep 17 00:00:00 2001 From: Claas Ahlrichs Date: Wed, 20 Jun 2018 06:43:33 +0200 Subject: [PATCH 11/65] added "strictFunctionTypes" to tsconfig.json --- types/starwars-names/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/starwars-names/tsconfig.json b/types/starwars-names/tsconfig.json index 90bf11ab77..009a9d6ef3 100644 --- a/types/starwars-names/tsconfig.json +++ b/types/starwars-names/tsconfig.json @@ -7,6 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From 716d2435c782d275b29b6d69aaff8bceffdf6351 Mon Sep 17 00:00:00 2001 From: Claas Ahlrichs Date: Wed, 20 Jun 2018 06:43:38 +0200 Subject: [PATCH 12/65] added tests to "starwars-names" --- types/starwars-names/starwars-names-tests.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/starwars-names/starwars-names-tests.ts b/types/starwars-names/starwars-names-tests.ts index e69de29bb2..bb2f4dc232 100644 --- a/types/starwars-names/starwars-names-tests.ts +++ b/types/starwars-names/starwars-names-tests.ts @@ -0,0 +1,5 @@ +import * as names from "starwars-names"; + +const allNames = names.all; +const randomName = names.random(); +const threeRandomNames = names.random(3); From b132594ecea598b9cc0eab699d15a7ac96b41af0 Mon Sep 17 00:00:00 2001 From: Claas Ahlrichs Date: Wed, 20 Jun 2018 06:43:43 +0200 Subject: [PATCH 13/65] marked number of random starwars names as optional --- types/starwars-names/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/starwars-names/index.d.ts b/types/starwars-names/index.d.ts index a03a7b5fac..2fa218d315 100644 --- a/types/starwars-names/index.d.ts +++ b/types/starwars-names/index.d.ts @@ -5,4 +5,4 @@ export as namespace starwarsNames; export const all: string[]; -export function random(number: number): number; +export function random(number?: number): number; From 2a60a12d0a0f7285e9fd4eab4e3d295322ce52a9 Mon Sep 17 00:00:00 2001 From: Claas Ahlrichs Date: Wed, 20 Jun 2018 06:43:48 +0200 Subject: [PATCH 14/65] added dedicated export for getting a single starwars name --- types/starwars-names/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/starwars-names/index.d.ts b/types/starwars-names/index.d.ts index 2fa218d315..54f4e17c3b 100644 --- a/types/starwars-names/index.d.ts +++ b/types/starwars-names/index.d.ts @@ -5,4 +5,5 @@ export as namespace starwarsNames; export const all: string[]; -export function random(number?: number): number; +export function random(): string; +export function random(number: number): string[]; From 2a89db7444bf6dec260d4f3952bbbc1670678539 Mon Sep 17 00:00:00 2001 From: jbreckmckye Date: Wed, 20 Jun 2018 10:47:09 +0100 Subject: [PATCH 15/65] Add paged user search interface to Node-Auth0 --- types/auth0/index.d.ts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index be87ceed2c..d39fc6e49b 100644 --- a/types/auth0/index.d.ts +++ b/types/auth0/index.d.ts @@ -68,7 +68,6 @@ export interface UpdateUserData extends UserData { export interface GetUsersData { per_page?: number; page?: number; - include_totals?: boolean; sort?: string; connection?: string; fields?: string; @@ -77,6 +76,10 @@ export interface GetUsersData { search_engine?: string; } +export interface GetUsersDataPaged extends GetUsersData { + include_totals: boolean; +} + export interface Rule { /** * The name of the rule. @@ -345,6 +348,17 @@ export interface User { family_name?: string; } +export interface Page { + start: number; + limit: number; + length: number; + total: number; +} + +export interface UserPage extends Page { + users: User[] +} + export interface Identity { connection: string; user_id: string; @@ -353,7 +367,7 @@ export interface Identity { access_token?: string; profileData?: { email?: string; - email_verified?: boolean; + email_verified?: boolean; name?: string; phone_number?: string; phone_verified?: boolean; @@ -662,7 +676,7 @@ export class ManagementClient { deleteClient(params: ClientParams): Promise; deleteClient(params: ClientParams, cb: (err: Error) => void): void; - + // Client Grants getClientGrants(): Promise; getClientGrants(cb: (err: Error, data: ClientGrant[]) => void): void; @@ -706,6 +720,8 @@ export class ManagementClient { // Users + getUsers(params: GetUsersDataPaged): Promise; + getUsers(params: GetUsersDataPaged, cb: (err: Error, userPage: UserPage) => void): void; getUsers(params?: GetUsersData): Promise; getUsers(cb: (err: Error, users: User[]) => void): void; getUsers(params?: GetUsersData, cb?: (err: Error, users: User[]) => void): void; From 5c745e279b1404073d4b1e92cd104a5f6dcd4de2 Mon Sep 17 00:00:00 2001 From: jbreckmckye Date: Wed, 20 Jun 2018 11:05:06 +0100 Subject: [PATCH 16/65] Test new definitions --- types/auth0/auth0-tests.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/types/auth0/auth0-tests.ts b/types/auth0/auth0-tests.ts index 94e7d63cb3..f4251364d2 100644 --- a/types/auth0/auth0-tests.ts +++ b/types/auth0/auth0-tests.ts @@ -29,6 +29,40 @@ management // Handle the error. }); +// Search users without paging - callback style +management.getUsers({search_engine: 'v3', q: 'name:"jane"', per_page: 25}, (err: Error, users: auth0.User[]) => { + if (err) { + // Handle error + } + console.log(users); +}); + +// Search users without paging - promise style +management.getUsers({search_engine: 'v3', q: 'name:"jane"', per_page: 25}) + .then((users) => { + console.log(users); + }) + .catch((err) => { + // Handle the error + }); + +// Search users with paging - callback style +management.getUsers({search_engine: 'v3', q: 'name:"jane"', per_page: 25, include_totals: true}, (err: Error, userPage: auth0.UserPage) => { + if (err) { + // Handle error + } + console.log(userPage.total); +}); + +// Search users with paging - promise style +management.getUsers({search_engine: 'v3', q: 'name:"jane"', per_page: 25, include_totals: true}) + .then((users: auth0.UserPage) => { + console.log(users.total); + }) + .catch((err) => { + // Handle the error + }); + // Using a callback. management.getUser({id: 'user_id'},(err: Error, user: auth0.User) => { if (err) { From 053ed519cc8b75b173e69c176c87b8154599a4ec Mon Sep 17 00:00:00 2001 From: jbreckmckye Date: Wed, 20 Jun 2018 11:19:02 +0100 Subject: [PATCH 17/65] Increment version number of Node-Auth0 --- types/auth0/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index d39fc6e49b..c449ee8580 100644 --- a/types/auth0/index.d.ts +++ b/types/auth0/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for auth0 2.9.1 +// Type definitions for auth0 2.9.2 // Project: https://github.com/auth0/node-auth0 // Definitions by: Wilson Hobbs , Seth Westphal , Amiram Korach // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From a2d6384e4a8b249fbb2066afb7fae70336d9f92f Mon Sep 17 00:00:00 2001 From: "SIDENIS\\Andrey.Chalkin" Date: Wed, 20 Jun 2018 18:04:19 +0700 Subject: [PATCH 18/65] Added type defintions for http-rx --- types/http-rx/index.d.ts | 22 ++++++++++++++++++++++ types/http-rx/package.json | 6 ++++++ types/http-rx/tsconfig.json | 22 ++++++++++++++++++++++ types/http-rx/tslint.json | 1 + 4 files changed, 51 insertions(+) create mode 100644 types/http-rx/index.d.ts create mode 100644 types/http-rx/package.json create mode 100644 types/http-rx/tsconfig.json create mode 100644 types/http-rx/tslint.json diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts new file mode 100644 index 0000000000..cd2d7cbcdc --- /dev/null +++ b/types/http-rx/index.d.ts @@ -0,0 +1,22 @@ +// Type definitions for http-rx 1.1 +// Project: https://github.com/JasonRammoray/HttpRx +// Definitions by: L2jLiga +// Definitions: https://github.com/DefinitelyTyped/http-rx + +import { Observable } from 'rxjs'; + +interface HttpRx { + get(url: string, options: any): Observable; + + head(url: string, options: any): Observable; + + patch(url: string, options: any): Observable; + + post(url: string, options: any): Observable; + + put(url: string, options: any): Observable; + + 'delete'(url: string, options: any): Observable; +} + +export = HttpRx; diff --git a/types/http-rx/package.json b/types/http-rx/package.json new file mode 100644 index 0000000000..5c3a35fe37 --- /dev/null +++ b/types/http-rx/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "rxjs": ">=6.2.0" + } +} diff --git a/types/http-rx/tsconfig.json b/types/http-rx/tsconfig.json new file mode 100644 index 0000000000..97ce5cee11 --- /dev/null +++ b/types/http-rx/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true + }, + "files": [ + "index.d.ts" + ] +} diff --git a/types/http-rx/tslint.json b/types/http-rx/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/http-rx/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 65c686b8c6f6ecf72d4fdef7410720e8b4ac4e18 Mon Sep 17 00:00:00 2001 From: L2jLiga Date: Wed, 20 Jun 2018 21:51:06 +0700 Subject: [PATCH 19/65] Fixed: link to DefinitelyTyped repo --- types/http-rx/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts index cd2d7cbcdc..4aca59f257 100644 --- a/types/http-rx/index.d.ts +++ b/types/http-rx/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for http-rx 1.1 // Project: https://github.com/JasonRammoray/HttpRx // Definitions by: L2jLiga -// Definitions: https://github.com/DefinitelyTyped/http-rx +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Observable } from 'rxjs'; From 7877837dbc19b04105342f3c58c1b8b7b4aa9950 Mon Sep 17 00:00:00 2001 From: L2jLiga Date: Wed, 20 Jun 2018 22:25:26 +0700 Subject: [PATCH 20/65] Added: http-rx tests file --- types/http-rx/http-rx-tests.ts | 2 ++ types/http-rx/tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 types/http-rx/http-rx-tests.ts diff --git a/types/http-rx/http-rx-tests.ts b/types/http-rx/http-rx-tests.ts new file mode 100644 index 0000000000..9a8a87be08 --- /dev/null +++ b/types/http-rx/http-rx-tests.ts @@ -0,0 +1,2 @@ +import { Observable } from 'rxjs'; +import httpRx = require('http-rx'); diff --git a/types/http-rx/tsconfig.json b/types/http-rx/tsconfig.json index 97ce5cee11..fa115a5617 100644 --- a/types/http-rx/tsconfig.json +++ b/types/http-rx/tsconfig.json @@ -17,6 +17,7 @@ "strictFunctionTypes": true }, "files": [ - "index.d.ts" + "index.d.ts", + "http-rx-tests.ts" ] } From 72d97549f7a8e6ddd08b35ef3f3231867b4581f3 Mon Sep 17 00:00:00 2001 From: L2jLiga Date: Wed, 20 Jun 2018 23:09:14 +0700 Subject: [PATCH 21/65] Added: some tests --- types/http-rx/http-rx-tests.ts | 18 ++++++++++++++++++ types/http-rx/index.d.ts | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/types/http-rx/http-rx-tests.ts b/types/http-rx/http-rx-tests.ts index 9a8a87be08..2cd581aae6 100644 --- a/types/http-rx/http-rx-tests.ts +++ b/types/http-rx/http-rx-tests.ts @@ -1,2 +1,20 @@ import { Observable } from 'rxjs'; import httpRx = require('http-rx'); + +httpRx.get('', {}).subscribe(() => {}); +httpRx.get('', {}).pipe(); + +httpRx.head('', {}).subscribe(() => {}); +httpRx.head('', {}).pipe(); + +httpRx.patch('', {}).subscribe(() => {}); +httpRx.patch('', {}).pipe(); + +httpRx.post('', {}).subscribe(() => {}); +httpRx.post('', {}).pipe(); + +httpRx.put('', {}).subscribe(() => {}); +httpRx.put('', {}).pipe(); + +httpRx.delete('', {}).subscribe(() => {}); +httpRx.delete('', {}).pipe(); diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts index 4aca59f257..7cd130e30a 100644 --- a/types/http-rx/index.d.ts +++ b/types/http-rx/index.d.ts @@ -19,4 +19,5 @@ interface HttpRx { 'delete'(url: string, options: any): Observable; } -export = HttpRx; +declare const httpRx: HttpRx; +export = httpRx; From 891d80e7063881e3515863fd816293018956948d Mon Sep 17 00:00:00 2001 From: Retsam Date: Wed, 20 Jun 2018 12:19:31 -0400 Subject: [PATCH 22/65] Remove the any from the typings for equalityComparer Replaces the (a: any, b: any) signature for equalityComparer. For observables the signature is `equalityComparer(a: T, b: T)`, but for computeds the more accurate signature is `equalityComparer(a: T | undefined, b: T)`, since the equality comparer is run with the initial computation of a computed, with `undefined` as the first argument. For example: ``` const c = ko.pureComputed(() => 4); c.equalityComparer = (a, b) => { console.log(`Comparing ${a} to ${b}`); return true; }; c(); // Wake up the computed // Prints "Comparing undefined to 4" ``` --- types/knockout/index.d.ts | 6 +++++- types/knockout/test/index.ts | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/types/knockout/index.d.ts b/types/knockout/index.d.ts index 5076a05231..1813b29413 100644 --- a/types/knockout/index.d.ts +++ b/types/knockout/index.d.ts @@ -21,7 +21,7 @@ interface KnockoutComputedFunctions extends KnockoutExtensionFunctions { } interface KnockoutObservableFunctions extends KnockoutExtensionFunctions { - equalityComparer(a: any, b: any): boolean; + equalityComparer(a: T, b: T): boolean; } interface KnockoutObservableArrayFunctions extends KnockoutExtensionFunctions { @@ -82,6 +82,10 @@ interface KnockoutComputedStatic { interface KnockoutComputed extends KnockoutObservable, KnockoutComputedFunctions { fn: KnockoutComputedFunctions; + // It's possible for a to be undefined, since the equalityComparer is run on the initial + // computation with undefined as the first argument. This is user-relevant for deferred computeds. + equalityComparer(a: T | undefined, b: T): boolean; + dispose(): void; isActive(): boolean; getDependenciesCount(): number; diff --git a/types/knockout/test/index.ts b/types/knockout/test/index.ts index 38f439efb7..130527818e 100644 --- a/types/knockout/test/index.ts +++ b/types/knockout/test/index.ts @@ -601,6 +601,13 @@ function test_misc() { } } + ko.observable("foo").equalityComparer = (a, b) => { + return a.toLowerCase() === b.toLowerCase(); + }; + ko.computed(() => "foo").equalityComparer = (a, b) => { + return (a !== undefined) && a.toLowerCase() === b.toLowerCase(); + }; + } interface KnockoutBindingHandlers { From 4d19b0553cbe65c7348d1252327c4f04b0d7e060 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Wed, 20 Jun 2018 09:55:40 -0700 Subject: [PATCH 23/65] Moving data from Binding.setDataAsync, LoadOption, and UI.displayDialogAsync into ref --- types/office-js/index.d.ts | 293 ++++++++++++++++++++++++++++++++----- 1 file changed, 255 insertions(+), 38 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index fc2bcb51b9..8f10ec1659 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -596,6 +596,8 @@ declare namespace Office { } /** * Provides objects and methods that you can use to create and manipulate UI components, such as dialog boxes, in your Office Add-ins. + * + * Visit "{@link https://docs.microsoft.com/office/dev/add-ins/develop/dialog-api-in-office-add-ins | Use the Dialog API in your Office Add-ins}" for more information. */ interface UI { /** @@ -609,6 +611,8 @@ declare namespace Office { * The initial page must be on the same domain as the parent page (the startAddress parameter). After the initial page loads, you can go to other domains. * * Any page calling `office.context.ui.messageParent` must also be on the same domain as the parent page. + * + * **Design considerations**: * * The following design considerations apply to dialog boxes: * @@ -629,14 +633,75 @@ declare namespace Office { * - Temporarily increase the surface area that a user has available to complete a task. * * Do not use a dialog box to interact with a document. Use a task pane instead. + * + * For a design pattern that you can use to create a dialog box, see {@link https://github.com/OfficeDev/Office-Add-in-UX-Design-Patterns/blob/master/Patterns/Client_Dialog.md | Client Dialog} in the Office Add-in UX Design Patterns repository on GitHub. + * + * **displayDialogAsync Errors**: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Code numberMeaning
12004The domain of the URL passed to displayDialogAsync is not trusted. The domain must be either the same domain as the host page (including protocol and port number), or it must be registered in the section of the add-in manifest.
12005The URL passed to displayDialogAsync uses the HTTP protocol. HTTPS is required. (In some versions of Office, the error message returned with 12005 is the same one returned for 12004.)
12007A dialog box is already opened from the task pane. A task pane add-in can only have one dialog box open at a time.
+ * + * **Examples**: + * For a simple example that uses the `displayDialogAsync` method, see {@link https://github.com/OfficeDev/Office-Add-in-Dialog-API-Simple-Example/ | Office Add-in Dialog API example} on GitHub. + * + * For examples that show authentication scenarios, see: + * + * - {@link https://github.com/OfficeDev/PowerPoint-Add-in-Microsoft-Graph-ASPNET-InsertChart | PowerPoint Add-in in Microsoft Graph ASP.Net Insert Chart} + * + * - {@link https://github.com/OfficeDev/Office-Add-in-Auth0 | Office Add-in Auth0} + * + * - {@link https://github.com/OfficeDev/Excel-Add-in-ASPNET-QuickBooks | Excel Add-in ASP.NET QuickBooks} + * + * - {@link https://github.com/dougperkes/Office-Add-in-AspNetMvc-ServerAuth/tree/Office2016DisplayDialog | Office Add-in Server Authentication Sample for ASP.net MVC} + * + * - {@link https://github.com/OfficeDev/Word-Add-in-AngularJS-Client-OAuth | Office Add-in Office 365 Client Authentication for AngularJS} * * @param startAddress - Accepts the initial HTTPS URL that opens in the dialog. - * @param options - Optional. Accepts a DialogOptions object to define dialog display. + * @param options - Optional. Accepts an {@link Office.DialogOptions} object to define dialog display. * @param callback - Optional. Accepts a callback method to handle the dialog creation attempt. If successful, the AsyncResult.value is a DialogHandler object. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PropertyUse to
AsyncResult.valueAccess the Dialog object.
AsyncResult.statusDetermine the success or failure of the operation.
AsyncResult.errorAccess an Error object that provides error information if the operation failed. + *
AsyncResult.asyncContextAccess your user-defined object or value, if you passed one as the asyncContext parameter.
*/ displayDialogAsync(startAddress: string, options?: DialogOptions, callback?: (result: AsyncResult) => void): void; /** - * Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent. + * Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent. You can use the properties of the AsyncResult object to return the following information. * @param messageObject Accepts a message from the dialog to deliver to the add-in. */ messageParent(messageObject: any): void; @@ -1487,9 +1552,87 @@ declare namespace Office { * Writes data to the bound section of the document represented by the specified binding object. * * @remarks + * * Hosts: Access, Excel, Word * * Available in Requirement sets: MatrixBindings, TableBindings, TextBindings + * + * The value passed for data contains the data to be written in the binding. The kind of value passed determines what will be written as described in the following table. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
`data` valueData written
A stringPlain text or anything that can be coerced to a string will be written.
An array of arrays ("matrix")Tabular data without headers will be written. For example, to write data to three rows in two columns, you can pass an array like this: `[["R1C1", "R1C2"], ["R2C1", "R2C2"], ["R3C1", "R3C2"]]`. To write a single column of three rows, pass an array like this: `[["R1C1"], ["R2C1"], ["R3C1"]]`.
An {@link Office.TableData} objectA table with headers will be written.
+ * + * Additionally, these application-specific actions apply when writing data to a binding. For Word, the specified data is written to the binding as follows: + * + *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
`data` valueData written
A stringThe specified text is written.
An array of arrays ("matrix") or an {@link Office.TableData} objectA Word table is written.
HTMLThe specified HTML is written. If any of the HTML you write is invalid, Word will not raise an error. Word will write as much of the HTML as it can and will omit any invalid data.
Office Open XML ("Open XML")The specified the XML is written.
+ * + * For Excel, the specified data is written to the binding as follows: + * + *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
`data` valueData written
A stringThe specified text is inserted as the value of the first bound cell.You can also specify a valid formula to add that formula to the bound cell. For example, setting data to `"=SUM(A1:A5)"` will total the values in the specified range. However, when you set a formula on the bound cell, after doing so, you can't read the added formula (or any pre-existing formula) from the bound cell. If you call the Binding.getDataAsync method on the bound cell to read its data, the method can return only the data displayed in the cell (the formula's result).
An array of arrays ("matrix"), and the shape exactly matches the shape of the binding specifiedThe set of rows and columns are written.You can also specify an array of arrays that contain valid formulas to add them to the bound cells. For example, setting data to `[["=SUM(A1:A5)","=AVERAGE(A1:A5)"]]` will add those two formulas to a binding that contains two cells. Just as when setting a formula on a single bound cell, you can't read the added formulas (or any pre-existing formulas) from the binding with the `Binding.getDataAsync` method - it returns only the data displayed in the bound cells.
An {@link Office.TableData} object, and the shape of the table matches the bound table.The specified set of rows and/or headers are written, if no other data in surrounding cells will be overwritten. Note: If you specify formulas in the TableData object you pass for the *data* parameter, you might not get the results you expect due to the "calculated columns" feature of Excel, which automatically duplicates formulas within a column. To work around this when you want to write *data* that contains formulas to a bound table, try specifying the data as an array of arrays (instead of a TableData object), and specify the *coercionType* as Microsoft.Office.Matrix or "matrix".
+ * + * For Excel Online: + * + * - The total number of cells in the value passed to the data parameter can't exceed 20,000 in a single call to this method. + * + * - The number of formatting groups passed to the cellFormat parameter can't exceed 100. A single formatting group consists of a set of formatting applied to a specified range of cells. + * + * In all other cases, an error is returned. + * + * The setDataAsync method will write data in a subset of a table or matrix binding if the optional startRow and startColumn parameters are specified, and they specify a valid range. * * @param data The data to be set in the current selection. Possible data types by host: * @@ -1505,7 +1648,30 @@ declare namespace Office { * * @param options Provides options for how to set the data in a binding. * - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. You can use the properties of the AsyncResult object to return the following information. + * + *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PropertyUse to...
AsyncResult.valueAlways returns undefined because there is no object or data to retrieve.
AsyncResult.statusDetermine the success or failure of the operation.
AsyncResult.errorAccess an Error object that provides error information if the operation failed.
AsyncResult.asyncContextA user-defined item of any type that is returned in the AsyncResult object without being altered.
*/ setDataAsync(data: TableData | any, options?: SetBindingDataOptions, callback?: (result: AsyncResult) => void): void; } @@ -2389,9 +2555,13 @@ declare namespace Office { * * @remarks * - * No more than two documents are allowed to be in memory; otherwise the Document.getFileAsync operation will fail. Use the File.closeAsync method to close the file when you are finished working with it. + * Hosts: PowerPoint, Word * - * In the callback function passed to the closeAsync method, you can use the properties of the AsyncResult object to return the following information. + * Available in Requirement set: File + * + * No more than two documents are allowed to be in memory; otherwise the Document.getFileAsync operation will fail. Use the File.closeAsync method to close the file when you are finished working with it. + * + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. * * * @@ -2415,11 +2585,6 @@ declare namespace Office { * * *
A user-defined item of any type that is returned in the AsyncResult object without being altered.
- * - * Hosts: PowerPoint, Word - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter. - * - * Available in Requirement set: File */ closeAsync(callback?: (result: AsyncResult) => void): void; /** @@ -2429,6 +2594,10 @@ declare namespace Office { * * In the callback function passed to the getSliceAsync method, you can use the properties of the AsyncResult object to return the following information. * + * Hosts: PowerPoint, Word + * @param sliceIndex Specifies the zero-based index of the slice to be retrieved. Required. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. + * * * * @@ -2451,10 +2620,6 @@ declare namespace Office { * * *
PropertyA user-defined item of any type that is returned in the AsyncResult object without being altered.
- * - * Hosts: PowerPoint, Word - * @param sliceIndex Specifies the zero-based index of the slice to be retrieved. Required. - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter. * * Available in Requirement set: File */ @@ -2518,8 +2683,15 @@ declare namespace Office { * * @remarks * You can add multiple event handlers for the specified eventType as long as the name of each event handler function is unique. - * - * In the callback function passed to the addHandlerAsync method, you can use the properties of the AsyncResult object to return the following information. + * + * Hosts: Excel + * + * Available in Requirement set: Settings + * + * @param eventType Specifies the type of event to add. Required. + * @param handler The event handler function to add. Required. + * @param options Provides an option for preserving context data of any type, unchanged, for use in a callback. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. * * * @@ -2543,15 +2715,6 @@ declare namespace Office { * * *
A user-defined item of any type that is returned in the AsyncResult object without being altered.
- * - * Hosts: Excel - * - * Available in Requirement set: Settings - * - * @param eventType Specifies the type of event to add. Required. - * @param handler The event handler function to add. Required. - * @param options Provides an option for preserving context data of any type, unchanged, for use in a callback. - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter. */ addHandlerAsync(eventType: EventType, handler: any, options?: AsyncContextOptions, callback?: (result: AsyncResult) => void): void; /** @@ -2576,6 +2739,12 @@ declare namespace Office { * * In the callback function passed to the refreshAsync method, you can use the properties of the AsyncResult object to return the following information. * + * Hosts: Access, Excel, PowerPoint, Word + * + * Available in Requirement set: Settings + * + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. + * * * * @@ -2598,13 +2767,6 @@ declare namespace Office { * * *
PropertyA user-defined item of any type that is returned in the AsyncResult object without being altered.
- * - * Hosts: Access, Excel, PowerPoint, Word - * - * Available in Requirement set: Settings - * - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter. - */ refreshAsync(callback?: (result: AsyncResult) => void): void; /** @@ -2647,7 +2809,9 @@ declare namespace Office { * * Note: The saveAsync method persists the in-memory settings property bag into the document file; however, the changes to the document file itself are saved only when the user (or AutoRecover setting) saves the document to the file system. The refreshAsync method is only useful in coauthoring scenarios (which are only supported in Word) when other instances of the same add-in might change the settings and those changes should be made available to all instances. * - * In the callback function passed to the saveAsync method, you can use the properties of the AsyncResult object to return the following information. + * Hosts: Access, Excel, PowerPoint, Word + * @param options Provides options for saving settings. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. * * * @@ -2671,10 +2835,6 @@ declare namespace Office { * * *
A user-defined item of any type that is returned in the AsyncResult object without being altered.
- * - * Hosts: Access, Excel, PowerPoint, Word - * @param options Provides options for saving settings. - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter. */ saveAsync(options?: SaveSettingsOptions, callback?: (result: AsyncResult) => void): void; /** @@ -2897,10 +3057,35 @@ declare namespace Office { * Hosts: Excel * * Available in Requirement set: Not in a set + * + * * * @param tableOptions An object literal containing a list of property name-value pairs that define the table options to apply. * @param options Provides an option for preserving context data of any type, unchanged, for use in a callback. - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. You can use the properties of the AsyncResult object to return the following information. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PropertyUse to...
AsyncResult.valueAlways returns undefined because there is no data or object to retrieve when setting formats.
AsyncResult.statusDetermine the success or failure of the operation.
AsyncResult.errorAccess an Error object that provides error information if the operation failed.
AsyncResult.asyncContextA user-defined item of any type that is returned in the AsyncResult object without being altered.
*/ setTableOptionsAsync(tableOptions: any, options?: AsyncContextOptions, callback?: (result: AsyncResult) => void): void; } @@ -13559,10 +13744,42 @@ declare namespace OfficeExtension { } declare namespace OfficeExtension { + /** + * Represents an object that can be passed to the load method to specify the set of properties and relations to be loaded upon execution of sync() method that synchronizes the states between Office objects and corresponding JavaScript proxy objects. + * This takes in options such as select and expand parameters to specify a set of properties to be loaded on the object and also allows pagination on the collection. + * + * @remarks + * + * For Word, the preferred method for specifying the properties and paging information is by using a string literal. The first two examples show the preferred way to request the text and font size properties for paragraphs in a paragraph collection: + * + * `context.load(paragraphs, 'text, font/size');` + * + * `paragraphs.load('text, font/size');` + * + * Here is a similar example using object notation (includes paging): + * + * `context.load(paragraphs, {select: 'text, font/size', expand: 'font', top: 50, skip: 0});` + * + * `paragraphs.load({select: 'text, font/size', expand: 'font', top: 50, skip: 0});` + * + * Note that if we don't specify the specific properties on the font object in the select statement, the expand statement by itself would indicate that all of the font properties are loaded. + */ interface LoadOption { + /** + * Contains a comma delimited list or an array of parameter/relationship names. Optional. + */ select?: string | string[]; + /** + * Contains a comma delimited list or an array of relationship names. Optional. + */ expand?: string | string[]; + /** + * Specifies the maximum number of collection items that can be included in the result. Optional. You can only use this option when you use the object notation option. + */ top?: number; + /** + * Specify the number of items in the collection that are to be skipped and not included in the result. If top is specified, the result set will start after skipping the specified number of items. Optional. You can only use this option when you use the object notation option. + */ skip?: number; } interface UpdateOptions { From 8194248a300300d07f1341f44a29e68b9de22b70 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Wed, 20 Jun 2018 14:54:14 -0700 Subject: [PATCH 24/65] Cleaning up formatting --- types/office-js/index.d.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 346fef880b..ee62c2aad5 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -656,21 +656,6 @@ declare namespace Office { * A dialog box is already opened from the task pane. A task pane add-in can only have one dialog box open at a time. * * - * - * **Examples**: - * For a simple example that uses the `displayDialogAsync` method, see {@link https://github.com/OfficeDev/Office-Add-in-Dialog-API-Simple-Example/ | Office Add-in Dialog API example} on GitHub. - * - * For examples that show authentication scenarios, see: - * - * - {@link https://github.com/OfficeDev/PowerPoint-Add-in-Microsoft-Graph-ASPNET-InsertChart | PowerPoint Add-in in Microsoft Graph ASP.Net Insert Chart} - * - * - {@link https://github.com/OfficeDev/Office-Add-in-Auth0 | Office Add-in Auth0} - * - * - {@link https://github.com/OfficeDev/Excel-Add-in-ASPNET-QuickBooks | Excel Add-in ASP.NET QuickBooks} - * - * - {@link https://github.com/dougperkes/Office-Add-in-AspNetMvc-ServerAuth/tree/Office2016DisplayDialog | Office Add-in Server Authentication Sample for ASP.net MVC} - * - * - {@link https://github.com/OfficeDev/Word-Add-in-AngularJS-Client-OAuth | Office Add-in Office 365 Client Authentication for AngularJS} * * @param startAddress - Accepts the initial HTTPS URL that opens in the dialog. * @param options - Optional. Accepts an {@link Office.DialogOptions} object to define dialog display. @@ -2377,7 +2362,7 @@ declare namespace Office { * * @param coercionType The type of data structure to return. * - * The possible values for the coercionType parameter vary by the host: + * The possible values for the {@link Office.CoercionType} parameter vary by the host: * * - Excel, Excel Online, PowerPoint, PowerPoint Online, Word, and Word Online only: `Office.CoercionType.Text` (string) * From 6b3c6b57a8ab3b4601cc89aee629d42f6b0fa331 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Wed, 20 Jun 2018 15:03:52 -0700 Subject: [PATCH 25/65] Fixing LoadOption link --- types/office-js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index ee62c2aad5..33fa172f3e 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -13889,7 +13889,7 @@ declare namespace OfficeExtension { /** Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties. * * @param object The object whose properties are loaded. - * @param option A comma-delimited string, or array of strings, that specifies the properties/relationships to load, or an {@link Office.OfficeExtension.LoadOption} object. + * @param option A comma-delimited string, or array of strings, that specifies the properties/relationships to load, or an {@link OfficeExtension.LoadOption} object. */ load(object: ClientObject, option?: string | string[] | LoadOption): void; From 0e77add1b6ce51a74763b086a446557073d1c340 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Wed, 20 Jun 2018 16:02:30 -0700 Subject: [PATCH 26/65] Moving tables and extra infrormaion --- types/office-js/index.d.ts | 137 ++++++++++++++++++++----------------- 1 file changed, 74 insertions(+), 63 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 33fa172f3e..1803015c3c 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -656,10 +656,8 @@ declare namespace Office { * A dialog box is already opened from the task pane. A task pane add-in can only have one dialog box open at a time. * * - * - * @param startAddress - Accepts the initial HTTPS URL that opens in the dialog. - * @param options - Optional. Accepts an {@link Office.DialogOptions} object to define dialog display. - * @param callback - Optional. Accepts a callback method to handle the dialog creation attempt. If successful, the AsyncResult.value is a DialogHandler object. + * + * In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the following information. * * * @@ -683,10 +681,14 @@ declare namespace Office { * * *
Access your user-defined object or value, if you passed one as the asyncContext parameter.
+ * + * @param startAddress - Accepts the initial HTTPS URL that opens in the dialog. + * @param options - Optional. Accepts an {@link Office.DialogOptions} object to define dialog display. + * @param callback - Optional. Accepts a callback method to handle the dialog creation attempt. If successful, the AsyncResult.value is a DialogHandler object. */ displayDialogAsync(startAddress: string, options?: DialogOptions, callback?: (result: AsyncResult) => void): void; /** - * Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent. You can use the properties of the AsyncResult object to return the following information. + * Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent. * @param messageObject Accepts a message from the dialog to deliver to the add-in. */ messageParent(messageObject: any): void; @@ -1618,22 +1620,8 @@ declare namespace Office { * In all other cases, an error is returned. * * The setDataAsync method will write data in a subset of a table or matrix binding if the optional startRow and startColumn parameters are specified, and they specify a valid range. - * - * @param data The data to be set in the current selection. Possible data types by host: - * - * string: Excel, Excel Online, Word, and Word Online only - * - * array of arrays: Excel and Word only - * - * {@link Office.TableData}: Access, Excel, and Word only - * - * HTML: Word and Word Online only - * - * Office Open XML: Word only - * - * @param options Provides options for how to set the data in a binding. - * - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. You can use the properties of the AsyncResult object to return the following information. + * + * In the callback function passed to the setDataAsync method, you can use the properties of the AsyncResult object to return the following information. * * * @@ -1657,6 +1645,22 @@ declare namespace Office { * * *
A user-defined item of any type that is returned in the AsyncResult object without being altered.
+ * + * @param data The data to be set in the current selection. Possible data types by host: + * + * string: Excel, Excel Online, Word, and Word Online only + * + * array of arrays: Excel and Word only + * + * {@link Office.TableData}: Access, Excel, and Word only + * + * HTML: Word and Word Online only + * + * Office Open XML: Word only + * + * @param options Provides options for how to set the data in a binding. + * + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. You can use the properties of the AsyncResult object to return the following information. */ setDataAsync(data: TableData | any, options?: SetBindingDataOptions, callback?: (result: AsyncResult) => void): void; } @@ -2359,26 +2363,8 @@ declare namespace Office { * Hosts: Access, Excel, PowerPoint, Project, Word * * Available in Requirement set: Selection - * - * @param coercionType The type of data structure to return. * - * The possible values for the {@link Office.CoercionType} parameter vary by the host: - * - * - Excel, Excel Online, PowerPoint, PowerPoint Online, Word, and Word Online only: `Office.CoercionType.Text` (string) - * - * - Excel, Word, and Word Online only: `Office.CoercionType.Matrix` (array of arrays) - * - * - Access, Excel, Word, and Word Online only: `Office.CoercionType.Table` (TableData object) - * - * - Word only: `Office.CoercionType.Html` - * - * - Word and Word Online only: `Office.CoercionType.Ooxml` (Office Open XML) - * - * - PowerPoint and PowerPoint Online only: `Office.CoercionType.SlideRange` - * - * @param options Provides options for customizing what data is returned and how it is formatted. - * - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. + * In the callback function that is passed to the getSelectedDataAsync method, you can use the properties of the AsyncResult object to return the following information. * * * @@ -2402,6 +2388,26 @@ declare namespace Office { * * *
A user-defined item of any type that is returned in the AsyncResult object without being altered.
+ * + * @param coercionType The type of data structure to return. + * + * The possible values for the {@link Office.CoercionType} parameter vary by the host: + * + * - Excel, Excel Online, PowerPoint, PowerPoint Online, Word, and Word Online only: `Office.CoercionType.Text` (string) + * + * - Excel, Word, and Word Online only: `Office.CoercionType.Matrix` (array of arrays) + * + * - Access, Excel, Word, and Word Online only: `Office.CoercionType.Table` (TableData object) + * + * - Word only: `Office.CoercionType.Html` + * + * - Word and Word Online only: `Office.CoercionType.Ooxml` (Office Open XML) + * + * - PowerPoint and PowerPoint Online only: `Office.CoercionType.SlideRange` + * + * @param options Provides options for customizing what data is returned and how it is formatted. + * + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. */ getSelectedDataAsync(coercionType: CoercionType, options?: GetSelectedDataOptions, callback?: (result: AsyncResult) => void): void; /** @@ -2635,8 +2641,8 @@ declare namespace Office { * Available in Requirement set: File * * No more than two documents are allowed to be in memory; otherwise the Document.getFileAsync operation will fail. Use the File.closeAsync method to close the file when you are finished working with it. - * - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. + * + * In the callback function passed to the closeAsync method, you can use the properties of the AsyncResult object to return the following information. * * * @@ -2660,19 +2666,20 @@ declare namespace Office { * * *
A user-defined item of any type that is returned in the AsyncResult object without being altered.
+ * + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. */ closeAsync(callback?: (result: AsyncResult) => void): void; /** * Returns the specified slice. * * @remarks + * Hosts: PowerPoint, Word + * + * Available in Requirement set: File * * In the callback function passed to the getSliceAsync method, you can use the properties of the AsyncResult object to return the following information. * - * Hosts: PowerPoint, Word - * @param sliceIndex Specifies the zero-based index of the slice to be retrieved. Required. - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. - * * * * @@ -2695,8 +2702,9 @@ declare namespace Office { * * *
PropertyA user-defined item of any type that is returned in the AsyncResult object without being altered.
- * - * Available in Requirement set: File + * + * @param sliceIndex Specifies the zero-based index of the slice to be retrieved. Required. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. */ getSliceAsync(sliceIndex: number, callback?: (result: AsyncResult) => void): void; } @@ -2814,12 +2822,6 @@ declare namespace Office { * * In the callback function passed to the refreshAsync method, you can use the properties of the AsyncResult object to return the following information. * - * Hosts: Access, Excel, PowerPoint, Word - * - * Available in Requirement set: Settings - * - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. - * * * * @@ -2842,6 +2844,12 @@ declare namespace Office { * * *
PropertyA user-defined item of any type that is returned in the AsyncResult object without being altered.
+ * + * Hosts: Access, Excel, PowerPoint, Word + * + * Available in Requirement set: Settings + * + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter. */ refreshAsync(callback?: (result: AsyncResult) => void): void; /** @@ -2884,10 +2892,6 @@ declare namespace Office { * * Note: The saveAsync method persists the in-memory settings property bag into the document file; however, the changes to the document file itself are saved only when the user (or AutoRecover setting) saves the document to the file system. The refreshAsync method is only useful in coauthoring scenarios (which are only supported in Word) when other instances of the same add-in might change the settings and those changes should be made available to all instances. * - * Hosts: Access, Excel, PowerPoint, Word - * @param options Provides options for saving settings. - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. - * * * * @@ -2910,6 +2914,11 @@ declare namespace Office { * * *
PropertyA user-defined item of any type that is returned in the AsyncResult object without being altered.
+ * + * Hosts: Access, Excel, PowerPoint, Word + * + * @param options Provides options for saving settings. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. When the function you passed to the callback parameter executes, it receives an AsyncResult object that you can access from the callback function's only parameter to return the following information. */ saveAsync(options?: SaveSettingsOptions, callback?: (result: AsyncResult) => void): void; /** @@ -3133,11 +3142,7 @@ declare namespace Office { * * Available in Requirement set: Not in a set * - * - * - * @param tableOptions An object literal containing a list of property name-value pairs that define the table options to apply. - * @param options Provides an option for preserving context data of any type, unchanged, for use in a callback. - * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. You can use the properties of the AsyncResult object to return the following information. + * In the callback function passed to the goToByIdAsync method, you can use the properties of the AsyncResult object to return the following information. * * * @@ -3161,6 +3166,12 @@ declare namespace Office { * * *
A user-defined item of any type that is returned in the AsyncResult object without being altered.
+ * + * @param tableOptions An object literal containing a list of property name-value pairs that define the table options to apply. + * @param options Provides an option for preserving context data of any type, unchanged, for use in a callback. + * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type AsyncResult. You can use the properties of the AsyncResult object to return the following information. + * + */ setTableOptionsAsync(tableOptions: any, options?: AsyncContextOptions, callback?: (result: AsyncResult) => void): void; } From ef0c18ed24f50e81fad9ff866ce517719686b6f9 Mon Sep 17 00:00:00 2001 From: ZSkycat Date: Thu, 21 Jun 2018 07:22:55 +0800 Subject: [PATCH 27/65] [webpack-serve] fix WebpackServe.WebpackServeOpen, it is optional --- types/webpack-serve/index.d.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/types/webpack-serve/index.d.ts b/types/webpack-serve/index.d.ts index f0426c5ad7..cc83147ad2 100644 --- a/types/webpack-serve/index.d.ts +++ b/types/webpack-serve/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/webpack-contrib/webpack-serve // Definitions by: Ryan Clark // Jokcy +// ZSkycat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -21,16 +22,14 @@ declare module 'webpack' { } } -declare function WebpackServe( - options: WebpackServe.Options -): Promise; +declare function WebpackServe(options: WebpackServe.Options): Promise; declare namespace WebpackServe { interface WebpackServeOpen { /** Name of the browser to open */ - app: string; + app?: string; /** Path on the server to open */ - path: string; + path?: string; } interface WebpackServeMiddleware { From 6f1b1f707b46593ccdb56820b378a0eb899cdcdd Mon Sep 17 00:00:00 2001 From: ZSkycat Date: Thu, 21 Jun 2018 08:09:02 +0800 Subject: [PATCH 28/65] [webpack-hot-client] fix Options.logLevel type, add Options.validTargets --- types/webpack-hot-client/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/webpack-hot-client/index.d.ts b/types/webpack-hot-client/index.d.ts index 295e6819be..ae0d91390a 100644 --- a/types/webpack-hot-client/index.d.ts +++ b/types/webpack-hot-client/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for webpack-hot-client 3.0 // Project: https://github.com/webpack-contrib/webpack-hot-client // Definitions by: Ryan Clark +// ZSkycat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -36,7 +37,7 @@ declare namespace WebpackHotClient { /** Enable HTTPS */ https?: boolean; /** Level of information for webpack-hot-client to output */ - logLevel?: 'trace' | 'debug' | 'info' | 'warn' | 'error'; + logLevel?: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent'; /** Prepend timestamp to each log line */ logTime?: boolean; /** Port that the WebSocket listens on */ @@ -47,5 +48,7 @@ declare namespace WebpackHotClient { server?: net.Server; /** Webpack stats configuration */ stats?: webpack.Options.Stats; + /** Webpack compile target */ + validTargets?: string[], } } From b1f5143c41e6088b80e9964e6d19c8cc2f351fb2 Mon Sep 17 00:00:00 2001 From: Ricky Kirkham Date: Wed, 20 Jun 2018 17:21:01 -0700 Subject: [PATCH 29/65] removing Markdown formatting --- types/office-js/index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index eea1cd2bb0..63b5ccef99 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -1230,7 +1230,7 @@ declare namespace Office { Text, } /** - * Specifies the kind of event that was raised. Returned by the `type` property of an *EventName*EventArgs object. + * Specifies the kind of event that was raised. Returned by the `type` property of an *EventArgs object. * * @remarks * Add-ins for Project support the `Office.EventType.ResourceSelectionChanged`, `Office.EventType.TaskSelectionChanged`, and `Office.EventType.ViewSelectionChanged` event types. @@ -6745,7 +6745,7 @@ declare namespace Office { /** * The appointment organizer mode of {@link Office.Item | Office.context.mailbox.item}. * - * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of **Office.context.mailbox.item**. Refer to the Object Model pages for more information. + * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of `Office.context.mailbox.item`. Refer to the Object Model pages for more information. */ interface AppointmentCompose extends Appointment, ItemCompose { /** @@ -7677,7 +7677,7 @@ declare namespace Office { /** * The appointment attendee mode of {@link Office.Item | Office.context.mailbox.item}. * - * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of **Office.context.mailbox.item**. Refer to the Object Model pages for more information. + * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of 'Office.context.mailbox.item'. Refer to the Object Model pages for more information. */ interface AppointmentRead extends Appointment, ItemRead { /** @@ -8742,7 +8742,7 @@ declare namespace Office { /** * The compose mode of {@link Office.Item | Office.context.mailbox.item}. * - * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of **Office.context.mailbox.item**. Refer to the Object Model pages for more information. + * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of `Office.context.mailbox.item`. Refer to the Object Model pages for more information. */ interface ItemCompose extends Item { /** @@ -9380,7 +9380,7 @@ declare namespace Office { /** * The read mode of {@link Office.Item | Office.context.mailbox.item}. * - * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of **Office.context.mailbox.item**. Refer to the Object Model pages for more information. + * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of `Office.context.mailbox.item`. Refer to the Object Model pages for more information. */ interface ItemRead extends Item { /** @@ -9749,7 +9749,7 @@ declare namespace Office { /** * A subclass of {@link Office.Item} for messages. * - * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of **Office.context.mailbox.item**. Refer to the Object Model pages for more information. + * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of `Office.context.mailbox.item`. Refer to the Object Model pages for more information. */ interface Message extends Item { /** @@ -9773,7 +9773,7 @@ declare namespace Office { /** * The message compose mode of {@link Office.Item | Office.context.mailbox.item}. * - * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of **Office.context.mailbox.item**. Refer to the Object Model pages for more information. + * Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of `Office.context.mailbox.item`. Refer to the Object Model pages for more information. */ interface MessageCompose extends Message, ItemCompose { /** From 0361ef3b88fea4eb3269e596b8c5d0bdc6e4f98e Mon Sep 17 00:00:00 2001 From: ZSkycat Date: Thu, 21 Jun 2018 08:22:28 +0800 Subject: [PATCH 30/65] [webpack-hot-client] fix lint error --- types/webpack-hot-client/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack-hot-client/index.d.ts b/types/webpack-hot-client/index.d.ts index ae0d91390a..9b4e2444cf 100644 --- a/types/webpack-hot-client/index.d.ts +++ b/types/webpack-hot-client/index.d.ts @@ -49,6 +49,6 @@ declare namespace WebpackHotClient { /** Webpack stats configuration */ stats?: webpack.Options.Stats; /** Webpack compile target */ - validTargets?: string[], + validTargets?: string[]; } } From 0334651e80fa93d69405221c6bd56d5a6b22c3d7 Mon Sep 17 00:00:00 2001 From: Resi Respati Date: Thu, 21 Jun 2018 07:52:13 +0700 Subject: [PATCH 31/65] [signale] add support to disable signale instances --- types/signale/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/signale/index.d.ts b/types/signale/index.d.ts index d14660e5a9..e5e7aca0a4 100644 --- a/types/signale/index.d.ts +++ b/types/signale/index.d.ts @@ -61,6 +61,7 @@ declare namespace signale { interface SignaleOptions { /** Sets the configuration of an instance overriding any existing global or local configuration. */ config?: SignaleConfig; + disabled?: boolean; /** * Name of the scope. */ From ac5b55cff7d9de3676e165f231f1cb2052756b90 Mon Sep 17 00:00:00 2001 From: Resi Respati Date: Thu, 21 Jun 2018 07:55:57 +0700 Subject: [PATCH 32/65] [signale] added missing config keys from 1.2 --- types/signale/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/signale/index.d.ts b/types/signale/index.d.ts index e5e7aca0a4..e848e20ee4 100644 --- a/types/signale/index.d.ts +++ b/types/signale/index.d.ts @@ -56,6 +56,9 @@ declare namespace signale { underlineLabel?: boolean; /** Underline the logger message. */ underlineMessage?: boolean; + underlinePrefix?: boolean; + underlineSuffix?: boolean; + uppercaseLabel?: boolean; } interface SignaleOptions { From 39d7e18f2a1ff78d38719ac007532daf4a47e368 Mon Sep 17 00:00:00 2001 From: James Ide Date: Wed, 6 Jun 2018 14:32:28 -0700 Subject: [PATCH 33/65] [koa-router] Change type of returned middleware to match type that Koa expects Koa router has two types of middleware: the middleware it accepts for routes like `router.get(path, middleware)` and the middleware it creates, like `router.routes()`, that is passed to `koa.use(...)`. The former takes context objects with a `params` field while the latter doesn't. These are two different types of middleware and this commit changes the TypeScript declaration to reflect those two different types. This fixes a type error where `koa.use(router.routes())` fails to type check because the `Context` that Koa will pass in doesn't satisfy `IRouterContext` that `router.routes()` wanted. --- types/koa-router/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index 1ade4b135b..feda38f24b 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -225,19 +225,19 @@ declare class Router { /** * Returns router middleware which dispatches a route matching the request. */ - routes(): Router.IMiddleware; + routes(): Koa.Middleware; /** * Returns router middleware which dispatches a route matching the request. */ - middleware(): Router.IMiddleware; + middleware(): Koa.Middleware; /** * Returns separate middleware for responding to `OPTIONS` requests with * an `Allow` header containing the allowed methods, as well as responding * with `405 Method Not Allowed` and `501 Not Implemented` as appropriate. */ - allowedMethods(options?: Router.IRouterAllowedMethodsOptions): Router.IMiddleware; + allowedMethods(options?: Router.IRouterAllowedMethodsOptions): Koa.Middleware; /** * Redirect `source` to `destination` URL with optional 30x status `code`. From a7baa4eb91c11320cc065e459fc10bdb127ff206 Mon Sep 17 00:00:00 2001 From: Nattapong Sirilappanich Date: Thu, 21 Jun 2018 08:30:34 +0700 Subject: [PATCH 34/65] Define type for connect-mongodb-session --- .../connect-mongodb-session-test.ts | 39 +++++++++ types/connect-mongodb-session/index.d.ts | 31 ++++++++ types/connect-mongodb-session/tsconfig.json | 25 ++++++ types/connect-mongodb-session/tslint.json | 79 +++++++++++++++++++ 4 files changed, 174 insertions(+) create mode 100644 types/connect-mongodb-session/connect-mongodb-session-test.ts create mode 100644 types/connect-mongodb-session/index.d.ts create mode 100644 types/connect-mongodb-session/tsconfig.json create mode 100644 types/connect-mongodb-session/tslint.json diff --git a/types/connect-mongodb-session/connect-mongodb-session-test.ts b/types/connect-mongodb-session/connect-mongodb-session-test.ts new file mode 100644 index 0000000000..963be905c0 --- /dev/null +++ b/types/connect-mongodb-session/connect-mongodb-session-test.ts @@ -0,0 +1,39 @@ +import * as express from 'express' +import session = require('express-session') +import connectMongo = require('connect-mongodb-session') +let MongoDBStore = connectMongo(session) + +var app = express(); +var store = new MongoDBStore({ + uri: 'mongodb://localhost:27017/connect_mongodb_session_test', + collection: 'mySessions' +}, function(error) { + // some connection error occur +}); + +store.on('connected', function() { + store.client; // The underlying MongoClient object from the MongoDB driver +}); + +// Catch errors +store.on('error', function(error) { +}); + +app.use(require('express-session')({ + secret: 'This is a secret', + cookie: { + maxAge: 1000 * 60 * 60 * 24 * 7 // 1 week + }, + store: store, + // Boilerplate options, see: + // * https://www.npmjs.com/package/express-session#resave + // * https://www.npmjs.com/package/express-session#saveuninitialized + resave: true, + saveUninitialized: true +})); + +app.get('/', function(req, res) { + res.send('Hello ' + JSON.stringify(req.session)); +}); + +const server = app.listen(3000); \ No newline at end of file diff --git a/types/connect-mongodb-session/index.d.ts b/types/connect-mongodb-session/index.d.ts new file mode 100644 index 0000000000..c328a211b2 --- /dev/null +++ b/types/connect-mongodb-session/index.d.ts @@ -0,0 +1,31 @@ +// Type definitions for connect-mongodb-session +// Project: https://github.com/kcbanner/connect-mongodb-session +// Definitions by: Nattapong Sirilappanich +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +import session = require('express-session'); +import * as express from 'express'; +import {MongoClient, MongoClientOptions} from 'mongodb' + +declare function connect(fn : (options?: session.SessionOptions) => express.RequestHandler) : connectMongodbSession.MongoDBStore + +declare namespace connectMongodbSession { + export interface MongoDBStore extends session.Store { + client : MongoClient + new(connection?: ConnectionInfo, callback?: (error : Error) => void) : MongoDBStore + } + + export interface ConnectionInfo { + idField? : string + collection : string + connectionOptions?: MongoClientOptions + databaseName?: string + expires?: number + uri : string + } +} + +export = connect \ No newline at end of file diff --git a/types/connect-mongodb-session/tsconfig.json b/types/connect-mongodb-session/tsconfig.json new file mode 100644 index 0000000000..cda475ae85 --- /dev/null +++ b/types/connect-mongodb-session/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "baseUrl": "../", + "forceConsistentCasingInFileNames": true, + "lib": [ + "es6" + ], + "module": "commonjs", + "noEmit": true, + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "strictFunctionTypes": true, + "typeRoots": [ + "../" + ] + }, + "files": [ + "connect-mongodb-session-test.ts", + "index.d.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/types/connect-mongodb-session/tslint.json b/types/connect-mongodb-session/tslint.json new file mode 100644 index 0000000000..a41bf5d19a --- /dev/null +++ b/types/connect-mongodb-session/tslint.json @@ -0,0 +1,79 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "adjacent-overload-signatures": false, + "array-type": false, + "arrow-return-shorthand": false, + "ban-types": false, + "callable-types": false, + "comment-format": false, + "dt-header": false, + "eofline": false, + "export-just-namespace": false, + "import-spacing": false, + "interface-name": false, + "interface-over-type-literal": false, + "jsdoc-format": false, + "max-line-length": false, + "member-access": false, + "new-parens": false, + "no-any-union": false, + "no-boolean-literal-compare": false, + "no-conditional-assignment": false, + "no-consecutive-blank-lines": false, + "no-construct": false, + "no-declare-current-package": false, + "no-duplicate-imports": false, + "no-duplicate-variable": false, + "no-empty-interface": false, + "no-for-in-array": false, + "no-inferrable-types": false, + "no-internal-module": false, + "no-irregular-whitespace": false, + "no-mergeable-namespace": false, + "no-misused-new": false, + "no-namespace": false, + "no-object-literal-type-assertion": false, + "no-padding": false, + "no-redundant-jsdoc": false, + "no-redundant-jsdoc-2": false, + "no-redundant-undefined": false, + "no-reference-import": false, + "no-relative-import-in-test": false, + "no-self-import": false, + "no-single-declare-module": false, + "no-string-throw": false, + "no-unnecessary-callback-wrapper": false, + "no-unnecessary-class": false, + "no-unnecessary-generics": false, + "no-unnecessary-qualifier": false, + "no-unnecessary-type-assertion": false, + "no-useless-files": false, + "no-var-keyword": false, + "no-var-requires": false, + "no-void-expression": false, + "no-trailing-whitespace": false, + "object-literal-key-quotes": false, + "object-literal-shorthand": false, + "one-line": false, + "one-variable-per-declaration": false, + "only-arrow-functions": false, + "prefer-conditional-expression": false, + "prefer-const": false, + "prefer-declare-function": false, + "prefer-for-of": false, + "prefer-method-signature": false, + "prefer-template": false, + "radix": false, + "semicolon": false, + "space-before-function-paren": false, + "space-within-parens": false, + "strict-export-declare-modifiers": false, + "trim-file": false, + "triple-equals": false, + "typedef-whitespace": false, + "unified-signatures": false, + "void-return": false, + "whitespace": false + } +} From 683ef5ae83f27dfb264dcf521bd261978547b6a4 Mon Sep 17 00:00:00 2001 From: Resi Respati Date: Thu, 21 Jun 2018 08:34:03 +0700 Subject: [PATCH 35/65] [signale] bump to version 1.2.0 --- types/signale/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/signale/index.d.ts b/types/signale/index.d.ts index e848e20ee4..83a8cbaafb 100644 --- a/types/signale/index.d.ts +++ b/types/signale/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for signale 1.1 +// Type definitions for signale 1.2 // Project: https://github.com/klauscfhq/signale // Definitions by: Resi Respati // Kingdaro From 3b62230a51dc411e27b009727a9c50796bf97626 Mon Sep 17 00:00:00 2001 From: Horiuchi_H Date: Thu, 21 Jun 2018 11:30:19 +0900 Subject: [PATCH 36/65] remove `strict` option --- types/suncalc/tsconfig.json | 1 - 1 file changed, 1 deletion(-) diff --git a/types/suncalc/tsconfig.json b/types/suncalc/tsconfig.json index 0225e8390e..0c4fe2498e 100644 --- a/types/suncalc/tsconfig.json +++ b/types/suncalc/tsconfig.json @@ -6,7 +6,6 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strict": true, "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", From 01d036688ee13bed63ba3af009031051aea202e9 Mon Sep 17 00:00:00 2001 From: Saulo Tauil Date: Wed, 20 Jun 2018 20:10:07 -0700 Subject: [PATCH 37/65] Converting CompanyIdentifier to interface --- types/intercom-client/Company.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/intercom-client/Company.d.ts b/types/intercom-client/Company.d.ts index 8fedb015c6..ee20d80863 100644 --- a/types/intercom-client/Company.d.ts +++ b/types/intercom-client/Company.d.ts @@ -1,5 +1,7 @@ -export type CompanyIdentifier = {company_id: string } +export interface CompanyIdentifier { + company_id: string +} export interface Company { readonly "type": "company", From 00bb6a0a747075135e88af9981b0cee7286a0249 Mon Sep 17 00:00:00 2001 From: Saulo Tauil Date: Wed, 20 Jun 2018 20:14:55 -0700 Subject: [PATCH 38/65] converting ApiResponse to class --- types/intercom-client/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/intercom-client/index.d.ts b/types/intercom-client/index.d.ts index b08e26f9ad..036da724dd 100644 --- a/types/intercom-client/index.d.ts +++ b/types/intercom-client/index.d.ts @@ -31,9 +31,9 @@ export class Client { companies: Companies; } -export type ApiResponse = IncomingMessage & { +export class ApiResponse extends IncomingMessage { body: T -}; +} export type callback = ((d: T) => void) | ((err: IntercomError, d: T) => void); From a461a4c4e2571cdfa8d4b639a33a3851ebebe096 Mon Sep 17 00:00:00 2001 From: Saulo Tauil Date: Wed, 20 Jun 2018 20:20:16 -0700 Subject: [PATCH 39/65] Turning IntercomError.errors a more clear array type --- types/intercom-client/IntercomError.d.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/types/intercom-client/IntercomError.d.ts b/types/intercom-client/IntercomError.d.ts index 44482e4e03..c0ed687a3c 100644 --- a/types/intercom-client/IntercomError.d.ts +++ b/types/intercom-client/IntercomError.d.ts @@ -2,15 +2,13 @@ export interface IntercomError { statusCode: number, body: { - type: "error.list", - request_id: string, - errors: [ - { - code: string, //"400", - message: string - } - ] + type: "error.list", + request_id: string, + errors: Array<{ + code: string, //"400", + message: string + }> }, - headers: { status: string } & {[k: string]: string} + headers: { status: string } & { [k: string]: string } } From 39d98dbf3e88908f6be274110ea41d6adb22f30d Mon Sep 17 00:00:00 2001 From: Saulo Tauil Date: Wed, 20 Jun 2018 20:24:57 -0700 Subject: [PATCH 40/65] fixing tslint --- types/intercom-client/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/intercom-client/index.d.ts b/types/intercom-client/index.d.ts index 036da724dd..c9c9fc3364 100644 --- a/types/intercom-client/index.d.ts +++ b/types/intercom-client/index.d.ts @@ -32,7 +32,7 @@ export class Client { } export class ApiResponse extends IncomingMessage { - body: T + body: T; } export type callback = ((d: T) => void) | ((err: IntercomError, d: T) => void); From 39295bad9cec61391419ff33dd03b08a9c744c55 Mon Sep 17 00:00:00 2001 From: Zephraph Date: Wed, 20 Jun 2018 23:27:34 -0400 Subject: [PATCH 41/65] Ensure border export function is represented --- types/styled-system/index.d.ts | 5 +++++ types/styled-system/styled-system-tests.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/types/styled-system/index.d.ts b/types/styled-system/index.d.ts index ea6fdc03db..bd72171894 100644 --- a/types/styled-system/index.d.ts +++ b/types/styled-system/index.d.ts @@ -471,8 +471,13 @@ export function borderColor(...args: any[]): any; export type BorderValue = string | number; export type ResponsiveBorderValue = ResponsiveValue; + export interface BorderProps { border?: ResponsiveBorderValue; +} +export function border(...args: any[]): any; +export interface BordersProps { + border?: ResponsiveBorderValue; borderTop?: ResponsiveBorderValue; borderRight?: ResponsiveBorderValue; borderBottom?: ResponsiveBorderValue; diff --git a/types/styled-system/styled-system-tests.tsx b/types/styled-system/styled-system-tests.tsx index 78340eb3d8..5ddab80596 100644 --- a/types/styled-system/styled-system-tests.tsx +++ b/types/styled-system/styled-system-tests.tsx @@ -60,7 +60,7 @@ import { alignSelf, AlignSelfProps, borders, - BorderProps, + BordersProps, borderRadius, BorderRadiusProps, position, @@ -113,7 +113,7 @@ interface BoxProps FlexProps, JustifySelfProps, AlignSelfProps, - BorderProps, + BordersProps, BorderRadiusProps, PositionProps, ZIndexProps, From 01631ac02666a9d177b929863a90ba73519f591c Mon Sep 17 00:00:00 2001 From: Nattapong Sirilappanich Date: Thu, 21 Jun 2018 12:48:23 +0700 Subject: [PATCH 42/65] rename file connect-mongodb-session-test.ts to connect-mongodb-session-tests.ts (Add 's' to test) --- ...t-mongodb-session-test.ts => connect-mongodb-session-tests.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename types/connect-mongodb-session/{connect-mongodb-session-test.ts => connect-mongodb-session-tests.ts} (100%) diff --git a/types/connect-mongodb-session/connect-mongodb-session-test.ts b/types/connect-mongodb-session/connect-mongodb-session-tests.ts similarity index 100% rename from types/connect-mongodb-session/connect-mongodb-session-test.ts rename to types/connect-mongodb-session/connect-mongodb-session-tests.ts From b5ade3abfd8bc6d39d9dae02dc96dc5f52b7931e Mon Sep 17 00:00:00 2001 From: Nattapong Sirilappanich Date: Thu, 21 Jun 2018 13:06:03 +0700 Subject: [PATCH 43/65] Reflect test file name change in tsconfig.json --- types/connect-mongodb-session/tsconfig.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/connect-mongodb-session/tsconfig.json b/types/connect-mongodb-session/tsconfig.json index cda475ae85..61b0db83b2 100644 --- a/types/connect-mongodb-session/tsconfig.json +++ b/types/connect-mongodb-session/tsconfig.json @@ -13,10 +13,12 @@ "strictFunctionTypes": true, "typeRoots": [ "../" + ], + "types": [ ] }, "files": [ - "connect-mongodb-session-test.ts", + "connect-mongodb-session-tests.ts", "index.d.ts" ], "exclude": [ From 7eb54c2ab2345de22d84ab10a5277bcf85fb4d48 Mon Sep 17 00:00:00 2001 From: Dev Hanmari Date: Thu, 21 Jun 2018 15:04:33 +0900 Subject: [PATCH 44/65] [ramda] add type inference for mapObjIndexed fix lint errors... --- types/ramda/index.d.ts | 10 ++++++++++ types/ramda/ramda-tests.ts | 14 ++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index cc9616f131..44ef2167ae 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1074,6 +1074,16 @@ declare namespace R { /** * Like mapObj, but but passes additional arguments to the predicate function. */ + mapObjIndexed( + fn: (value: T, key: string, obj?: { + [key: string]: T + }) => TResult, + obj: { + [key: string]: T + } + ): { + [key: string]: TResult + }; mapObjIndexed(fn: (value: T, key: string, obj?: any) => TResult, obj: any): { [index: string]: TResult }; mapObjIndexed(fn: (value: T, key: string, obj?: any) => TResult): (obj: any) => { [index: string]: TResult }; diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 32bae5fa0c..1b78af72b2 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -502,6 +502,20 @@ R.times(i, 5); R.mapObjIndexed(prependKeyAndDouble, values); // => { x: 'x2', y: 'y4', z: 'z6' } }); +(() => { + const testObject: { + [key: string]: Error + } = { + hello: new Error('hello'), + }; + const errorMessages = R.mapObjIndexed( + function test(value, key) { + // value should be inferred. + return value.message + String(key); + }, testObject); + console.log(errorMessages); +}); + (() => { const a: number[] = R.ap([R.multiply(2), R.add(3)], [1, 2, 3]); // => [2, 4, 6, 4, 5, 6] const b: number[][] = R.of([1]); // => [[1]] From 1a590067d90c72d9984c593518565f9744ed1e7f Mon Sep 17 00:00:00 2001 From: Alberto Restifo Date: Thu, 21 Jun 2018 10:14:21 +0200 Subject: [PATCH 45/65] fix: Use typeof instead of int --- types/papaparse/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/papaparse/index.d.ts b/types/papaparse/index.d.ts index eb634e52b4..49dcdfdd95 100644 --- a/types/papaparse/index.d.ts +++ b/types/papaparse/index.d.ts @@ -19,7 +19,7 @@ export function parse(file: File, config?: ParseConfig): ParseResult; export function parse(stream: ReadableStream, config?: ParseConfig): ParseResult; -export function parse(stream: 1, config?: ParseConfig): ReadableStream; +export function parse(stream: typeof NODE_STREAM_INPUT, config?: ParseConfig): ReadableStream; /** * Unparses javascript data objects and returns a csv string From 611e99751d983b4baa97c211c880815f67c51af8 Mon Sep 17 00:00:00 2001 From: jbreckmckye Date: Thu, 21 Jun 2018 10:31:00 +0100 Subject: [PATCH 46/65] Add semicolon --- types/auth0/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index c449ee8580..18cc086ed8 100644 --- a/types/auth0/index.d.ts +++ b/types/auth0/index.d.ts @@ -356,7 +356,7 @@ export interface Page { } export interface UserPage extends Page { - users: User[] + users: User[]; } export interface Identity { From e528ae38eb9a09030803ee9b9ff58f0d86f8bb38 Mon Sep 17 00:00:00 2001 From: Viqas Hussain Date: Thu, 21 Jun 2018 13:38:50 +0100 Subject: [PATCH 47/65] Added types for jquery-toast-plugin --- types/jquery-toast-plugin/index.d.ts | 32 +++++++++++++++++++ .../jquery-toast-plugin-tests.ts | 1 + types/jquery-toast-plugin/tsconfig.json | 22 +++++++++++++ types/jquery-toast-plugin/tslint.json | 1 + 4 files changed, 56 insertions(+) create mode 100644 types/jquery-toast-plugin/index.d.ts create mode 100644 types/jquery-toast-plugin/jquery-toast-plugin-tests.ts create mode 100644 types/jquery-toast-plugin/tsconfig.json create mode 100644 types/jquery-toast-plugin/tslint.json diff --git a/types/jquery-toast-plugin/index.d.ts b/types/jquery-toast-plugin/index.d.ts new file mode 100644 index 0000000000..90c419a104 --- /dev/null +++ b/types/jquery-toast-plugin/index.d.ts @@ -0,0 +1,32 @@ +// Type definitions for jquery-toast-plugin +// Project: https://github.com/kamranahmedse/jquery-toast-plugin +// Definitions by: Viqas Hussain +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +/// + +interface JQueryStatic { + toast(options: toastOptions): void; +} + +interface toastOptions +{ + text: string; + heading?: string; + showHideTransition?: string; + allowToastClose?: boolean; + hideAfter?: number; + loader?: boolean; + loaderBg?: string; + stack?: number; + position?: string; + bgColor?: boolean; + textColor?: boolean; + textAlign?: string; + icon?: boolean; + beforeShow?: () => any; + afterShown?: () => any; + beforeHide?: () => any; + afterHidden?: () => any; +} \ No newline at end of file diff --git a/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts b/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts new file mode 100644 index 0000000000..ad003b0fbb --- /dev/null +++ b/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts @@ -0,0 +1 @@ +$.toast({ text: "test" }) \ No newline at end of file diff --git a/types/jquery-toast-plugin/tsconfig.json b/types/jquery-toast-plugin/tsconfig.json new file mode 100644 index 0000000000..3eec6b2edd --- /dev/null +++ b/types/jquery-toast-plugin/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "jquery-toast-plugin-tests.ts" + ] +} diff --git a/types/jquery-toast-plugin/tslint.json b/types/jquery-toast-plugin/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/jquery-toast-plugin/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 5d975a17dbb8b858eb334be979162f7beebb64e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Fri, 15 Jun 2018 09:49:58 +0100 Subject: [PATCH 48/65] p-try: upgrade typings for v2.0 --- types/p-try/index.d.ts | 10 +++++++++- types/p-try/p-try-tests.ts | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/types/p-try/index.d.ts b/types/p-try/index.d.ts index 82eca22d8c..9c76ef19e1 100644 --- a/types/p-try/index.d.ts +++ b/types/p-try/index.d.ts @@ -1,8 +1,16 @@ -// Type definitions for p-try 1.0 +// Type definitions for p-try 2.0 // Project: https://github.com/sindresorhus/p-try#readme // Definitions by: BendingBender +// Linus Unnebäck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = pTry; +declare function pTry(cb: (a: A, b: B, c: C, d: D, e: E, f: F, ...args: any[]) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D, e: E, f: F, ...args: any[]): Promise; +declare function pTry(cb: (a: A, b: B, c: C, d: D, e: E, f: F) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D, e: E, f: F): Promise; +declare function pTry(cb: (a: A, b: B, c: C, d: D, e: E) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D, e: E): Promise; +declare function pTry(cb: (a: A, b: B, c: C, d: D) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D): Promise; +declare function pTry(cb: (a: A, b: B, c: C) => Promise | PromiseLike | T, a: A, b: B, c: C): Promise; +declare function pTry(cb: (a: A, b: B) => Promise | PromiseLike | T, a: A, b: B): Promise; +declare function pTry(cb: (a: A) => Promise | PromiseLike | T, a: A): Promise; declare function pTry(cb: () => Promise | PromiseLike | T): Promise; diff --git a/types/p-try/p-try-tests.ts b/types/p-try/p-try-tests.ts index 054d92e22f..d4db28020e 100644 --- a/types/p-try/p-try-tests.ts +++ b/types/p-try/p-try-tests.ts @@ -14,3 +14,23 @@ pTry(() => Promise.resolve('foo')).then(value => { pTry(throws).then(value => { str = value; }); + +declare function a(a: string): string; +declare function b(a: string, b: number): string; +declare function c(a: string, b: number, c: boolean): string; +declare function d(a: string, b: number, c: boolean, d: symbol): string; +declare function e(a: string, b: number, c: boolean, d: symbol, e: 'yes' | 'no'): string; +declare function f(a: string, b: number, c: boolean, d: symbol, e: 'yes' | 'no', f: 1 | 2): string; +declare function g(a: string, b: number, c: boolean, d: symbol, e: 'yes' | 'no', f: 1 | 2, g: true): string; + +pTry(a, 'test').then(v => { str = v; }); +pTry(b, 'test', 1).then(v => { str = v; }); +pTry(c, 'test', 1, false).then(v => { str = v; }); +pTry(d, 'test', 1, false, Symbol('test')).then(v => { str = v; }); +pTry(e, 'test', 1, false, Symbol('test'), 'no').then(v => { str = v; }); +pTry(f, 'test', 1, false, Symbol('test'), 'no', 2).then(v => { str = v; }); +pTry(g, 'test', 1, false, Symbol('test'), 'no', 2, true).then(v => { str = v; }); + +declare function add(...args: number[]): number; + +pTry(add, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13).then(v => (v === 91)); From 18701fa0c09e69f133e8502b4c192b79b530de89 Mon Sep 17 00:00:00 2001 From: Viqas Hussain Date: Thu, 21 Jun 2018 15:33:25 +0100 Subject: [PATCH 49/65] Made some minor adjustments so it is in accordance with the guidelines. --- types/jquery-toast-plugin/index.d.ts | 7 +++---- types/jquery-toast-plugin/jquery-toast-plugin-tests.ts | 2 +- types/jquery-toast-plugin/tsconfig.json | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/jquery-toast-plugin/index.d.ts b/types/jquery-toast-plugin/index.d.ts index 90c419a104..48bff9ff44 100644 --- a/types/jquery-toast-plugin/index.d.ts +++ b/types/jquery-toast-plugin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jquery-toast-plugin +// Type definitions for jquery-toast-plugin 1.3 // Project: https://github.com/kamranahmedse/jquery-toast-plugin // Definitions by: Viqas Hussain // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -10,8 +10,7 @@ interface JQueryStatic { toast(options: toastOptions): void; } -interface toastOptions -{ +interface toastOptions { text: string; heading?: string; showHideTransition?: string; @@ -29,4 +28,4 @@ interface toastOptions afterShown?: () => any; beforeHide?: () => any; afterHidden?: () => any; -} \ No newline at end of file +} diff --git a/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts b/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts index ad003b0fbb..d9a2889c9b 100644 --- a/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts +++ b/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts @@ -1 +1 @@ -$.toast({ text: "test" }) \ No newline at end of file +$.toast({ text: "test" }); diff --git a/types/jquery-toast-plugin/tsconfig.json b/types/jquery-toast-plugin/tsconfig.json index 3eec6b2edd..95759d345b 100644 --- a/types/jquery-toast-plugin/tsconfig.json +++ b/types/jquery-toast-plugin/tsconfig.json @@ -13,7 +13,8 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true }, "files": [ "index.d.ts", From 97a38a7c056d1eca3cc8e357bc536b9ed6c64405 Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Thu, 21 Jun 2018 23:13:24 +0800 Subject: [PATCH 50/65] add .use method to wepy app --- types/wepy/app.d.ts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/types/wepy/app.d.ts b/types/wepy/app.d.ts index cc2636ed92..9b970906a9 100644 --- a/types/wepy/app.d.ts +++ b/types/wepy/app.d.ts @@ -8,6 +8,25 @@ export interface AppConstructor { new (): app; } +/* the supported add-ons */ +type AddOn = "requestfix" | "promisify"; + +interface WindowConfig { + backgroundTextStyle: string; + navigationBarBackgroundColor: string; + navigationBarTitleText: string; + navigationBarTextStyle: string; +} + export default class app { - $init(wepy: any, config: AppConfig): any; + config: { + window: WindowConfig; + pages: string[]; + }; + $init(wepy: any, config: AppConfig): void; + use(addonName: AddOn, ...args: any[]): void; + $initAPI( + wepy: any, + noPromiseAPI: string[] | { [name: string]: boolean } + ): void; } From 7a2a27838e9b3dde3635bdb4e2c6f8141665b967 Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Thu, 21 Jun 2018 23:15:34 +0800 Subject: [PATCH 51/65] adding test --- types/wepy/wepy-tests.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/wepy/wepy-tests.ts b/types/wepy/wepy-tests.ts index 9ed5462fb9..d9794f6e8b 100644 --- a/types/wepy/wepy-tests.ts +++ b/types/wepy/wepy-tests.ts @@ -1,5 +1,11 @@ import wepy from "wepy"; +export class MyApp extends wepy.app { + async onLoad() { + this.use("requestfix"); + } +} + export class MyComponent extends wepy.component { data = { reveal: false, From a8232ba65e3a53d8d124ff108a90778280722761 Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Thu, 21 Jun 2018 23:21:43 +0800 Subject: [PATCH 52/65] fix lint --- types/wepy/app.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/wepy/app.d.ts b/types/wepy/app.d.ts index 9b970906a9..9389b0400f 100644 --- a/types/wepy/app.d.ts +++ b/types/wepy/app.d.ts @@ -9,9 +9,9 @@ export interface AppConstructor { } /* the supported add-ons */ -type AddOn = "requestfix" | "promisify"; +export type AddOn = "requestfix" | "promisify"; -interface WindowConfig { +export interface WindowConfig { backgroundTextStyle: string; navigationBarBackgroundColor: string; navigationBarTitleText: string; From bb6bad072b49f89661c3a3d75dfa49467eda4f8b Mon Sep 17 00:00:00 2001 From: Jan Lohage Date: Thu, 21 Jun 2018 17:33:22 +0200 Subject: [PATCH 53/65] Update index.d.ts --- types/feathersjs__authentication-jwt/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/feathersjs__authentication-jwt/index.d.ts b/types/feathersjs__authentication-jwt/index.d.ts index ab6a7f6dbe..9db1d5c988 100644 --- a/types/feathersjs__authentication-jwt/index.d.ts +++ b/types/feathersjs__authentication-jwt/index.d.ts @@ -8,7 +8,7 @@ import { Application } from '@feathersjs/feathers'; import { Request } from 'express'; import * as self from '@feathersjs/authentication-jwt'; -declare const feathersAuthenticationJwt: ((options?: FeathersAuthenticationJWTOptions) => () => void) & typeof self; +declare const feathersAuthenticationJwt: ((options?: Partial) => () => void) & typeof self; export default feathersAuthenticationJwt; export interface FeathersAuthenticationJWTOptions { @@ -43,10 +43,10 @@ export interface FeathersAuthenticationJWTOptions { /** * A Verifier class. Defaults to the built-in one but can be a custom one. See below for details. */ - Verifier: JWTVerifier; + Verifier: Verifier; } -export class JWTVerifier { +export class Verifier { constructor(app: Application, options: any); // the class constructor verify(req: Request, payload: any, done: (error: any, user?: any, info?: any) => void): void; From e8008599da3d69772442c81abb03005ae57b002a Mon Sep 17 00:00:00 2001 From: Alec Hill Date: Thu, 21 Jun 2018 16:40:41 +0100 Subject: [PATCH 54/65] Types for Storybook (React Native version). These shares same interface as the React one so just proxies to storybook__react types --- types/storybook__react-native/index.d.ts | 11 ++++++ .../storybook__react-native-tests.tsx | 37 +++++++++++++++++++ types/storybook__react-native/tsconfig.json | 33 +++++++++++++++++ types/storybook__react-native/tslint.json | 3 ++ 4 files changed, 84 insertions(+) create mode 100644 types/storybook__react-native/index.d.ts create mode 100644 types/storybook__react-native/storybook__react-native-tests.tsx create mode 100644 types/storybook__react-native/tsconfig.json create mode 100644 types/storybook__react-native/tslint.json diff --git a/types/storybook__react-native/index.d.ts b/types/storybook__react-native/index.d.ts new file mode 100644 index 0000000000..4bcd20ec30 --- /dev/null +++ b/types/storybook__react-native/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for @storybook/react-native 3.0 +// Project: https://github.com/storybooks/storybook +// Definitions by: Joscha Feth +// Anton Izmailov +// Alec Hill +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.6 + +import * as Storybook from '@storybook/react'; + +export = Storybook; diff --git a/types/storybook__react-native/storybook__react-native-tests.tsx b/types/storybook__react-native/storybook__react-native-tests.tsx new file mode 100644 index 0000000000..7540a2f3e8 --- /dev/null +++ b/types/storybook__react-native/storybook__react-native-tests.tsx @@ -0,0 +1,37 @@ +import * as React from 'react'; +import { storiesOf, setAddon, addDecorator, configure, getStorybook, RenderFunction, Story } from '@storybook/react-native'; + +const Decorator = (story: RenderFunction) =>
{story()}
; + +storiesOf('Welcome', module) + // local addDecorator + .addDecorator(Decorator) + .add('to Storybook', () =>
) + .add('to Storybook as Array', () => [
,
]); + +// global addDecorator +addDecorator(Decorator); + +// setAddon +interface AnyAddon { + addWithSideEffect(this: Story & T, storyName: string, storyFn: RenderFunction): Story & T; +} +const AnyAddon: AnyAddon = { + addWithSideEffect(this: Story & T, storyName: string, storyFn: RenderFunction): Story & T { + console.log(this.kind === 'withAnyAddon'); + return this.add(storyName, storyFn); + } +}; +setAddon(AnyAddon); +storiesOf('withAnyAddon', module) + .addWithSideEffect('custom story', () =>
) + .addWithSideEffect('more', () =>
) + .add('another story', () =>
) + .add('to Storybook as Array', () => [
,
]) + .addWithSideEffect('even more', () =>
); + +// configure +configure(() => undefined, module); + +// getStorybook +getStorybook().forEach(({ kind, stories }) => stories.forEach(({ name, render }) => render())); diff --git a/types/storybook__react-native/tsconfig.json b/types/storybook__react-native/tsconfig.json new file mode 100644 index 0000000000..bba1a459fa --- /dev/null +++ b/types/storybook__react-native/tsconfig.json @@ -0,0 +1,33 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "dom", + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "paths": { + "@storybook/react-native": [ + "storybook__react-native" + ], + "@storybook/react": [ + "storybook__react" + ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "storybook__react-native-tests.tsx" + ] +} diff --git a/types/storybook__react-native/tslint.json b/types/storybook__react-native/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/storybook__react-native/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 85385ae2035a134dd4f50d2960deb7456a3d596b Mon Sep 17 00:00:00 2001 From: Jan Lohage Date: Thu, 21 Jun 2018 17:46:13 +0200 Subject: [PATCH 55/65] Update index.d.ts --- types/feathersjs__authentication-jwt/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/feathersjs__authentication-jwt/index.d.ts b/types/feathersjs__authentication-jwt/index.d.ts index 9db1d5c988..7a555071d9 100644 --- a/types/feathersjs__authentication-jwt/index.d.ts +++ b/types/feathersjs__authentication-jwt/index.d.ts @@ -43,7 +43,7 @@ export interface FeathersAuthenticationJWTOptions { /** * A Verifier class. Defaults to the built-in one but can be a custom one. See below for details. */ - Verifier: Verifier; + Verifier: typeof Verifier; } export class Verifier { From 6ce3bf364440a119a16d464509c7778ece7f8fe4 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Thu, 21 Jun 2018 09:30:37 -0700 Subject: [PATCH 56/65] Adding closing table tags --- types/office-js/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 1803015c3c..5dd28287c3 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -1563,7 +1563,7 @@ declare namespace Office { * An {@link Office.TableData} object * A table with headers will be written. * - * + *
* * Additionally, these application-specific actions apply when writing data to a binding. For Word, the specified data is written to the binding as follows: * @@ -1588,7 +1588,7 @@ declare namespace Office { * Office Open XML ("Open XML") * The specified the XML is written. * - * + *
* * For Excel, the specified data is written to the binding as follows: * @@ -1609,7 +1609,7 @@ declare namespace Office { * An {@link Office.TableData} object, and the shape of the table matches the bound table. * The specified set of rows and/or headers are written, if no other data in surrounding cells will be overwritten. Note: If you specify formulas in the TableData object you pass for the *data* parameter, you might not get the results you expect due to the "calculated columns" feature of Excel, which automatically duplicates formulas within a column. To work around this when you want to write *data* that contains formulas to a bound table, try specifying the data as an array of arrays (instead of a TableData object), and specify the *coercionType* as Microsoft.Office.Matrix or "matrix". * - * + *
* * For Excel Online: * From c5d89bcbc9633369fc94352930ffc4d8ffdce3d7 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Thu, 21 Jun 2018 10:14:56 -0700 Subject: [PATCH 57/65] update description on AppointmentForm interface --- types/office-js/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 5dd28287c3..33795b5add 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -8631,6 +8631,16 @@ declare namespace Office { getSelectedRegExMatches(): any; } + /** + * The AppointmentForm namespace is used to access the currently selected appointment. + * + * [Api set: Mailbox 1.0] + * + * @remarks + * {@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}: Restricted + * + * Applicable Outlook mode: Compose or read + */ interface AppointmentForm { /** * Gets an object that provides methods for manipulating the body of an item. From eae8572bf6df9380698d176a8a5c82cb6761e50f Mon Sep 17 00:00:00 2001 From: Patrick Simmelbauer Date: Thu, 21 Jun 2018 15:43:19 +0200 Subject: [PATCH 58/65] Update prosemirror-view typings to 1.3 --- types/prosemirror-view/index.d.ts | 61 +++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git a/types/prosemirror-view/index.d.ts b/types/prosemirror-view/index.d.ts index dba4fb8aec..a539be4593 100644 --- a/types/prosemirror-view/index.d.ts +++ b/types/prosemirror-view/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-view 1.2 +// Type definitions for prosemirror-view 1.3 // Project: https://github.com/ProseMirror/prosemirror-view // Definitions by: Bradley Ayers // David Hahn @@ -41,14 +41,46 @@ export class Decoration { spec: { [key: string]: any }; /** * Creates a widget decoration, which is a DOM node that's shown in - * the document at the given position. + * the document at the given position. It is recommended that you + * delay rendering the widget by passing a function that will be + * called when the widget is actually drawn in a view, but you can + * also directly pass a DOM node. getPos can be used to find the + * widget's current document position. + * + * @param spec These options are supported: + * @param spec.side Controls which side of the document position + * this widget is associated with. When negative, it is drawn before + * a cursor at its position, and content inserted at that position + * ends up after the widget. When zero (the default) or positive, the + * widget is drawn after the cursor and content inserted there ends + * up before the widget. + * + * When there are multiple widgets at a given position, their side + * values determine the order in which they appear. Those with lower + * values appear first. The ordering of widgets with the same side + * value is unspecified. + * + * When marks is null, side also determines the marks that the widget + * is wrapped in—those of the node before when negative, those of + * the node after when positive. + * @param spec.marks The precise set of marks to draw around the widget. + * @param spec.stopEvent Can be used to control which DOM events, when + * they bubble out of this widget, the editor view should ignore. + * @param spec.key When comparing decorations of this type (in order to + * decide whether it needs to be redrawn), ProseMirror will by default + * compare the widget DOM node by identity. If you pass a key, that key + * will be compared instead, which can be useful when you generate + * decorations on the fly and don't want to store and reuse DOM nodes. + * Make sure that any widgets with the same key are interchangeable—if + * widgets differ in, for example, the behavior of some event handler, + * they should get different keys. */ static widget( pos: number, - dom: Node, + toDOM: ((view: EditorView, getPos: () => number) => Node) | Node, spec?: { side?: number | null; - marks?: Mark[]; + marks?: Mark[] | null; stopEvent?: ((event: Event) => boolean) | null; key?: string | null; } @@ -251,6 +283,27 @@ export class EditorView { * necessary). */ domAtPos(pos: number): { node: Node; offset: number }; + /** + * Find the DOM node that represents the document node after the + * given position. May return null when the position doesn't point + * in front of a node or if the node is inside an opaque node view. + * + * This is intended to be able to call things like getBoundingClientRect + * on that DOM node. Do not mutate the editor DOM directly, or add + * styling this way, since that will be immediately overriden by the + * editor as it redraws the node. + */ + nodeDOM(pos: number): Node | null | undefined; + /** + * Find the document position that corresponds to a given DOM position. + * (Whenever possible, it is preferable to inspect the document structure + * directly, rather than poking around in the DOM, but sometimes—for + * example when interpreting an event target—you don't have a choice.) + * + * The bias (default: -1) parameter can be used to influence which side of + * a DOM node to use when the position is inside a leaf node. + */ + posAtDOM(node: Node, offset: number, bias?: number | null): number; /** * Find out whether the selection is at the end of a textblock when * moving in a given direction. When, for example, given `"left"`, From e9cb8886fb3a6a599f7ce2a84b82fb54ac40d383 Mon Sep 17 00:00:00 2001 From: Patrick Simmelbauer Date: Thu, 21 Jun 2018 15:43:41 +0200 Subject: [PATCH 59/65] Update prosemirror-model typings to 1.5 --- types/prosemirror-model/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/prosemirror-model/index.d.ts b/types/prosemirror-model/index.d.ts index 095b88f3ba..aa02f9b770 100644 --- a/types/prosemirror-model/index.d.ts +++ b/types/prosemirror-model/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-model 1.4 +// Type definitions for prosemirror-model 1.5 // Project: https://github.com/ProseMirror/prosemirror-model // Definitions by: Bradley Ayers // David Hahn @@ -246,7 +246,7 @@ export interface ParseOptions { * A value that describes how to parse a given DOM node or inline * style as a ProseMirror node or mark. */ -export interface ParseRule { +export interface ParseRule { /** * A CSS selector describing the kind of DOM elements to match. A * single rule should have _either_ a `tag` or a `style` property. @@ -341,7 +341,7 @@ export interface ParseRule { * present, instead of parsing the node's child nodes, the result of * this function is used. */ - getContent?: ((p: Node) => Fragment) | null; + getContent?: ((p: Node, schema: S) => Fragment) | null; /** * Controls whether whitespace should be preserved when parsing the * content inside the matched element. `false` means whitespace may @@ -361,7 +361,7 @@ export class DOMParser { * Create a parser that targets the given schema, using the given * parsing rules. */ - constructor(schema: S, rules: Array>); + constructor(schema: S, rules: ParseRule[]); /** * The schema into which the parser parses. */ @@ -370,7 +370,7 @@ export class DOMParser { * The set of [parse rules](#model.ParseRule) that the parser * uses, in order of precedence. */ - rules: Array>; + rules: ParseRule[]; /** * Parse a document from the content of a DOM node. */ From 4c3173665b5c27f87a1a81ad506dcd2f05031898 Mon Sep 17 00:00:00 2001 From: Patrick Simmelbauer Date: Thu, 21 Jun 2018 15:44:01 +0200 Subject: [PATCH 60/65] Update prosemirror-state typings to 1.2 --- types/prosemirror-state/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/prosemirror-state/index.d.ts b/types/prosemirror-state/index.d.ts index db5a16e9d3..7ecf0f3c13 100644 --- a/types/prosemirror-state/index.d.ts +++ b/types/prosemirror-state/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-state 1.1 +// Type definitions for prosemirror-state 1.2 // Project: https://github.com/ProseMirror/prosemirror-state // Definitions by: Bradley Ayers // David Hahn @@ -479,6 +479,7 @@ export class EditorState { schema?: S | null; doc?: ProsemirrorNode | null; selection?: Selection | null; + storedMarks?: Mark[] | null; plugins?: Array> | null; }): EditorState; /** From d00d68af9c34ef2a05fefe468354fab0ff557da7 Mon Sep 17 00:00:00 2001 From: Patrick Simmelbauer Date: Thu, 21 Jun 2018 15:44:44 +0200 Subject: [PATCH 61/65] Update prosemirror-transform typings to 1.1 --- types/prosemirror-transform/index.d.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/types/prosemirror-transform/index.d.ts b/types/prosemirror-transform/index.d.ts index 88f97ff9e4..974a6e8475 100644 --- a/types/prosemirror-transform/index.d.ts +++ b/types/prosemirror-transform/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-transform 1.0 +// Type definitions for prosemirror-transform 1.1 // Project: https://github.com/ProseMirror/prosemirror-transform // Definitions by: Bradley Ayers // David Hahn @@ -143,6 +143,12 @@ export class Mapping implements Mappable { * mirroring information). */ appendMapping(mapping: Mapping): void; + /** + * Finds the offset of the step map that mirrors the map at the + * given offset, in this mapping (as per the second argument to + * appendMap). + */ + getMirror(n: number): number | undefined | null; /** * Append the inverse of the given mapping to this one. */ @@ -550,3 +556,15 @@ export function insertPoint( pos: number, nodeType: NodeType ): number | null | undefined; +/** + * Finds a position at or around the given position where the given + * slice can be inserted. Will look at parent nodes' nearest boundary + * and try there, even if the original position wasn't directly at + * the start or end of that node. Returns null when no position was + * found. + */ +export function dropPoint( + doc: ProsemirrorNode, + pos: number, + slice: Slice +): number | null | undefined; From e108a347188cf629c0b8c6fd5ebfe18fa1ce39e9 Mon Sep 17 00:00:00 2001 From: Chung N Ho Date: Wed, 20 Jun 2018 18:13:30 -0700 Subject: [PATCH 62/65] [redux-mock-store] Update types to be compatible with redux 4.0 --- types/redux-mock-store/index.d.ts | 18 ++++++-- types/redux-mock-store/package.json | 2 +- .../redux-mock-store-tests.ts | 2 +- types/redux-mock-store/v0/index.d.ts | 18 ++++++++ types/redux-mock-store/v0/package.json | 6 +++ .../v0/redux-mock-store-tests.ts | 45 +++++++++++++++++++ types/redux-mock-store/v0/tsconfig.json | 29 ++++++++++++ types/redux-mock-store/v0/tslint.json | 8 ++++ 8 files changed, 122 insertions(+), 6 deletions(-) create mode 100644 types/redux-mock-store/v0/index.d.ts create mode 100644 types/redux-mock-store/v0/package.json create mode 100644 types/redux-mock-store/v0/redux-mock-store-tests.ts create mode 100644 types/redux-mock-store/v0/tsconfig.json create mode 100644 types/redux-mock-store/v0/tslint.json diff --git a/types/redux-mock-store/index.d.ts b/types/redux-mock-store/index.d.ts index 4f8114731a..5966b125a8 100644 --- a/types/redux-mock-store/index.d.ts +++ b/types/redux-mock-store/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Redux Mock Store 0.0.1 +// Type definitions for Redux Mock Store 1.0.0 // Project: https://github.com/arnaudbenard/redux-mock-store // Definitions by: Marian Palkus , Cap3 // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -6,13 +6,23 @@ import * as Redux from 'redux'; -export interface MockStore extends Redux.Store { +export interface MockStore extends Redux.Store { getActions(): any[]; clearActions(): void; } -export type MockStoreCreator = (state?: T) => MockStore; +export type MockStoreEnhanced = MockStore & {dispatch: DispatchExts}; -declare function createMockStore(middlewares?: Redux.Middleware[]): MockStoreCreator; +export type MockStoreCreator = (state?: S) => MockStoreEnhanced; + +/** + * Create Mock Store returns a function that will create a mock store from a state + * with the same set of set of middleware applied. + * + * @param middlewares The list of middleware to be applied. + * @template S The type of state to be held by the store. + * @template DispatchExts The additional Dispatch signatures for the middlewares applied. + */ +declare function createMockStore(middlewares?: Redux.Middleware[]): MockStoreCreator; export default createMockStore; diff --git a/types/redux-mock-store/package.json b/types/redux-mock-store/package.json index 6d68bf2f9b..7f5b19d45b 100644 --- a/types/redux-mock-store/package.json +++ b/types/redux-mock-store/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "redux": "^3.6.0" + "redux": "^4.0.0" } } diff --git a/types/redux-mock-store/redux-mock-store-tests.ts b/types/redux-mock-store/redux-mock-store-tests.ts index daa801b960..14ce18ecda 100644 --- a/types/redux-mock-store/redux-mock-store-tests.ts +++ b/types/redux-mock-store/redux-mock-store-tests.ts @@ -18,7 +18,7 @@ function counter(state: any, action: any) { } function loggingMiddleware() { - return (next: Redux.Dispatch) => (action: any) => { + return (next: Redux.Dispatch) => (action: any) => { console.log(action.type); return next(action); }; diff --git a/types/redux-mock-store/v0/index.d.ts b/types/redux-mock-store/v0/index.d.ts new file mode 100644 index 0000000000..4f8114731a --- /dev/null +++ b/types/redux-mock-store/v0/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for Redux Mock Store 0.0.1 +// Project: https://github.com/arnaudbenard/redux-mock-store +// Definitions by: Marian Palkus , Cap3 +// Definitions: https://github.com/borisyankov/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as Redux from 'redux'; + +export interface MockStore extends Redux.Store { + getActions(): any[]; + clearActions(): void; +} + +export type MockStoreCreator = (state?: T) => MockStore; + +declare function createMockStore(middlewares?: Redux.Middleware[]): MockStoreCreator; + +export default createMockStore; diff --git a/types/redux-mock-store/v0/package.json b/types/redux-mock-store/v0/package.json new file mode 100644 index 0000000000..6d68bf2f9b --- /dev/null +++ b/types/redux-mock-store/v0/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "redux": "^3.6.0" + } +} diff --git a/types/redux-mock-store/v0/redux-mock-store-tests.ts b/types/redux-mock-store/v0/redux-mock-store-tests.ts new file mode 100644 index 0000000000..daa801b960 --- /dev/null +++ b/types/redux-mock-store/v0/redux-mock-store-tests.ts @@ -0,0 +1,45 @@ +import * as Redux from 'redux'; +import configureStore, { MockStore, MockStoreCreator } from 'redux-mock-store'; + +// Redux store API tests +// The following test are taken from ../redux/redux-tests.ts +function counter(state: any, action: any) { + if (!state) { + state = 0; + } + switch (action.type) { + case 'INCREMENT': + return state + 1; + case 'DECREMENT': + return state - 1; + default: + return state; + } +} + +function loggingMiddleware() { + return (next: Redux.Dispatch) => (action: any) => { + console.log(action.type); + return next(action); + }; +} + +const mockStoreCreator: MockStoreCreator = configureStore([loggingMiddleware]); +const initialState = 0; + +const store: MockStore = mockStoreCreator(initialState); + +store.subscribe(() => { + // ... +}); + +store.dispatch({ type: 'INCREMENT' }); + +// Additional mock store API tests +const actions: any[] = store.getActions(); + +store.clearActions(); + +// actions access without the need to cast +const actions2 = store.getActions(); +actions2[10].payload.id; diff --git a/types/redux-mock-store/v0/tsconfig.json b/types/redux-mock-store/v0/tsconfig.json new file mode 100644 index 0000000000..c463852c20 --- /dev/null +++ b/types/redux-mock-store/v0/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "strictFunctionTypes": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "types": [], + "paths": { + "redux-mock-store": [ + "redux-mock-store/v0" + ] + }, + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "redux-mock-store-tests.ts" + ] +} \ No newline at end of file diff --git a/types/redux-mock-store/v0/tslint.json b/types/redux-mock-store/v0/tslint.json new file mode 100644 index 0000000000..3337f86cdc --- /dev/null +++ b/types/redux-mock-store/v0/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false, + "no-unnecessary-generics": false + } +} \ No newline at end of file From 531bad9e67e0e253b1437df8740a269e3e867337 Mon Sep 17 00:00:00 2001 From: ChanRay Date: Fri, 22 Jun 2018 02:56:56 +0800 Subject: [PATCH 63/65] [fibjs] fix lack of props in module, and fix TypeMap. --- types/fibjs/declare/Buffer.d.ts | 12 +-- types/fibjs/declare/BufferedStream.d.ts | 4 +- types/fibjs/declare/Chain.d.ts | 4 +- types/fibjs/declare/Cipher.d.ts | 4 +- types/fibjs/declare/Condition.d.ts | 4 +- types/fibjs/declare/DbConnection.d.ts | 4 +- types/fibjs/declare/DgramSocket.d.ts | 4 +- types/fibjs/declare/Digest.d.ts | 4 +- types/fibjs/declare/Event.d.ts | 4 +- types/fibjs/declare/EventEmitter.d.ts | 4 +- types/fibjs/declare/EventInfo.d.ts | 4 +- types/fibjs/declare/Fiber.d.ts | 4 +- types/fibjs/declare/File.d.ts | 4 +- types/fibjs/declare/Handler.d.ts | 4 +- types/fibjs/declare/HandlerEx.d.ts | 4 +- types/fibjs/declare/HeapGraphEdge.d.ts | 4 +- types/fibjs/declare/HeapGraphNode.d.ts | 4 +- types/fibjs/declare/HeapSnapshot.d.ts | 4 +- types/fibjs/declare/HttpClient.d.ts | 4 +- types/fibjs/declare/HttpCollection.d.ts | 4 +- types/fibjs/declare/HttpCookie.d.ts | 4 +- types/fibjs/declare/HttpHandler.d.ts | 4 +- types/fibjs/declare/HttpMessage.d.ts | 4 +- types/fibjs/declare/HttpRequest.d.ts | 4 +- types/fibjs/declare/HttpResponse.d.ts | 4 +- types/fibjs/declare/HttpServer.d.ts | 4 +- types/fibjs/declare/HttpUploadData.d.ts | 4 +- types/fibjs/declare/HttpsServer.d.ts | 4 +- types/fibjs/declare/Image.d.ts | 4 +- types/fibjs/declare/Int64.d.ts | 4 +- types/fibjs/declare/LevelDB.d.ts | 4 +- types/fibjs/declare/Lock.d.ts | 4 +- types/fibjs/declare/LruCache.d.ts | 4 +- types/fibjs/declare/MSSQL.d.ts | 4 +- types/fibjs/declare/MemoryStream.d.ts | 4 +- types/fibjs/declare/Message.d.ts | 4 +- types/fibjs/declare/MongoCollection.d.ts | 4 +- types/fibjs/declare/MongoCursor.d.ts | 4 +- types/fibjs/declare/MongoDB.d.ts | 4 +- types/fibjs/declare/MongoID.d.ts | 4 +- types/fibjs/declare/MySQL.d.ts | 4 +- types/fibjs/declare/PKey.d.ts | 4 +- types/fibjs/declare/Redis.d.ts | 4 +- types/fibjs/declare/RedisHash.d.ts | 4 +- types/fibjs/declare/RedisList.d.ts | 4 +- types/fibjs/declare/RedisSet.d.ts | 4 +- types/fibjs/declare/RedisSortedSet.d.ts | 4 +- types/fibjs/declare/Routing.d.ts | 4 +- types/fibjs/declare/SQLite.d.ts | 4 +- types/fibjs/declare/SandBox.d.ts | 4 +- types/fibjs/declare/SeekableStream.d.ts | 4 +- types/fibjs/declare/Semaphore.d.ts | 4 +- types/fibjs/declare/Service.d.ts | 4 +- types/fibjs/declare/Smtp.d.ts | 4 +- types/fibjs/declare/Socket.d.ts | 4 +- types/fibjs/declare/SslHandler.d.ts | 4 +- types/fibjs/declare/SslServer.d.ts | 4 +- types/fibjs/declare/SslSocket.d.ts | 4 +- types/fibjs/declare/Stat.d.ts | 4 +- types/fibjs/declare/Stats.d.ts | 4 +- types/fibjs/declare/Stream.d.ts | 4 +- types/fibjs/declare/StringDecoder.d.ts | 4 +- types/fibjs/declare/SubProcess.d.ts | 4 +- types/fibjs/declare/TcpServer.d.ts | 4 +- types/fibjs/declare/Timer.d.ts | 4 +- types/fibjs/declare/UrlObject.d.ts | 4 +- types/fibjs/declare/WebSocket.d.ts | 4 +- types/fibjs/declare/WebSocketMessage.d.ts | 4 +- types/fibjs/declare/WebView.d.ts | 4 +- types/fibjs/declare/Worker.d.ts | 4 +- types/fibjs/declare/X509Cert.d.ts | 4 +- types/fibjs/declare/X509Crl.d.ts | 4 +- types/fibjs/declare/X509Req.d.ts | 4 +- types/fibjs/declare/XmlAttr.d.ts | 4 +- types/fibjs/declare/XmlCDATASection.d.ts | 4 +- types/fibjs/declare/XmlCharacterData.d.ts | 4 +- types/fibjs/declare/XmlComment.d.ts | 4 +- types/fibjs/declare/XmlDocument.d.ts | 4 +- types/fibjs/declare/XmlDocumentType.d.ts | 4 +- types/fibjs/declare/XmlElement.d.ts | 4 +- types/fibjs/declare/XmlNamedNodeMap.d.ts | 4 +- types/fibjs/declare/XmlNode.d.ts | 4 +- types/fibjs/declare/XmlNodeList.d.ts | 4 +- .../declare/XmlProcessingInstruction.d.ts | 4 +- types/fibjs/declare/XmlText.d.ts | 4 +- types/fibjs/declare/ZipFile.d.ts | 4 +- types/fibjs/declare/ZmqSocket.d.ts | 4 +- types/fibjs/declare/_test_env.d.ts | 2 +- types/fibjs/declare/assert.d.ts | 4 +- types/fibjs/declare/base32.d.ts | 4 +- types/fibjs/declare/base64.d.ts | 4 +- types/fibjs/declare/base64vlq.d.ts | 4 +- types/fibjs/declare/bson.d.ts | 4 +- types/fibjs/declare/console.d.ts | 29 ++++- types/fibjs/declare/constants.d.ts | 4 +- types/fibjs/declare/coroutine.d.ts | 37 ++++++- types/fibjs/declare/crypto.d.ts | 4 +- types/fibjs/declare/db.d.ts | 4 +- types/fibjs/declare/dgram.d.ts | 4 +- types/fibjs/declare/dns.d.ts | 4 +- types/fibjs/declare/encoding.d.ts | 4 +- types/fibjs/declare/fs.d.ts | 12 ++- types/fibjs/declare/gd.d.ts | 4 +- types/fibjs/declare/global.d.ts | 44 +++++++- types/fibjs/declare/gui.d.ts | 4 +- types/fibjs/declare/hash.d.ts | 4 +- types/fibjs/declare/hex.d.ts | 4 +- types/fibjs/declare/http.d.ts | 54 +++++++++- types/fibjs/declare/iconv.d.ts | 4 +- types/fibjs/declare/index.d.ts | 35 ++---- types/fibjs/declare/io.d.ts | 4 +- types/fibjs/declare/json.d.ts | 4 +- types/fibjs/declare/mq.d.ts | 4 +- types/fibjs/declare/net.d.ts | 4 +- types/fibjs/declare/object.d.ts | 4 +- types/fibjs/declare/os.d.ts | 28 ++++- types/fibjs/declare/path.d.ts | 40 ++++++- types/fibjs/declare/path_posix.d.ts | 40 ++++++- types/fibjs/declare/path_win32.d.ts | 40 ++++++- types/fibjs/declare/process.d.ts | 100 +++++++++++++++++- types/fibjs/declare/profiler.d.ts | 4 +- types/fibjs/declare/punycode.d.ts | 4 +- types/fibjs/declare/querystring.d.ts | 4 +- types/fibjs/declare/registry.d.ts | 4 +- types/fibjs/declare/ssl.d.ts | 38 ++++++- types/fibjs/declare/string_decoder.d.ts | 4 +- types/fibjs/declare/test.d.ts | 13 ++- types/fibjs/declare/timers.d.ts | 4 +- types/fibjs/declare/tty.d.ts | 4 +- types/fibjs/declare/url.d.ts | 4 +- types/fibjs/declare/util.d.ts | 4 +- types/fibjs/declare/uuid.d.ts | 12 ++- types/fibjs/declare/vm.d.ts | 4 +- types/fibjs/declare/ws.d.ts | 4 +- types/fibjs/declare/xml.d.ts | 4 +- types/fibjs/declare/zip.d.ts | 4 +- types/fibjs/declare/zlib.d.ts | 4 +- types/fibjs/declare/zmq.d.ts | 4 +- 138 files changed, 720 insertions(+), 304 deletions(-) diff --git a/types/fibjs/declare/Buffer.d.ts b/types/fibjs/declare/Buffer.d.ts index 1d51d44ab6..867283e703 100644 --- a/types/fibjs/declare/Buffer.d.ts +++ b/types/fibjs/declare/Buffer.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -66,7 +66,7 @@ declare class Class_Buffer extends Class__object { * * */ - constructor(datas: TypedArray); + constructor(datas: ArrayLike); /** * @@ -1043,7 +1043,7 @@ declare class Class_Buffer extends Class__object { * * */ - keys(): Object; + keys(): Iterable; /** * @@ -1053,7 +1053,7 @@ declare class Class_Buffer extends Class__object { * * */ - values(): Object; + values(): Iterable; /** * @@ -1077,7 +1077,7 @@ declare class Class_Buffer extends Class__object { * * */ - entries(): Object; + entries(): Iterable; /** * @@ -1126,6 +1126,6 @@ declare class Class_Buffer extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/BufferedStream.d.ts b/types/fibjs/declare/BufferedStream.d.ts index f0f1ef74ba..fab2dac2b2 100644 --- a/types/fibjs/declare/BufferedStream.d.ts +++ b/types/fibjs/declare/BufferedStream.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -139,6 +139,6 @@ declare class Class_BufferedStream extends Class_Stream { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Chain.d.ts b/types/fibjs/declare/Chain.d.ts index 9d980757af..4a8c89e69c 100644 --- a/types/fibjs/declare/Chain.d.ts +++ b/types/fibjs/declare/Chain.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -58,6 +58,6 @@ declare class Class_Chain extends Class_Handler { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Cipher.d.ts b/types/fibjs/declare/Cipher.d.ts index cbae22fc3f..122da7f036 100644 --- a/types/fibjs/declare/Cipher.d.ts +++ b/types/fibjs/declare/Cipher.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -144,6 +144,6 @@ declare class Class_Cipher extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Condition.d.ts b/types/fibjs/declare/Condition.d.ts index 47b5e086fa..08486086d4 100644 --- a/types/fibjs/declare/Condition.d.ts +++ b/types/fibjs/declare/Condition.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -70,6 +70,6 @@ declare class Class_Condition extends Class_Lock { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/DbConnection.d.ts b/types/fibjs/declare/DbConnection.d.ts index 221db6a185..62e940687f 100644 --- a/types/fibjs/declare/DbConnection.d.ts +++ b/types/fibjs/declare/DbConnection.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -114,6 +114,6 @@ declare class Class_DbConnection extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/DgramSocket.d.ts b/types/fibjs/declare/DgramSocket.d.ts index 58ec61209f..6618ae9c1c 100644 --- a/types/fibjs/declare/DgramSocket.d.ts +++ b/types/fibjs/declare/DgramSocket.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -175,6 +175,6 @@ declare class Class_DgramSocket extends Class_EventEmitter { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Digest.d.ts b/types/fibjs/declare/Digest.d.ts index 5486759cf1..d440f31486 100644 --- a/types/fibjs/declare/Digest.d.ts +++ b/types/fibjs/declare/Digest.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -72,6 +72,6 @@ declare class Class_Digest extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Event.d.ts b/types/fibjs/declare/Event.d.ts index 00c6daa247..478967032e 100644 --- a/types/fibjs/declare/Event.d.ts +++ b/types/fibjs/declare/Event.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -80,6 +80,6 @@ declare class Class_Event extends Class_Lock { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/EventEmitter.d.ts b/types/fibjs/declare/EventEmitter.d.ts index afa0b3f4ac..608b6f2edb 100644 --- a/types/fibjs/declare/EventEmitter.d.ts +++ b/types/fibjs/declare/EventEmitter.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -306,6 +306,6 @@ declare class Class_EventEmitter extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/EventInfo.d.ts b/types/fibjs/declare/EventInfo.d.ts index f108f8e7bd..a7c43a70a7 100644 --- a/types/fibjs/declare/EventInfo.d.ts +++ b/types/fibjs/declare/EventInfo.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -76,6 +76,6 @@ declare class Class_EventInfo extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Fiber.d.ts b/types/fibjs/declare/Fiber.d.ts index 546e099e5d..1ddf81a548 100644 --- a/types/fibjs/declare/Fiber.d.ts +++ b/types/fibjs/declare/Fiber.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -72,6 +72,6 @@ declare class Class_Fiber extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/File.d.ts b/types/fibjs/declare/File.d.ts index bf42f7f8b0..11b5e7391f 100644 --- a/types/fibjs/declare/File.d.ts +++ b/types/fibjs/declare/File.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -62,6 +62,6 @@ declare class Class_File extends Class_SeekableStream { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Handler.d.ts b/types/fibjs/declare/Handler.d.ts index 1dcae285f5..ae7af823a2 100644 --- a/types/fibjs/declare/Handler.d.ts +++ b/types/fibjs/declare/Handler.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -69,6 +69,6 @@ declare class Class_Handler extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HandlerEx.d.ts b/types/fibjs/declare/HandlerEx.d.ts index 1e95e65335..504ab42c1a 100644 --- a/types/fibjs/declare/HandlerEx.d.ts +++ b/types/fibjs/declare/HandlerEx.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -85,6 +85,6 @@ declare class Class_HandlerEx extends Class_Handler { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HeapGraphEdge.d.ts b/types/fibjs/declare/HeapGraphEdge.d.ts index 55f301ba0d..87a144c664 100644 --- a/types/fibjs/declare/HeapGraphEdge.d.ts +++ b/types/fibjs/declare/HeapGraphEdge.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -92,6 +92,6 @@ declare class Class_HeapGraphEdge extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HeapGraphNode.d.ts b/types/fibjs/declare/HeapGraphNode.d.ts index bdecf5b967..5ff54d1fd6 100644 --- a/types/fibjs/declare/HeapGraphNode.d.ts +++ b/types/fibjs/declare/HeapGraphNode.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -115,6 +115,6 @@ declare class Class_HeapGraphNode extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HeapSnapshot.d.ts b/types/fibjs/declare/HeapSnapshot.d.ts index 8b2e797206..c65282165c 100644 --- a/types/fibjs/declare/HeapSnapshot.d.ts +++ b/types/fibjs/declare/HeapSnapshot.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -96,6 +96,6 @@ declare class Class_HeapSnapshot extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpClient.d.ts b/types/fibjs/declare/HttpClient.d.ts index 17520b37f0..580e90c70c 100644 --- a/types/fibjs/declare/HttpClient.d.ts +++ b/types/fibjs/declare/HttpClient.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -253,6 +253,6 @@ declare class Class_HttpClient extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpCollection.d.ts b/types/fibjs/declare/HttpCollection.d.ts index 631e9a3717..5aa34c40bb 100644 --- a/types/fibjs/declare/HttpCollection.d.ts +++ b/types/fibjs/declare/HttpCollection.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -121,6 +121,6 @@ declare class Class_HttpCollection extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpCookie.d.ts b/types/fibjs/declare/HttpCookie.d.ts index 7c3827de68..5be7604293 100644 --- a/types/fibjs/declare/HttpCookie.d.ts +++ b/types/fibjs/declare/HttpCookie.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -155,6 +155,6 @@ declare class Class_HttpCookie extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpHandler.d.ts b/types/fibjs/declare/HttpHandler.d.ts index 6ab5067b29..4f412cb31f 100644 --- a/types/fibjs/declare/HttpHandler.d.ts +++ b/types/fibjs/declare/HttpHandler.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -96,6 +96,6 @@ declare class Class_HttpHandler extends Class_HandlerEx { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpMessage.d.ts b/types/fibjs/declare/HttpMessage.d.ts index 1e745b0529..89ef9c96c6 100644 --- a/types/fibjs/declare/HttpMessage.d.ts +++ b/types/fibjs/declare/HttpMessage.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -197,6 +197,6 @@ declare class Class_HttpMessage extends Class_Message { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpRequest.d.ts b/types/fibjs/declare/HttpRequest.d.ts index 20a129129e..b7116f8673 100644 --- a/types/fibjs/declare/HttpRequest.d.ts +++ b/types/fibjs/declare/HttpRequest.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -120,6 +120,6 @@ declare class Class_HttpRequest extends Class_HttpMessage { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpResponse.d.ts b/types/fibjs/declare/HttpResponse.d.ts index b7a3ac4aaa..4ecf06866d 100644 --- a/types/fibjs/declare/HttpResponse.d.ts +++ b/types/fibjs/declare/HttpResponse.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -125,6 +125,6 @@ declare class Class_HttpResponse extends Class_HttpMessage { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpServer.d.ts b/types/fibjs/declare/HttpServer.d.ts index 1ef964bb09..157c951ea8 100644 --- a/types/fibjs/declare/HttpServer.d.ts +++ b/types/fibjs/declare/HttpServer.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -157,6 +157,6 @@ declare class Class_HttpServer extends Class_TcpServer { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpUploadData.d.ts b/types/fibjs/declare/HttpUploadData.d.ts index 8d88b2b125..9b3679c51b 100644 --- a/types/fibjs/declare/HttpUploadData.d.ts +++ b/types/fibjs/declare/HttpUploadData.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -76,6 +76,6 @@ declare class Class_HttpUploadData extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/HttpsServer.d.ts b/types/fibjs/declare/HttpsServer.d.ts index 2213c7c4c6..d5f391c1b6 100644 --- a/types/fibjs/declare/HttpsServer.d.ts +++ b/types/fibjs/declare/HttpsServer.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -132,6 +132,6 @@ declare class Class_HttpsServer extends Class_HttpServer { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Image.d.ts b/types/fibjs/declare/Image.d.ts index ff88443b70..272eb49505 100644 --- a/types/fibjs/declare/Image.d.ts +++ b/types/fibjs/declare/Image.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -851,6 +851,6 @@ declare class Class_Image extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Int64.d.ts b/types/fibjs/declare/Int64.d.ts index 3bba627aed..898fe5c675 100644 --- a/types/fibjs/declare/Int64.d.ts +++ b/types/fibjs/declare/Int64.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -236,6 +236,6 @@ declare class Class_Int64 extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/LevelDB.d.ts b/types/fibjs/declare/LevelDB.d.ts index 67e4ced5c2..feb6ce2b6b 100644 --- a/types/fibjs/declare/LevelDB.d.ts +++ b/types/fibjs/declare/LevelDB.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -171,6 +171,6 @@ declare class Class_LevelDB extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Lock.d.ts b/types/fibjs/declare/Lock.d.ts index 7f6f1ab13d..cb8a7d38d8 100644 --- a/types/fibjs/declare/Lock.d.ts +++ b/types/fibjs/declare/Lock.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -74,6 +74,6 @@ declare class Class_Lock extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/LruCache.d.ts b/types/fibjs/declare/LruCache.d.ts index 2ca05b4d6c..884bb65d26 100644 --- a/types/fibjs/declare/LruCache.d.ts +++ b/types/fibjs/declare/LruCache.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -158,6 +158,6 @@ declare class Class_LruCache extends Class_EventEmitter { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/MSSQL.d.ts b/types/fibjs/declare/MSSQL.d.ts index c38cff27cb..722ebbf448 100644 --- a/types/fibjs/declare/MSSQL.d.ts +++ b/types/fibjs/declare/MSSQL.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -38,6 +38,6 @@ declare class Class_MSSQL extends Class_DbConnection { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/MemoryStream.d.ts b/types/fibjs/declare/MemoryStream.d.ts index 1c0b050134..2d707f48a9 100644 --- a/types/fibjs/declare/MemoryStream.d.ts +++ b/types/fibjs/declare/MemoryStream.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -64,6 +64,6 @@ declare class Class_MemoryStream extends Class_SeekableStream { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Message.d.ts b/types/fibjs/declare/Message.d.ts index 523c9c4ef5..efefee9105 100644 --- a/types/fibjs/declare/Message.d.ts +++ b/types/fibjs/declare/Message.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -230,6 +230,6 @@ declare class Class_Message extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/MongoCollection.d.ts b/types/fibjs/declare/MongoCollection.d.ts index 348ec36812..4b1f07478b 100644 --- a/types/fibjs/declare/MongoCollection.d.ts +++ b/types/fibjs/declare/MongoCollection.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -222,6 +222,6 @@ declare class Class_MongoCollection extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/MongoCursor.d.ts b/types/fibjs/declare/MongoCursor.d.ts index 8b8e903f35..d9e26b833f 100644 --- a/types/fibjs/declare/MongoCursor.d.ts +++ b/types/fibjs/declare/MongoCursor.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -144,6 +144,6 @@ declare class Class_MongoCursor extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/MongoDB.d.ts b/types/fibjs/declare/MongoDB.d.ts index 19dd8a7369..c0bf5432bd 100644 --- a/types/fibjs/declare/MongoDB.d.ts +++ b/types/fibjs/declare/MongoDB.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -81,6 +81,6 @@ declare class Class_MongoDB extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/MongoID.d.ts b/types/fibjs/declare/MongoID.d.ts index 8fd002b02f..372b0fa30b 100644 --- a/types/fibjs/declare/MongoID.d.ts +++ b/types/fibjs/declare/MongoID.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -28,6 +28,6 @@ declare class Class_MongoID extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/MySQL.d.ts b/types/fibjs/declare/MySQL.d.ts index edc974a1d5..a23f9615e4 100644 --- a/types/fibjs/declare/MySQL.d.ts +++ b/types/fibjs/declare/MySQL.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -62,6 +62,6 @@ declare class Class_MySQL extends Class_DbConnection { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/PKey.d.ts b/types/fibjs/declare/PKey.d.ts index 3d25308696..0c3f939e3e 100644 --- a/types/fibjs/declare/PKey.d.ts +++ b/types/fibjs/declare/PKey.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -350,6 +350,6 @@ declare class Class_PKey extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Redis.d.ts b/types/fibjs/declare/Redis.d.ts index ed5d498a98..4c5201d62c 100644 --- a/types/fibjs/declare/Redis.d.ts +++ b/types/fibjs/declare/Redis.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -571,6 +571,6 @@ declare class Class_Redis extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/RedisHash.d.ts b/types/fibjs/declare/RedisHash.d.ts index 9c2bc44ad7..0c8c9ea362 100644 --- a/types/fibjs/declare/RedisHash.d.ts +++ b/types/fibjs/declare/RedisHash.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -164,6 +164,6 @@ declare class Class_RedisHash extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/RedisList.d.ts b/types/fibjs/declare/RedisList.d.ts index 64d56a04f7..f752f8fd1a 100644 --- a/types/fibjs/declare/RedisList.d.ts +++ b/types/fibjs/declare/RedisList.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -169,6 +169,6 @@ declare class Class_RedisList extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/RedisSet.d.ts b/types/fibjs/declare/RedisSet.d.ts index 76e360ed7e..571869a8d5 100644 --- a/types/fibjs/declare/RedisSet.d.ts +++ b/types/fibjs/declare/RedisSet.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -124,6 +124,6 @@ declare class Class_RedisSet extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/RedisSortedSet.d.ts b/types/fibjs/declare/RedisSortedSet.d.ts index 8a98643ea9..ed2bcfaf5c 100644 --- a/types/fibjs/declare/RedisSortedSet.d.ts +++ b/types/fibjs/declare/RedisSortedSet.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -153,6 +153,6 @@ declare class Class_RedisSortedSet extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Routing.d.ts b/types/fibjs/declare/Routing.d.ts index af67796f22..c06bc4e887 100644 --- a/types/fibjs/declare/Routing.d.ts +++ b/types/fibjs/declare/Routing.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -257,6 +257,6 @@ declare class Class_Routing extends Class_Handler { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/SQLite.d.ts b/types/fibjs/declare/SQLite.d.ts index 0eb314fe3b..af499cfd03 100644 --- a/types/fibjs/declare/SQLite.d.ts +++ b/types/fibjs/declare/SQLite.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -61,6 +61,6 @@ declare class Class_SQLite extends Class_DbConnection { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/SandBox.d.ts b/types/fibjs/declare/SandBox.d.ts index 5a0b2de6fb..31f9dc53ce 100644 --- a/types/fibjs/declare/SandBox.d.ts +++ b/types/fibjs/declare/SandBox.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -172,6 +172,6 @@ declare class Class_SandBox extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/SeekableStream.d.ts b/types/fibjs/declare/SeekableStream.d.ts index 4b7a989346..06e0ae7aa2 100644 --- a/types/fibjs/declare/SeekableStream.d.ts +++ b/types/fibjs/declare/SeekableStream.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -107,6 +107,6 @@ declare class Class_SeekableStream extends Class_Stream { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Semaphore.d.ts b/types/fibjs/declare/Semaphore.d.ts index b35c8636ab..ac99421d88 100644 --- a/types/fibjs/declare/Semaphore.d.ts +++ b/types/fibjs/declare/Semaphore.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -64,6 +64,6 @@ declare class Class_Semaphore extends Class_Lock { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Service.d.ts b/types/fibjs/declare/Service.d.ts index 5ce3b5e064..6ca8feab53 100644 --- a/types/fibjs/declare/Service.d.ts +++ b/types/fibjs/declare/Service.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -171,6 +171,6 @@ declare class Class_Service extends Class_EventEmitter { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Smtp.d.ts b/types/fibjs/declare/Smtp.d.ts index 9c320582be..584513c533 100644 --- a/types/fibjs/declare/Smtp.d.ts +++ b/types/fibjs/declare/Smtp.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -141,6 +141,6 @@ declare class Class_Smtp extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Socket.d.ts b/types/fibjs/declare/Socket.d.ts index a3de6699a5..0e44b2e41d 100644 --- a/types/fibjs/declare/Socket.d.ts +++ b/types/fibjs/declare/Socket.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -227,6 +227,6 @@ declare class Class_Socket extends Class_Stream { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/SslHandler.d.ts b/types/fibjs/declare/SslHandler.d.ts index 1ed85a5ce0..9b5e6364c6 100644 --- a/types/fibjs/declare/SslHandler.d.ts +++ b/types/fibjs/declare/SslHandler.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -101,6 +101,6 @@ declare class Class_SslHandler extends Class_Handler { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/SslServer.d.ts b/types/fibjs/declare/SslServer.d.ts index 0213c0b10e..79b732600b 100644 --- a/types/fibjs/declare/SslServer.d.ts +++ b/types/fibjs/declare/SslServer.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -132,6 +132,6 @@ declare class Class_SslServer extends Class_TcpServer { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/SslSocket.d.ts b/types/fibjs/declare/SslSocket.d.ts index 4b7b6986e8..7406b0d2f3 100644 --- a/types/fibjs/declare/SslSocket.d.ts +++ b/types/fibjs/declare/SslSocket.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -134,6 +134,6 @@ declare class Class_SslSocket extends Class_Stream { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Stat.d.ts b/types/fibjs/declare/Stat.d.ts index fef64f6c73..545a9c8e1d 100644 --- a/types/fibjs/declare/Stat.d.ts +++ b/types/fibjs/declare/Stat.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -214,6 +214,6 @@ declare class Class_Stat extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Stats.d.ts b/types/fibjs/declare/Stats.d.ts index 7e9a96d1c4..291795b34a 100644 --- a/types/fibjs/declare/Stats.d.ts +++ b/types/fibjs/declare/Stats.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -98,6 +98,6 @@ declare class Class_Stats extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Stream.d.ts b/types/fibjs/declare/Stream.d.ts index 723cc78fae..301d422e91 100644 --- a/types/fibjs/declare/Stream.d.ts +++ b/types/fibjs/declare/Stream.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -77,6 +77,6 @@ declare class Class_Stream extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/StringDecoder.d.ts b/types/fibjs/declare/StringDecoder.d.ts index 7958f2d74d..a03c9ccadc 100644 --- a/types/fibjs/declare/StringDecoder.d.ts +++ b/types/fibjs/declare/StringDecoder.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -141,6 +141,6 @@ declare class Class_StringDecoder extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/SubProcess.d.ts b/types/fibjs/declare/SubProcess.d.ts index 774e121eb5..59fe0da0c3 100644 --- a/types/fibjs/declare/SubProcess.d.ts +++ b/types/fibjs/declare/SubProcess.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -98,6 +98,6 @@ declare class Class_SubProcess extends Class_BufferedStream { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/TcpServer.d.ts b/types/fibjs/declare/TcpServer.d.ts index 065288c1f1..19d9ddcfb9 100644 --- a/types/fibjs/declare/TcpServer.d.ts +++ b/types/fibjs/declare/TcpServer.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -122,6 +122,6 @@ declare class Class_TcpServer extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Timer.d.ts b/types/fibjs/declare/Timer.d.ts index b512d36afb..c18b313cc9 100644 --- a/types/fibjs/declare/Timer.d.ts +++ b/types/fibjs/declare/Timer.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -68,6 +68,6 @@ declare class Class_Timer extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/UrlObject.d.ts b/types/fibjs/declare/UrlObject.d.ts index 65d9d59e38..578d3b5079 100644 --- a/types/fibjs/declare/UrlObject.d.ts +++ b/types/fibjs/declare/UrlObject.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -274,6 +274,6 @@ declare class Class_UrlObject extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/WebSocket.d.ts b/types/fibjs/declare/WebSocket.d.ts index 08201ff96e..3054397004 100644 --- a/types/fibjs/declare/WebSocket.d.ts +++ b/types/fibjs/declare/WebSocket.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -187,6 +187,6 @@ declare class Class_WebSocket extends Class_EventEmitter { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/WebSocketMessage.d.ts b/types/fibjs/declare/WebSocketMessage.d.ts index 989a12c2ff..14008263b7 100644 --- a/types/fibjs/declare/WebSocketMessage.d.ts +++ b/types/fibjs/declare/WebSocketMessage.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -79,6 +79,6 @@ declare class Class_WebSocketMessage extends Class_Message { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/WebView.d.ts b/types/fibjs/declare/WebView.d.ts index 2bf1258bcf..a5035b662e 100644 --- a/types/fibjs/declare/WebView.d.ts +++ b/types/fibjs/declare/WebView.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -167,6 +167,6 @@ declare class Class_WebView extends Class_EventEmitter { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/Worker.d.ts b/types/fibjs/declare/Worker.d.ts index 9e8fa4f50a..1bbc793b85 100644 --- a/types/fibjs/declare/Worker.d.ts +++ b/types/fibjs/declare/Worker.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -61,6 +61,6 @@ declare class Class_Worker extends Class_EventEmitter { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/X509Cert.d.ts b/types/fibjs/declare/X509Cert.d.ts index 17f4a259b4..5090f422cf 100644 --- a/types/fibjs/declare/X509Cert.d.ts +++ b/types/fibjs/declare/X509Cert.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -258,6 +258,6 @@ declare class Class_X509Cert extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/X509Crl.d.ts b/types/fibjs/declare/X509Crl.d.ts index 44c3f2a4fc..22c0b1f99a 100644 --- a/types/fibjs/declare/X509Crl.d.ts +++ b/types/fibjs/declare/X509Crl.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -85,6 +85,6 @@ declare class Class_X509Crl extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/X509Req.d.ts b/types/fibjs/declare/X509Req.d.ts index 5474d3f6d8..6317e9afa1 100644 --- a/types/fibjs/declare/X509Req.d.ts +++ b/types/fibjs/declare/X509Req.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -150,6 +150,6 @@ declare class Class_X509Req extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlAttr.d.ts b/types/fibjs/declare/XmlAttr.d.ts index b95e3902c9..82659f536a 100644 --- a/types/fibjs/declare/XmlAttr.d.ts +++ b/types/fibjs/declare/XmlAttr.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -119,6 +119,6 @@ declare class Class_XmlAttr extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlCDATASection.d.ts b/types/fibjs/declare/XmlCDATASection.d.ts index 31fd64ecc9..4640fc3758 100644 --- a/types/fibjs/declare/XmlCDATASection.d.ts +++ b/types/fibjs/declare/XmlCDATASection.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -28,6 +28,6 @@ declare class Class_XmlCDATASection extends Class_XmlText { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlCharacterData.d.ts b/types/fibjs/declare/XmlCharacterData.d.ts index eb83981983..e1e3b486dd 100644 --- a/types/fibjs/declare/XmlCharacterData.d.ts +++ b/types/fibjs/declare/XmlCharacterData.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -110,6 +110,6 @@ declare class Class_XmlCharacterData extends Class_XmlNode { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlComment.d.ts b/types/fibjs/declare/XmlComment.d.ts index 7ba55a9740..62f02a1200 100644 --- a/types/fibjs/declare/XmlComment.d.ts +++ b/types/fibjs/declare/XmlComment.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -28,6 +28,6 @@ declare class Class_XmlComment extends Class_XmlCharacterData { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlDocument.d.ts b/types/fibjs/declare/XmlDocument.d.ts index 9e0b770e81..a4279dd1ce 100644 --- a/types/fibjs/declare/XmlDocument.d.ts +++ b/types/fibjs/declare/XmlDocument.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -285,6 +285,6 @@ declare class Class_XmlDocument extends Class_XmlNode { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlDocumentType.d.ts b/types/fibjs/declare/XmlDocumentType.d.ts index 129b1c7f5c..f61b5fbfed 100644 --- a/types/fibjs/declare/XmlDocumentType.d.ts +++ b/types/fibjs/declare/XmlDocumentType.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -67,6 +67,6 @@ declare class Class_XmlDocumentType extends Class_XmlNode { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlElement.d.ts b/types/fibjs/declare/XmlElement.d.ts index 8b55b1a625..a879cee139 100644 --- a/types/fibjs/declare/XmlElement.d.ts +++ b/types/fibjs/declare/XmlElement.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -296,6 +296,6 @@ declare class Class_XmlElement extends Class_XmlNode { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlNamedNodeMap.d.ts b/types/fibjs/declare/XmlNamedNodeMap.d.ts index ea852a624c..52920576cf 100644 --- a/types/fibjs/declare/XmlNamedNodeMap.d.ts +++ b/types/fibjs/declare/XmlNamedNodeMap.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -63,6 +63,6 @@ declare class Class_XmlNamedNodeMap extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlNode.d.ts b/types/fibjs/declare/XmlNode.d.ts index efab8bd60e..def8e0f59c 100644 --- a/types/fibjs/declare/XmlNode.d.ts +++ b/types/fibjs/declare/XmlNode.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -310,6 +310,6 @@ declare class Class_XmlNode extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlNodeList.d.ts b/types/fibjs/declare/XmlNodeList.d.ts index df0abeb83b..40934cfdc5 100644 --- a/types/fibjs/declare/XmlNodeList.d.ts +++ b/types/fibjs/declare/XmlNodeList.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -52,6 +52,6 @@ declare class Class_XmlNodeList extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlProcessingInstruction.d.ts b/types/fibjs/declare/XmlProcessingInstruction.d.ts index b9d903d977..a00cbab76a 100644 --- a/types/fibjs/declare/XmlProcessingInstruction.d.ts +++ b/types/fibjs/declare/XmlProcessingInstruction.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -54,6 +54,6 @@ declare class Class_XmlProcessingInstruction extends Class_XmlNode { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/XmlText.d.ts b/types/fibjs/declare/XmlText.d.ts index b950de3f1d..4236641c07 100644 --- a/types/fibjs/declare/XmlText.d.ts +++ b/types/fibjs/declare/XmlText.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -43,6 +43,6 @@ declare class Class_XmlText extends Class_XmlCharacterData { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/ZipFile.d.ts b/types/fibjs/declare/ZipFile.d.ts index 69cff23908..842d518382 100644 --- a/types/fibjs/declare/ZipFile.d.ts +++ b/types/fibjs/declare/ZipFile.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -163,6 +163,6 @@ declare class Class_ZipFile extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/ZmqSocket.d.ts b/types/fibjs/declare/ZmqSocket.d.ts index ffe2165928..0d2e0707fc 100644 --- a/types/fibjs/declare/ZmqSocket.d.ts +++ b/types/fibjs/declare/ZmqSocket.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -100,6 +100,6 @@ declare class Class_ZmqSocket extends Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/_test_env.d.ts b/types/fibjs/declare/_test_env.d.ts index 56bef11fa1..83ae06b28d 100644 --- a/types/fibjs/declare/_test_env.d.ts +++ b/types/fibjs/declare/_test_env.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ diff --git a/types/fibjs/declare/assert.d.ts b/types/fibjs/declare/assert.d.ts index 239c02eb98..2b42185436 100644 --- a/types/fibjs/declare/assert.d.ts +++ b/types/fibjs/declare/assert.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -789,6 +789,6 @@ declare module "assert" { export = assert } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/base32.d.ts b/types/fibjs/declare/base32.d.ts index 289e9799f8..516662ba9f 100644 --- a/types/fibjs/declare/base32.d.ts +++ b/types/fibjs/declare/base32.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -234,6 +234,6 @@ declare module "base32" { export = base32 } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/base64.d.ts b/types/fibjs/declare/base64.d.ts index 7112c938e6..c2316cb06d 100644 --- a/types/fibjs/declare/base64.d.ts +++ b/types/fibjs/declare/base64.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -235,6 +235,6 @@ declare module "base64" { export = base64 } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/base64vlq.d.ts b/types/fibjs/declare/base64vlq.d.ts index 983bc2ad47..7deb1bf810 100644 --- a/types/fibjs/declare/base64vlq.d.ts +++ b/types/fibjs/declare/base64vlq.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -245,6 +245,6 @@ declare module "base64vlq" { export = base64vlq } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/bson.d.ts b/types/fibjs/declare/bson.d.ts index 31079539f8..920a1ace79 100644 --- a/types/fibjs/declare/bson.d.ts +++ b/types/fibjs/declare/bson.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -234,6 +234,6 @@ declare module "bson" { export = bson } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/console.d.ts b/types/fibjs/declare/console.d.ts index 87fe5f2cc1..7a657ecd93 100644 --- a/types/fibjs/declare/console.d.ts +++ b/types/fibjs/declare/console.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -285,6 +285,31 @@ declare module "console" { export const NOTSET = 10; + /** + * + * @brief 输出级别,用以过滤输出信息,缺省为 NOTSET,全部输出。信息过滤之后才会输出给 add 设定的各个设备。 + * + * + * + */ + export const loglevel: number; + + /** + * + * @brief 查询终端每行字符数 + * + * + */ + export const width: number; + + /** + * + * @brief 查询终端行数 + * + * + */ + export const height: number; + @@ -887,6 +912,6 @@ declare module "console" { export = console } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/constants.d.ts b/types/fibjs/declare/constants.d.ts index 4c98aa29ce..76997275c9 100644 --- a/types/fibjs/declare/constants.d.ts +++ b/types/fibjs/declare/constants.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -212,6 +212,6 @@ declare module "constants" { export = constants } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/coroutine.d.ts b/types/fibjs/declare/coroutine.d.ts index 70a295cc8a..8a4c5ec049 100644 --- a/types/fibjs/declare/coroutine.d.ts +++ b/types/fibjs/declare/coroutine.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -205,6 +205,39 @@ declare module "coroutine" { module coroutine { + /** + * + * @brief 返回当前正在运行的全部 fiber 数组 + * + * + */ + export const fibers: any[]; + + /** + * + * @brief 查询和设置空闲 Fiber 数量,服务器抖动较大时可适度增加空闲 Fiber 数量。缺省为 256 + * + * + */ + export const spareFibers: number; + + /** + * + * @brief 查询当前 vm 编号 + * + * + */ + export const vmid: number; + + /** + * + * @brief 修改和查询本 vm 的输出级别,用以过滤输出信息,缺省为 console.NOTSET,全部输出 + * + * + * + */ + export const loglevel: number; + /** * @@ -338,6 +371,6 @@ declare module "coroutine" { export = coroutine } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/crypto.d.ts b/types/fibjs/declare/crypto.d.ts index 18be4fbabc..9dcea20fa0 100644 --- a/types/fibjs/declare/crypto.d.ts +++ b/types/fibjs/declare/crypto.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -601,6 +601,6 @@ declare module "crypto" { export = crypto } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/db.d.ts b/types/fibjs/declare/db.d.ts index 5e69a8489e..04cc2f101a 100644 --- a/types/fibjs/declare/db.d.ts +++ b/types/fibjs/declare/db.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -340,6 +340,6 @@ declare module "db" { export = db } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/dgram.d.ts b/types/fibjs/declare/dgram.d.ts index a8004536e2..e925eac7af 100644 --- a/types/fibjs/declare/dgram.d.ts +++ b/types/fibjs/declare/dgram.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -289,6 +289,6 @@ declare module "dgram" { export = dgram } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/dns.d.ts b/types/fibjs/declare/dns.d.ts index 80a8d5fb32..c2b802cb5d 100644 --- a/types/fibjs/declare/dns.d.ts +++ b/types/fibjs/declare/dns.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -234,6 +234,6 @@ declare module "dns" { export = dns } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/encoding.d.ts b/types/fibjs/declare/encoding.d.ts index 3b02a36c47..86db5533ac 100644 --- a/types/fibjs/declare/encoding.d.ts +++ b/types/fibjs/declare/encoding.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -341,6 +341,6 @@ declare module "encoding" { export = encoding } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/fs.d.ts b/types/fibjs/declare/fs.d.ts index 4fbc6988ed..ec22c54c3d 100644 --- a/types/fibjs/declare/fs.d.ts +++ b/types/fibjs/declare/fs.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -229,6 +229,14 @@ declare module "fs" { export const SEEK_END = 2; + /** + * + * ! fs模块的常量对象 + * + * + */ + export const constants: Object; + @@ -643,6 +651,6 @@ declare module "fs" { export = fs } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/gd.d.ts b/types/fibjs/declare/gd.d.ts index 5629834b34..843e74f1e9 100644 --- a/types/fibjs/declare/gd.d.ts +++ b/types/fibjs/declare/gd.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -582,6 +582,6 @@ declare module "gd" { export = gd } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/global.d.ts b/types/fibjs/declare/global.d.ts index 4ab9eb1713..3c58e8289c 100644 --- a/types/fibjs/declare/global.d.ts +++ b/types/fibjs/declare/global.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -211,6 +211,46 @@ declare module "global" { module global { + /** + * + * @brief Worker 宿主对象,仅在 Worker 入口脚本有效 + * + * + */ + export const Master: Class_Worker; + + /** + * + * @brief 全局对象 + * + * + */ + export const global: Object; + + /** + * + * @brief 获取当前脚本的运行参数,启动 js 获取进程启动参数,run 执行的脚本获取传递的参数 + * + * + */ + export const argv: any[]; + + /** + * + * @brief 当前脚本文件名 + * + * + */ + export const __filename: string; + + /** + * + * @brief 当前脚本所在目录 + * + * + */ + export const __dirname: string; + /** * @@ -508,6 +548,6 @@ declare module "global" { export = global } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/gui.d.ts b/types/fibjs/declare/gui.d.ts index cacc474dd4..e2522b8331 100644 --- a/types/fibjs/declare/gui.d.ts +++ b/types/fibjs/declare/gui.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -299,6 +299,6 @@ declare module "gui" { export = gui } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/hash.d.ts b/types/fibjs/declare/hash.d.ts index 4058086545..a51aa76e34 100644 --- a/types/fibjs/declare/hash.d.ts +++ b/types/fibjs/declare/hash.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -517,6 +517,6 @@ declare module "hash" { export = hash } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/hex.d.ts b/types/fibjs/declare/hex.d.ts index b05e3cf7bb..a8254c6de6 100644 --- a/types/fibjs/declare/hex.d.ts +++ b/types/fibjs/declare/hex.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -234,6 +234,6 @@ declare module "hex" { export = hex } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/http.d.ts b/types/fibjs/declare/http.d.ts index f558303870..2712b08370 100644 --- a/types/fibjs/declare/http.d.ts +++ b/types/fibjs/declare/http.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -196,7 +196,7 @@ /** module Or Internal Object */ /** - * @brief 超文本传输协议模块,用以支持 http 协议处理,模块别名:https + * @brief 超文本传输协议模块,用以支持 http 协议处理 * @detail */ declare module "http" { @@ -205,6 +205,54 @@ declare module "http" { module http { + /** + * + * @brief 返回http客户端的 HttpCookie 对象列表 + * + * + */ + export const cookies: any[]; + + /** + * + * @brief 查询和设置超时时间 + * + * + */ + export const timeout: number; + + /** + * + * @brief cookie功能开关,默认开启 + * + * + */ + export const enableCookie: boolean; + + /** + * + * @brief 自动redirect功能开关,默认开启 + * + * + */ + export const autoRedirect: boolean; + + /** + * + * @brief 查询和设置 body 最大尺寸,以 MB 为单位,缺省为 -1,不限制尺寸 + * + * + */ + export const maxBodySize: number; + + /** + * + * @brief 查询和设置 http 请求中的浏览器标识 + * + * + */ + export const userAgent: string; + /** * @@ -436,6 +484,6 @@ declare module "http" { export = http } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/iconv.d.ts b/types/fibjs/declare/iconv.d.ts index aa431209d3..443ae25e21 100644 --- a/types/fibjs/declare/iconv.d.ts +++ b/types/fibjs/declare/iconv.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -247,6 +247,6 @@ declare module "iconv" { export = iconv } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/index.d.ts b/types/fibjs/declare/index.d.ts index 949a96997d..53be0766e3 100644 --- a/types/fibjs/declare/index.d.ts +++ b/types/fibjs/declare/index.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -66,41 +66,26 @@ import _Global from 'global'; import _Process from 'process'; -// declare const process: typeof _Process; -// declare const global: typeof _Global; -// declare const __filename: string; -// declare const __dirname: string; -// declare const require: typeof _Global.require; - type GlobalExportsType = any; interface ModuleType { exports: GlobalExportsType; } -type O_Process = typeof _Process -interface RealProcess extends O_Process { - env: { - [key: string]: string; - } -} - declare global { var exports: GlobalExportsType; const module: ModuleType; - const __filename: string; - const __dirname: string; - const process: RealProcess; - const global: typeof _Global; - - const Buffer: typeof Class_Buffer; - const Int64: typeof Class_Int64; + const Buffer: typeof _Global.Buffer + const Int64: typeof _Global.Int64 /** const console: console; */ - /** const process: process; */ - const Master: typeof Class_Worker; - /** const global: Object; */ + const process: typeof _Global.process + const Master: typeof _Global.Master + const global: typeof _Global.global /** const run: null; */ const require: typeof _Global.require + const argv: typeof _Global.argv + const __filename: typeof _Global.__filename + const __dirname: typeof _Global.__dirname /** const setTimeout: Timer; */ /** const clearTimeout: null; */ /** const setInterval: Timer; */ @@ -111,6 +96,6 @@ declare global { /** const clearImmediate: null; */ const GC: typeof _Global.GC const repl: typeof _Global.repl -} +} /** end of `declare global` */ diff --git a/types/fibjs/declare/io.d.ts b/types/fibjs/declare/io.d.ts index e0886c95ef..ff9f884f28 100644 --- a/types/fibjs/declare/io.d.ts +++ b/types/fibjs/declare/io.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -254,6 +254,6 @@ declare module "io" { export = io } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/json.d.ts b/types/fibjs/declare/json.d.ts index 0dfba0a3d5..f90b2d9a4b 100644 --- a/types/fibjs/declare/json.d.ts +++ b/types/fibjs/declare/json.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -234,6 +234,6 @@ declare module "json" { export = json } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/mq.d.ts b/types/fibjs/declare/mq.d.ts index 21e4a5a25e..4f2af5d198 100644 --- a/types/fibjs/declare/mq.d.ts +++ b/types/fibjs/declare/mq.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -302,6 +302,6 @@ declare module "mq" { export = mq } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/net.d.ts b/types/fibjs/declare/net.d.ts index f9d9c222c9..831b958124 100644 --- a/types/fibjs/declare/net.d.ts +++ b/types/fibjs/declare/net.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -391,6 +391,6 @@ declare module "net" { export = net } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/object.d.ts b/types/fibjs/declare/object.d.ts index c6f46e8ec9..6c1b2019e0 100644 --- a/types/fibjs/declare/object.d.ts +++ b/types/fibjs/declare/object.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -49,6 +49,6 @@ declare class Class__object { } /** endof class */ -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/os.d.ts b/types/fibjs/declare/os.d.ts index bf8244203e..d98d2b58d5 100644 --- a/types/fibjs/declare/os.d.ts +++ b/types/fibjs/declare/os.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -205,6 +205,30 @@ declare module "os" { module os { + /** + * + * @brief 查询运行环境当前时区 + * + * + */ + export const timezone: number; + + /** + * + * @brief 查询当前运行环境行结尾标识,posix:\"\\n\";windows:\"\\r\\n\" + * + * + */ + export const EOL: string; + + /** + * + * @brief 查询当前运行执行文件完整路径 + * + * + */ + export const execPath: string; + /** * @@ -452,6 +476,6 @@ declare module "os" { export = os } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/path.d.ts b/types/fibjs/declare/path.d.ts index ac33e6db2c..2764664778 100644 --- a/types/fibjs/declare/path.d.ts +++ b/types/fibjs/declare/path.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -205,6 +205,42 @@ declare module "path" { module path { + /** + * + * @brief 查询当前操作系统的路径分割字符,posix 返回 '/', windows 返回 '\\' + * + * + * + */ + export const sep: string; + + /** + * + * @brief 查询当前操作系统的多路径组合字符,posix 返回 ':', windows 返回 ';' + * + * + * + */ + export const delimiter: string; + + /** + * + * @brief posix 实现,参见 path_posix + * + * + * + */ + export const posix: Object; + + /** + * + * @brief windows 实现,参见 path_win32 + * + * + * + */ + export const win32: Object; + @@ -321,6 +357,6 @@ declare module "path" { export = path } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/path_posix.d.ts b/types/fibjs/declare/path_posix.d.ts index afc2cf132b..e28fbfee0a 100644 --- a/types/fibjs/declare/path_posix.d.ts +++ b/types/fibjs/declare/path_posix.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -205,6 +205,42 @@ declare module "path_posix" { module path_posix { + /** + * + * @brief 查询当前操作系统的路径分割字符,posix 返回 '/', windows 返回 '\\' + * + * + * + */ + export const sep: string; + + /** + * + * @brief 查询当前操作系统的多路径组合字符,posix 返回 ':', windows 返回 ';' + * + * + * + */ + export const delimiter: string; + + /** + * + * @brief posix 实现,参见 path_posix + * + * + * + */ + export const posix: Object; + + /** + * + * @brief windows 实现,参见 path_win32 + * + * + * + */ + export const win32: Object; + @@ -321,6 +357,6 @@ declare module "path_posix" { export = path_posix } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/path_win32.d.ts b/types/fibjs/declare/path_win32.d.ts index 8cb0812a0e..80f236ba50 100644 --- a/types/fibjs/declare/path_win32.d.ts +++ b/types/fibjs/declare/path_win32.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -205,6 +205,42 @@ declare module "path_win32" { module path_win32 { + /** + * + * @brief 查询当前操作系统的路径分割字符,posix 返回 '/', windows 返回 '\\' + * + * + * + */ + export const sep: string; + + /** + * + * @brief 查询当前操作系统的多路径组合字符,posix 返回 ':', windows 返回 ';' + * + * + * + */ + export const delimiter: string; + + /** + * + * @brief posix 实现,参见 path_posix + * + * + * + */ + export const posix: Object; + + /** + * + * @brief windows 实现,参见 path_win32 + * + * + * + */ + export const win32: Object; + @@ -321,6 +357,6 @@ declare module "path_win32" { export = path_win32 } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/process.d.ts b/types/fibjs/declare/process.d.ts index eebbf49c2c..669eff12d2 100644 --- a/types/fibjs/declare/process.d.ts +++ b/types/fibjs/declare/process.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -205,6 +205,102 @@ declare module "process" { module process { + /** + * + * @brief 返回当前进程的命令行参数 + * + * + */ + export const argv: any[]; + + /** + * + * @brief 返回当前进程的特殊命令行参数,这些参数被 fibjs 用于设置运行环境 + * + * + */ + export const execArgv: any[]; + + /** + * + * @brief 返回 fibjs 版本字符串 + * + * + */ + export const version: string; + + /** + * + * @brief 返回 fibjs 及组件的版本信息 + * + * + */ + export const versions: Object; + + /** + * + * @brief 查询当前运行执行文件完整路径 + * + * + */ + export const execPath: string; + + /** + * + * @brief 查询当前进程的环境变量 + * + * + */ + export const env: Object; + + /** + * + * @brief 查询当前 cpu 环境,可能的结果为 'amd64', 'arm', 'arm64', 'ia32' + * + * + */ + export const arch: string; + + /** + * + * @brief 查询当前平台名称,可能的结果为 'darwin', 'freebsd', 'linux', 或 'win32' + * + * + */ + export const platform: string; + + /** + * + * @brief 查询当前进程标准输入对象 + * + * + */ + export const stdin: Class_File; + + /** + * + * @brief 查询当前进程标准输出对象 + * + * + */ + export const stdout: Class_File; + + /** + * + * @brief 查询当前进程标准错误输出对象 + * + * + */ + export const stderr: Class_File; + + /** + * + * @brief 查询和设置当前进程的退出码 + * + * + */ + export const exitCode: number; + @@ -460,6 +556,6 @@ declare module "process" { export = process } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/profiler.d.ts b/types/fibjs/declare/profiler.d.ts index e6f7345927..36a89b2644 100644 --- a/types/fibjs/declare/profiler.d.ts +++ b/types/fibjs/declare/profiler.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -435,6 +435,6 @@ declare module "profiler" { export = profiler } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/punycode.d.ts b/types/fibjs/declare/punycode.d.ts index c33938dd48..2d2e423bb7 100644 --- a/types/fibjs/declare/punycode.d.ts +++ b/types/fibjs/declare/punycode.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -256,6 +256,6 @@ declare module "punycode" { export = punycode } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/querystring.d.ts b/types/fibjs/declare/querystring.d.ts index c2a9e0284f..9010d119e5 100644 --- a/types/fibjs/declare/querystring.d.ts +++ b/types/fibjs/declare/querystring.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -262,6 +262,6 @@ declare module "querystring" { export = querystring } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/registry.d.ts b/types/fibjs/declare/registry.d.ts index 99e9cf7bb7..3190eaf5d5 100644 --- a/types/fibjs/declare/registry.d.ts +++ b/types/fibjs/declare/registry.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -381,6 +381,6 @@ declare module "registry" { export = registry } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/ssl.d.ts b/types/fibjs/declare/ssl.d.ts index 6fbdabd87c..2799f59be3 100644 --- a/types/fibjs/declare/ssl.d.ts +++ b/types/fibjs/declare/ssl.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -196,7 +196,7 @@ /** module Or Internal Object */ /** - * @brief ssl/tls 模块,模块别名:tls + * @brief ssl/tls 模块 * @detail */ declare module "ssl" { @@ -293,6 +293,38 @@ declare module "ssl" { export const tls1_2 = 3; + /** + * + * @brief 全局证书,用于 ssl 客户端模式验证服务器证书 + * + * + */ + export const ca: Class_X509Cert; + + /** + * + * @brief 设定证书验证模式,缺省为 VERIFY_REQUIRED + * + * + */ + export const verification: number; + + /** + * + * @brief 设定最低版本支持,缺省 ssl3 + * + * + */ + export const min_version: number; + + /** + * + * @brief 设定最高版本支持,缺省 tls1_1 + * + * + */ + export const max_version: number; + /** * @@ -371,6 +403,6 @@ declare module "ssl" { export = ssl } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/string_decoder.d.ts b/types/fibjs/declare/string_decoder.d.ts index 233ab0c76e..22b4a8aed6 100644 --- a/types/fibjs/declare/string_decoder.d.ts +++ b/types/fibjs/declare/string_decoder.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -221,6 +221,6 @@ declare module "string_decoder" { export = string_decoder } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/test.d.ts b/types/fibjs/declare/test.d.ts index 5c4b539a14..c3f7d36456 100644 --- a/types/fibjs/declare/test.d.ts +++ b/types/fibjs/declare/test.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -211,6 +211,15 @@ declare module "test" { module test { + /** + * + * @brief 设置和查询慢速测试警告阀值,以 ms 为单位,缺省为 75 + * + * + * + */ + export const slow: number; + /** * @@ -352,6 +361,6 @@ declare module "test" { export = test } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/timers.d.ts b/types/fibjs/declare/timers.d.ts index 158dcc8f84..7469a7ea68 100644 --- a/types/fibjs/declare/timers.d.ts +++ b/types/fibjs/declare/timers.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -317,6 +317,6 @@ declare module "timers" { export = timers } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/tty.d.ts b/types/fibjs/declare/tty.d.ts index bb35dc9195..c2a20d7d2f 100644 --- a/types/fibjs/declare/tty.d.ts +++ b/types/fibjs/declare/tty.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -223,6 +223,6 @@ declare module "tty" { export = tty } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/url.d.ts b/types/fibjs/declare/url.d.ts index 5a2706abfd..7728d433a2 100644 --- a/types/fibjs/declare/url.d.ts +++ b/types/fibjs/declare/url.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -236,6 +236,6 @@ declare module "url" { export = url } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/util.d.ts b/types/fibjs/declare/util.d.ts index e49ae9feae..6998b4aab1 100644 --- a/types/fibjs/declare/util.d.ts +++ b/types/fibjs/declare/util.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -969,6 +969,6 @@ declare module "util" { export = util } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/uuid.d.ts b/types/fibjs/declare/uuid.d.ts index 7300b8f875..b891509800 100644 --- a/types/fibjs/declare/uuid.d.ts +++ b/types/fibjs/declare/uuid.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -237,6 +237,14 @@ declare module "uuid" { export const X509 = 3; + /** + * + * @brief 查询和修改 Snowflake 算法的主机 id + * + * + */ + export const hostID: number; + @@ -298,6 +306,6 @@ declare module "uuid" { export = uuid } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/vm.d.ts b/types/fibjs/declare/vm.d.ts index b9615198d5..6cb2c89ead 100644 --- a/types/fibjs/declare/vm.d.ts +++ b/types/fibjs/declare/vm.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -221,6 +221,6 @@ declare module "vm" { export = vm } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/ws.d.ts b/types/fibjs/declare/ws.d.ts index 78ab282d97..e31944594a 100644 --- a/types/fibjs/declare/ws.d.ts +++ b/types/fibjs/declare/ws.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -322,6 +322,6 @@ declare module "ws" { export = ws } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/xml.d.ts b/types/fibjs/declare/xml.d.ts index 5526a84e5c..454d7defe5 100644 --- a/types/fibjs/declare/xml.d.ts +++ b/types/fibjs/declare/xml.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -328,6 +328,6 @@ declare module "xml" { export = xml } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/zip.d.ts b/types/fibjs/declare/zip.d.ts index 0aa19eaed4..45c87abb46 100644 --- a/types/fibjs/declare/zip.d.ts +++ b/types/fibjs/declare/zip.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -278,6 +278,6 @@ declare module "zip" { export = zip } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/zlib.d.ts b/types/fibjs/declare/zlib.d.ts index 42e7236f5e..049d70f365 100644 --- a/types/fibjs/declare/zlib.d.ts +++ b/types/fibjs/declare/zlib.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -508,6 +508,6 @@ declare module "zlib" { export = zlib } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ diff --git a/types/fibjs/declare/zmq.d.ts b/types/fibjs/declare/zmq.d.ts index e6ef8fde76..11f119e8f7 100644 --- a/types/fibjs/declare/zmq.d.ts +++ b/types/fibjs/declare/zmq.d.ts @@ -3,7 +3,7 @@ * This file was automatically generated with idlc.js * * build info: * * - fibjs : 0.25.0 * - * - date : Jun 11 2018 14:17:22 * + * - date : Jun 12 2018 07:22:40 * * * ***************************************************************************/ @@ -309,6 +309,6 @@ declare module "zmq" { export = zmq } -/** } /** endof `module Or Internal Object` */ +/** endof `module Or Internal Object` */ From 3c8498ab7b2c099d3babf3880ebef5e2b8b6c881 Mon Sep 17 00:00:00 2001 From: L2jLiga Date: Fri, 22 Jun 2018 02:45:21 +0700 Subject: [PATCH 64/65] Improved typing for http-rx --- types/http-rx/http-rx-tests.ts | 18 ++++++------------ types/http-rx/index.d.ts | 14 ++++++++------ types/http-rx/tsconfig.json | 3 ++- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/types/http-rx/http-rx-tests.ts b/types/http-rx/http-rx-tests.ts index 2cd581aae6..082585fdf9 100644 --- a/types/http-rx/http-rx-tests.ts +++ b/types/http-rx/http-rx-tests.ts @@ -1,20 +1,14 @@ import { Observable } from 'rxjs'; import httpRx = require('http-rx'); -httpRx.get('', {}).subscribe(() => {}); -httpRx.get('', {}).pipe(); +const httpGet: Observable = httpRx.get(''); -httpRx.head('', {}).subscribe(() => {}); -httpRx.head('', {}).pipe(); +const httpHead: Observable = httpRx.head(''); -httpRx.patch('', {}).subscribe(() => {}); -httpRx.patch('', {}).pipe(); +const httpPatch: Observable = httpRx.patch(''); -httpRx.post('', {}).subscribe(() => {}); -httpRx.post('', {}).pipe(); +const httpPost: Observable = httpRx.post(''); -httpRx.put('', {}).subscribe(() => {}); -httpRx.put('', {}).pipe(); +const httpPut: Observable<{}> = httpRx.put(''); -httpRx.delete('', {}).subscribe(() => {}); -httpRx.delete('', {}).pipe(); +const httpDelete: Observable = httpRx.delete(''); diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts index 7cd130e30a..3b0c734fb0 100644 --- a/types/http-rx/index.d.ts +++ b/types/http-rx/index.d.ts @@ -2,21 +2,23 @@ // Project: https://github.com/JasonRammoray/HttpRx // Definitions by: L2jLiga // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 import { Observable } from 'rxjs'; +import request = require('request'); interface HttpRx { - get(url: string, options: any): Observable; + get(url: string, options?: request.CoreOptions): Observable; - head(url: string, options: any): Observable; + head(url: string, options?: request.CoreOptions): Observable; - patch(url: string, options: any): Observable; + patch(url: string, options?: request.CoreOptions): Observable; - post(url: string, options: any): Observable; + post(url: string, options?: request.CoreOptions): Observable; - put(url: string, options: any): Observable; + put(url: string, options?: request.CoreOptions): Observable; - 'delete'(url: string, options: any): Observable; + 'delete'(url: string, options?: request.CoreOptions): Observable; } declare const httpRx: HttpRx; diff --git a/types/http-rx/tsconfig.json b/types/http-rx/tsconfig.json index fa115a5617..025bdc0c3e 100644 --- a/types/http-rx/tsconfig.json +++ b/types/http-rx/tsconfig.json @@ -6,6 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, + "strictFunctionTypes": true, "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ @@ -14,7 +15,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true + "esModuleInterop": true }, "files": [ "index.d.ts", From 7bb66a4c3d263f846093526e90b7edd8dfd70a99 Mon Sep 17 00:00:00 2001 From: Duong Tran Date: Fri, 22 Jun 2018 07:55:57 +1000 Subject: [PATCH 65/65] improve static router props context (#26541) --- types/react-router/index.d.ts | 8 +++++++- .../examples-from-react-router-website/StaticRouter.tsx | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/types/react-router/index.d.ts b/types/react-router/index.d.ts index 5ae92ababc..2b1e2f97c1 100644 --- a/types/react-router/index.d.ts +++ b/types/react-router/index.d.ts @@ -17,6 +17,7 @@ // Youen Toupin // Rahul Raina // Maksim Sharipov +// Duong Tran // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -86,10 +87,15 @@ export interface RouterProps { } export class Router extends React.Component { } +export interface StaticRouterContext { + url?: string; + action?: 'PUSH' | 'REPLACE'; + location?: object; +} export interface StaticRouterProps { basename?: string; location?: string | object; - context?: object; + context?: StaticRouterContext; } export class StaticRouter extends React.Component { } diff --git a/types/react-router/test/examples-from-react-router-website/StaticRouter.tsx b/types/react-router/test/examples-from-react-router-website/StaticRouter.tsx index c9763bdda5..3dce9a5def 100644 --- a/types/react-router/test/examples-from-react-router-website/StaticRouter.tsx +++ b/types/react-router/test/examples-from-react-router-website/StaticRouter.tsx @@ -1,7 +1,8 @@ import * as React from 'react'; import { StaticRouter, Route } from 'react-router-dom'; +import { StaticRouterContext } from 'react-router'; -interface StaticContext { +interface StaticContext extends StaticRouterContext { statusCode?: number; }