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) { diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index be87ceed2c..18cc086ed8 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 @@ -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; diff --git a/types/connect-mongodb-session/connect-mongodb-session-tests.ts b/types/connect-mongodb-session/connect-mongodb-session-tests.ts new file mode 100644 index 0000000000..963be905c0 --- /dev/null +++ b/types/connect-mongodb-session/connect-mongodb-session-tests.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..61b0db83b2 --- /dev/null +++ b/types/connect-mongodb-session/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "baseUrl": "../", + "forceConsistentCasingInFileNames": true, + "lib": [ + "es6" + ], + "module": "commonjs", + "noEmit": true, + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "strictFunctionTypes": true, + "typeRoots": [ + "../" + ], + "types": [ + ] + }, + "files": [ + "connect-mongodb-session-tests.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 + } +} diff --git a/types/feathersjs__authentication-jwt/index.d.ts b/types/feathersjs__authentication-jwt/index.d.ts index ab6a7f6dbe..7a555071d9 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: typeof 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; 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` */ 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" + } +} diff --git a/types/http-rx/http-rx-tests.ts b/types/http-rx/http-rx-tests.ts new file mode 100644 index 0000000000..082585fdf9 --- /dev/null +++ b/types/http-rx/http-rx-tests.ts @@ -0,0 +1,14 @@ +import { Observable } from 'rxjs'; +import httpRx = require('http-rx'); + +const httpGet: Observable = httpRx.get(''); + +const httpHead: Observable = httpRx.head(''); + +const httpPatch: Observable = httpRx.patch(''); + +const httpPost: Observable = httpRx.post(''); + +const httpPut: Observable<{}> = httpRx.put(''); + +const httpDelete: Observable = httpRx.delete(''); diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts new file mode 100644 index 0000000000..3b0c734fb0 --- /dev/null +++ b/types/http-rx/index.d.ts @@ -0,0 +1,25 @@ +// Type definitions for http-rx 1.1 +// 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?: request.CoreOptions): Observable; + + head(url: string, options?: request.CoreOptions): Observable; + + patch(url: string, options?: request.CoreOptions): Observable; + + post(url: string, options?: request.CoreOptions): Observable; + + put(url: string, options?: request.CoreOptions): Observable; + + 'delete'(url: string, options?: request.CoreOptions): Observable; +} + +declare const httpRx: HttpRx; +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..025bdc0c3e --- /dev/null +++ b/types/http-rx/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true + }, + "files": [ + "index.d.ts", + "http-rx-tests.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" } diff --git a/types/intercom-client/Company.d.ts b/types/intercom-client/Company.d.ts new file mode 100644 index 0000000000..ee20d80863 --- /dev/null +++ b/types/intercom-client/Company.d.ts @@ -0,0 +1,33 @@ + +export interface 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..c0ed687a3c --- /dev/null +++ b/types/intercom-client/IntercomError.d.ts @@ -0,0 +1,14 @@ + +export interface IntercomError { + statusCode: number, + body: { + type: "error.list", + request_id: string, + errors: Array<{ + 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..c9c9fc3364 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; +export class ApiResponse extends IncomingMessage { + body: T; } +export 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,24 @@ 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; +} diff --git a/types/jquery-toast-plugin/index.d.ts b/types/jquery-toast-plugin/index.d.ts new file mode 100644 index 0000000000..48bff9ff44 --- /dev/null +++ b/types/jquery-toast-plugin/index.d.ts @@ -0,0 +1,31 @@ +// 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 +// 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; +} 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..d9a2889c9b --- /dev/null +++ b/types/jquery-toast-plugin/jquery-toast-plugin-tests.ts @@ -0,0 +1 @@ +$.toast({ text: "test" }); diff --git a/types/jquery-toast-plugin/tsconfig.json b/types/jquery-toast-plugin/tsconfig.json new file mode 100644 index 0000000000..95759d345b --- /dev/null +++ b/types/jquery-toast-plugin/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": 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" } diff --git a/types/knockout/index.d.ts b/types/knockout/index.d.ts index 5ac6943eb4..1340e22d8f 100644 --- a/types/knockout/index.d.ts +++ b/types/knockout/index.d.ts @@ -17,7 +17,7 @@ interface KnockoutComputedFunctions { } interface KnockoutObservableFunctions { - equalityComparer(a: any, b: any): boolean; + equalityComparer(a: T, b: T): boolean; } interface KnockoutObservableArrayFunctions { @@ -78,6 +78,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 { diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index 193efd25ae..7382dd91e6 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -218,19 +218,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`. diff --git a/types/nodegit/repository.d.ts b/types/nodegit/repository.d.ts index 71a6497585..20da9ce052 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. */ diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index eea1cd2bb0..b71c4a8e1c 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,62 @@ 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.
+ * + * In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the following information. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
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.
* * @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. */ 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. * @param messageObject Accepts a message from the dialog to deliver to the add-in. */ messageParent(messageObject: any): void; @@ -1230,7 +1282,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. @@ -1487,9 +1539,112 @@ 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. + * + * In the callback function passed to the setDataAsync method, 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.
* * @param data The data to be set in the current selection. Possible data types by host: * @@ -1505,7 +1660,7 @@ 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. */ setDataAsync(data: TableData | any, options?: SetBindingDataOptions, callback?: (result: AsyncResult) => void): void; } @@ -2208,23 +2363,50 @@ declare namespace Office { * Hosts: Access, Excel, PowerPoint, Project, Word * * Available in Requirement set: Selection - * - * The possible values for the 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` - * + * + * 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. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
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.
+ * * @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; @@ -2272,24 +2454,89 @@ declare namespace Office { * Hosts: Access, Excel, PowerPoint, Project, Word, Word Online * * Available in Requirement set: Selection + * + * **Application-specific behaviors** + * + * The following application-specific actions apply when writing data to a selection. + * + * - Word + * + * - If there is no selection and the insertion point is at a valid location, the specified `data` is inserted at the insertion point as follows: + * + * - If `data` is a string, the specified text is inserted. + * + * - If `data` is an array of arrays ("matrix") or a TableData object, a new Word table is inserted. + * + * - If `data` is HTML, the specified HTML is inserted. (Important: If any of the HTML you insert is invalid, Word won't raise an error. Word will insert as much of the HTML as it can and omits any invalid data). + * + * - If `data` is Office Open XML, the specified XML is inserted. + * + * - If `data` is a base64 encoded image stream, the specified image is inserted. + * + * - If there is a selection, it will be replaced with the specified `data` following the same rules as above. + * + * - Insert images: Inserted images are placed inline. The imageLeft and imageTop parameters are ignored. The image aspect ratio is always locked. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio. + * + * - Excel + * + * - If a single cell is selected: + * + * - If `data` is a string, the specified text is inserted as the value of the current cell. + * + * - If `data` is an array of arrays ("matrix"), the specified set of rows and columns are inserted, if no other data in surrounding cells will be overwritten. + * + * - If `data` is a TableData object, a new Excel table with the specified set of rows and headers is inserted, if no other data in surrounding cells will be overwritten. + * + * - If multiple cells are selected and the shape does not match the shape of `data`, an error is returned. + * + * - If multiple cells are selected and the shape of the selection exactly matches the shape of `data`, the values of the selected cells are updated based on the values in `data`. + * + * - Insert images: Inserted images are floating. The position imageLeft and imageTop parameters are relative to currently selected cell(s). Negative imageLeft and imageTop values are allowed and possibly readjusted by Excel to position the image inside a worksheet. Image aspect ratio is locked unless both imageWidth and imageHeight parameters are provided. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio. + * + * - In all other cases, an error is returned. + * + * - Excel Online + * + * - In addition to the behaviors described for Excel above, the following limits apply when writing data in Excel Online. + * + * - The total number of cells you can write to a worksheet with 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. + * + * - PowerPoint + * + * - Inserted images are floating. The position imageLeft and imageTop parameters are optional but if provided, both should be present. If a single value is provided, it will be ignored. Negative imageLeft and imageTop values are allowed and can position an image outside of a slide. If no optional parameter is given and slide has a placeholder, the image will replace the placeholder in the slide. Image aspect ratio will be locked unless both imageWidth and imageHeight parameters are provided. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio. * + * @param data The data to be set. Either a string or {@link Office.CoercionType} value, 2d array or TableData object. + * * The possible CoercionTypes that can be used for the data parameter, or for the coercionType option, vary by host: * - * Office.CoercionType.Text: Excel, Word, PowerPoint + * - Office.CoercionType.Text: Excel, Word, PowerPoint * - * Office.CoercionType.Matrix: Excel, Word + * - Office.CoercionType.Matrix: Excel, Word * - * Office.CoercionType.Table: Access, Excel, Word + * - Office.CoercionType.Table: Access, Excel, Word * - * Office.CoercionType.Html: Word + * - Office.CoercionType.Html: Word * - * Office.CoercionType.Ooxml: Word + * - Office.CoercionType.Ooxml: Word * - * Office.CoercionType.Image: Excel, Word, PowerPoint - * - * @param data The data to be set. Either a string or {@link Office.CoercionType} value, 2d array or TableData object. + * - Office.CoercionType.Image: Excel, Word, PowerPoint + * + * If the value passed for `data` is: + * + * - A string: Plain text or anything that can be coerced to a string will be inserted. + * In Excel, you can also specify data as a valid formula to add that formula to the selected 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 Document.getSelectedDataAsync method on the selected 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"): Tabular data without headers will be inserted. 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"]] + * In Excel, you can also specify data as an array of arrays that contains valid formulas to add them to the selected cells. For example if no other data will be overwritten, setting data to [["=SUM(A1:A5)","=AVERAGE(A1:A5)"]] will add those two formulas to the selection. Just as when setting a formula on a single cell as "text", you can't read the added formulas (or any pre-existing formulas) after they have been set - you can only read the formulas' results. + * + * - A TableData object: A table with headers will be inserted. + * In Excel, 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 selected 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". + * * @param options Provides options for how to insert data to the selection. - * @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. + * The AsyncResult.value property always returns undefined because there is no object or data to retrieve. */ setSelectedDataAsync(data: string | TableData | any[][], options?: SetSelectedDataOptions, callback?: (result: AsyncResult) => void): void; /** @@ -2389,6 +2636,10 @@ declare namespace Office { * * @remarks * + * Hosts: PowerPoint, Word + * + * 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. * * In the callback function passed to the closeAsync method, you can use the properties of the AsyncResult object to return the following information. @@ -2416,16 +2667,16 @@ declare namespace Office { * * * - * 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 + * @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. * @@ -2452,11 +2703,8 @@ declare namespace Office { * * * - * 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 + * @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; } @@ -2518,8 +2766,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 +2798,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; /** @@ -2604,7 +2850,6 @@ declare namespace Office { * 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,8 +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. * - * In the callback function passed to the saveAsync method, you can use the properties of the AsyncResult object to return the following information. - * * * * @@ -2671,10 +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. + * @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; /** @@ -2897,10 +3141,37 @@ declare namespace Office { * Hosts: Excel * * Available in Requirement set: Not in a set + * + * In the callback function passed to the goToByIdAsync method, 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.
* * @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. + * + */ setTableOptionsAsync(tableOptions: any, options?: AsyncContextOptions, callback?: (result: AsyncResult) => void): void; } @@ -6745,7 +7016,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 +7948,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 { /** @@ -8360,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. @@ -8742,7 +9023,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 +9661,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 +10030,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 +10054,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 { /** @@ -13629,7 +13910,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; 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)); diff --git a/types/papaparse/index.d.ts b/types/papaparse/index.d.ts index d97a25010b..49dcdfdd95 100644 --- a/types/papaparse/index.d.ts +++ b/types/papaparse/index.d.ts @@ -1,9 +1,10 @@ -// Type definitions for PapaParse v4.1 +// Type definitions for PapaParse v4.5 // Project: https://github.com/mholt/PapaParse // Definitions by: Pedro Flemming // 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: typeof NODE_STREAM_INPUT, 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 */ 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. */ 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; /** 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; 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"`, 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]] 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; } 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 diff --git a/types/signale/index.d.ts b/types/signale/index.d.ts index d14660e5a9..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 @@ -56,11 +56,15 @@ declare namespace signale { underlineLabel?: boolean; /** Underline the logger message. */ underlineMessage?: boolean; + underlinePrefix?: boolean; + underlineSuffix?: boolean; + uppercaseLabel?: boolean; } interface SignaleOptions { /** Sets the configuration of an instance overriding any existing global or local configuration. */ config?: SignaleConfig; + disabled?: boolean; /** * Name of the scope. */ diff --git a/types/starwars-names/index.d.ts b/types/starwars-names/index.d.ts new file mode 100644 index 0000000000..54f4e17c3b --- /dev/null +++ b/types/starwars-names/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for starwars-names 1.6 +// Project: https://github.com/kentcdodds/starwars-names#readme +// Definitions by: Claas Ahlrichs +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export as namespace starwarsNames; +export const all: string[]; +export function random(): string; +export function random(number: number): string[]; diff --git a/types/starwars-names/starwars-names-tests.ts b/types/starwars-names/starwars-names-tests.ts new file mode 100644 index 0000000000..bb2f4dc232 --- /dev/null +++ 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); diff --git a/types/starwars-names/tsconfig.json b/types/starwars-names/tsconfig.json new file mode 100644 index 0000000000..009a9d6ef3 --- /dev/null +++ b/types/starwars-names/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": 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" } 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" +} 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, 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..0c4fe2498e --- /dev/null +++ b/types/suncalc/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": 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" } diff --git a/types/webpack-hot-client/index.d.ts b/types/webpack-hot-client/index.d.ts index c6e12cf4a5..c8e6500394 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 4.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,7 +48,7 @@ declare namespace WebpackHotClient { server?: net.Server; /** Webpack stats configuration */ stats?: webpack.Options.Stats; - /** Valid build targets */ + /** Webpack compile target */ validTargets?: string[]; } } 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 { diff --git a/types/wepy/app.d.ts b/types/wepy/app.d.ts index cc2636ed92..9389b0400f 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 */ +export type AddOn = "requestfix" | "promisify"; + +export 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; } 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,