diff --git a/angular-formly/angular-formly.d.ts b/angular-formly/angular-formly.d.ts index f42b35a89e..423e6ff9b3 100644 --- a/angular-formly/angular-formly.d.ts +++ b/angular-formly/angular-formly.d.ts @@ -101,13 +101,13 @@ declare module AngularFormly { type?: string; //expression types - onBlur?: string; - onChange?: string; - onClick?: string; - onFocus?: string; - onKeydown?: string; - onKeypress?: string; - onKeyup?: string; + onBlur?: string | IExpressionFunction; + onChange?: string | IExpressionFunction; + onClick?: string | IExpressionFunction; + onFocus?: string | IExpressionFunction; + onKeydown?: string | IExpressionFunction; + onKeypress?: string | IExpressionFunction; + onKeyup?: string | IExpressionFunction; //Bootstrap types label?: string; diff --git a/angular-odata-resources/angular-odata-resources-tests.ts b/angular-odata-resources/angular-odata-resources-tests.ts index 23286adc03..a9194b0067 100644 --- a/angular-odata-resources/angular-odata-resources-tests.ts +++ b/angular-odata-resources/angular-odata-resources-tests.ts @@ -174,6 +174,7 @@ var user = odataResourceClass.odata() .skip(10) .take(20) .orderBy("Name", "desc") + .transformUrl((s)=>s) .single(); user.$save(); diff --git a/angular-odata-resources/angular-odata-resources.d.ts b/angular-odata-resources/angular-odata-resources.d.ts index 65e7d26e25..d9c59ddf3b 100644 --- a/angular-odata-resources/angular-odata-resources.d.ts +++ b/angular-odata-resources/angular-odata-resources.d.ts @@ -281,6 +281,7 @@ declare module OData { constructor(callback: ProviderCallback); filter(operand1: any, operand2?: any, operand3?: any): Provider; orderBy(arg1: string, arg2?: string): Provider; + transformUrl(transformMethod : (url:string)=>string): Provider; take(amount: number): Provider; skip(amount: number): Provider; private execute(); diff --git a/angular-protractor/angular-protractor-tests.ts b/angular-protractor/angular-protractor-tests.ts index 0f98aead12..64bf8d6d6b 100644 --- a/angular-protractor/angular-protractor-tests.ts +++ b/angular-protractor/angular-protractor-tests.ts @@ -406,9 +406,19 @@ function TestElementArrayFinder() { elementArrayFinder.each(function(element: protractor.ElementFinder){ // nothing }); + stringPromise = elementArrayFinder.map(function(element: protractor.ElementFinder, index: number){ return 'abc'; - }) + }); + + stringPromise = elementArrayFinder.map(function(element: protractor.ElementFinder, index: number): string { + return 'abc'; + }); + + stringPromise = elementArrayFinder.map>(function(element: protractor.ElementFinder, index: number): webdriver.promise.Promise { + return element.getText(); + }); + elementArrayFinder = elementArrayFinder.filter(function(element: protractor.ElementFinder, index: number){ return element.getText().then((text: string) => { return text === "foo"; diff --git a/angular-protractor/angular-protractor.d.ts b/angular-protractor/angular-protractor.d.ts index 08f83e27d4..78158df9c0 100644 --- a/angular-protractor/angular-protractor.d.ts +++ b/angular-protractor/angular-protractor.d.ts @@ -992,6 +992,7 @@ declare module protractor { * of values returned by the map function. */ map(mapFn: (element: ElementFinder, index: number) => T): webdriver.promise.Promise; + map(mapFn: (element: ElementFinder, index: number) => T2): webdriver.promise.Promise; /** * Apply a filter function to each element within the ElementArrayFinder. Returns diff --git a/asana/asana-tests.ts b/asana/asana-tests.ts new file mode 100644 index 0000000000..050fbb36f2 --- /dev/null +++ b/asana/asana-tests.ts @@ -0,0 +1,104 @@ +/// +/// + +import * as asana from 'asana'; +import * as util from 'util'; + +let version: string = asana.VERSION; + +// https://github.com/Asana/node-asana#usage +// Usage + +var client = asana.Client.create().useAccessToken('my_access_token'); +client.users.me().then(function(me) { + console.log(me); +}); + +client = asana.Client.create({ + clientId: 123, + clientSecret: 'my_client_secret', + redirectUri: 'my_redirect_uri' +}); + +client.useOauth({ + credentials: 'my_access_token' +}); + +var credentials = { + // access_token: 'my_access_token', + refresh_token: 'my_refresh_token' +}; + +client.useOauth({ + credentials: credentials +}); + +// https://github.com/Asana/node-asana#collections +// Collections + +let tagId: string = null; +client.tasks.findByTag(tagId, { limit: 5 }).then((collection: any) => { + console.log(collection.data); + // [ .. array of up to 5 task objects .. ] + + client.tasks.findByTag(tagId).then((firstPage: any) => { + console.log(firstPage.data); + collection.nextPage().then((secondPage: any) => { + console.log(secondPage.data); + }); + }); +}); + +client.tasks.findByTag(tagId).then((collection: any) => { + // Fetch up to 200 tasks, using multiple pages if necessary + collection.fetch(200).then((tasks: any) => { + console.log(tasks); + }); +}); + +client.tasks.findByTag(tagId).then((collection: any) => { + collection.stream().on('data', (task: any) => { + console.log(task); + }); +}); + +// https://github.com/Asana/node-asana#examples +// Examples + +var Asana = asana; + +// Using the API key for basic authentication. This is reasonable to get +// started with, but Oauth is more secure and provides more features. +var client = Asana.Client.create().useBasicAuth(process.env.ASANA_API_KEY); + +client.users.me() + .then((user: any) => { + var userId = user.id; + // The user's "default" workspace is the first one in the list, though + // any user can have multiple workspaces so you can't always assume this + // is the one you want to work with. + var workspaceId = user.workspaces[0].id; + return client.tasks.findAll({ + assignee: userId, + workspace: workspaceId, + completed_since: 'now', + opt_fields: 'id,name,assignee_status,completed' + }); + }) + .then((response: any) => { + // There may be more pages of data, we could stream or return a promise + // to request those here - for now, let's just return the first page + // of items. + return response.data; + }) + .filter((task: any) => { + return task.assignee_status === 'today' || + task.assignee_status === 'new'; + }) + .then((list: any) => { + console.log(util.inspect(list, { + colors: true, + depth: null + })); + }); + diff --git a/asana/asana.d.ts b/asana/asana.d.ts new file mode 100644 index 0000000000..85e2027884 --- /dev/null +++ b/asana/asana.d.ts @@ -0,0 +1,2199 @@ +// Type definitions for node-asana 0.14.0 +// Project: https://github.com/Asana/node-asana +// Definitions by: Qubo +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// +/// + +declare module "asana" { + import * as Promise from 'bluebird'; + import {CoreOptions} from 'request'; + import * as request from 'request'; + + namespace asana { + var Client: ClientStatic; + + interface ClientStatic { + /** + * Constructs a Client with instances of all the resources using the dispatcher. + * It also keeps a reference to the dispatcher so that way the end user can have + * access to it. + * @class + * @classdesc A wrapper for the Asana API which is authenticated for one user + * @param {Dispatcher} dispatcher The request dispatcher to use + * @param {Object} options Options to configure the client + * @param {String} [clientId] ID of the client, required for Oauth + * @param {String} [clientSecret] Secret key, for some Oauth flows + * @param {String} [redirectUri] Default redirect URI for this client + * @param {String} [asanaBaseUrl] Base URL for Asana, for debugging + */ + (dispatcher: Dispatcher, options?: ClientOptions): asana.Client; + /** + * Creates a new client. + * @param {Object} options Options for specifying the client, see constructor. + */ + create(options?: ClientOptions): Client; + } + + /** Options to configure the client */ + interface ClientOptions extends DispatcherOptions { + clientId?: string|number; + clientSecret?: string; + redirectUri?: string; + asanaBaseUrl?: string; + } + + interface Client { + /** + * Ensures the client is authorized to make requests. Kicks off the + * configured Oauth flow, if any. + * + * @returns {Promise} A promise that resolves to this client when + * authorization is complete. + */ + authorize(): Promise; + + /** + * Configure the Client to use a user's API Key and then authenticate + * through HTTP Basic Authentication. This should only be done for testing, + * as requests using Oauth can provide more security, higher rate limits, and + * more features. + * @param {String} apiKey The Asana Api Key of the user + * @return {Client} this + * @param apiKey + * @return + */ + useBasicAuth(apiKey: string): this; + + /** + * Configure the client to authenticate using a Personal Access Token. + * @param {String} accessToken The Personal Access Token to use for + * authenticating requests. + * @return {Client} this + * @param accessToken + * @return + */ + useAccessToken(accessToken: string): this; + + /** + * Configure the client to authenticate via Oauth. Credentials can be + * supplied, or they can be obtained by running an Oauth flow. + * @param {Object} options Options for Oauth. Includes any options for + * the selected flow. + * @option {Function} [flowType] Type of OauthFlow to use to obtain user + * authorization. Defaults to autodetect based on environment. + * @option {Object} [credentials] Credentials to use; no flow required to + * obtain authorization. This object should at a minimum contain an + * `access_token` string field. + * @return {Client} this + * @param options + * @return + */ + useOauth(options?: auth.OauthAuthenticatorOptions): this; + + /** + * The internal dispatcher. This is mostly used by the resources but provided + * for custom requests to the API or API features that have not yet been added + * to the client. + * @type {Dispatcher} + */ + dispatcher: Dispatcher; + /** + * An instance of the Attachments resource. + * @type {Attachments} + */ + attachments: resources.Attachments; + /** + * An instance of the Events resource. + * @type {Events} + */ + events: resources.Events; + /** + * An instance of the Projects resource. + * @type {Projects} + */ + projects: resources.Projects; + /** + * An instance of the Stories resource. + * @type {Stories} + */ + stories: resources.Stories; + /** + * An instance of the Tags resource. + * @type {Tags} + */ + tags: resources.Tags; + /** + * An instance of the Tasks resource. + * @type {Tasks} + */ + tasks: resources.Tasks; + /** + * An instance of the Teams resource. + * @type {Teams} + */ + teams: resources.Teams; + /** + * An instance of the Users resource. + * @type {Users} + */ + users: resources.Users; + /** + * An instance of the Workspaces resource. + * @type {Workspaces} + */ + workspaces: resources.Workspaces; + /** + * Store off Oauth info. + */ + app: auth.App; + } + + var Dispatcher: DispatcherStatic; + + interface DispatcherStatic { + /** + * Creates a dispatcher which will act as a basic wrapper for making HTTP + * requests to the API, and handle authentication. + * @class + * @classdesc A HTTP wrapper for the Asana API + * @param {Object} options for default behavior of the Dispatcher + * @option {Authenticator} [authenticator] Object to use for authentication. + * Can also be set later with `setAuthenticator`. + * @option {String} [retryOnRateLimit] Automatically handle `RateLimitEnforced` + * errors by sleeping and retrying after the waiting period. + * @option {Function} [handleUnauthorized] Automatically handle + * `NoAuthorization` with the callback. If the callback returns `true` + * (or a promise resolving to `true), will retry the request. + * @option {String} [asanaBaseUrl] Base URL for Asana, for debugging + * @option {Number} [requestTimeout] Timeout (in milliseconds) to wait for the + * request to finish. + */ + new (options?: DispatcherOptions): Dispatcher; + + /** + * Default handler for requests that are considered unauthorized. + * Requests that the authenticator try to refresh its credentials if + * possible. + * @return {Promise} True iff refresh was successful, false if not. + * @return + */ + maybeReauthorize(): Promise; + + /** + * The relative API path for the current version of the Asana API. + * @type {String} + */ + API_PATH : string; + } + + interface DispatcherOptions { + authenticator?: auth.Authenticator; + retryOnRateLimit?: boolean; + handleUnauthorized?: () => boolean|Promise; + requestTimeout?: string; + } + + interface Dispatcher { + /** + * Creates an Asana API Url by concatenating the ROOT_URL with path provided. + * @param {String} path The path + * @return {String} The url + * @param path + * @return + */ + url(path: string): string; + + /** + * Configure the authentication mechanism to use. + * @returns {Dispatcher} this + * @param authenticator + * @return + */ + setAuthenticator(authenticator: auth.Authenticator): this; + + /** + * Ensure the dispatcher is authorized to make requests. Call this before + * making any API requests. + * + * @returns {Promise} Resolves when the dispatcher is authorized, rejected if + * there was a problem authorizing. + * @return + */ + authorize(): Promise; + + /** + * Dispatches a request to the Asana API. The request parameters are passed to + * the request module. + * @param {Object} params The params for request + * @param {Object} [dispatchOptions] Options for handling request/response + * @return {Promise} The response for the request + * @param params + * @param dispatchOptions? + * @return + */ + dispatch(params: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a GET request to the Asana API. + * @param {String} path The path of the API + * @param {Object} [query] The query params + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `dispatch`. + * @return {Promise} The response for the request + * @param path + * @param query? + * @param dispatchOptions? + * @return + */ + get(path: string, query?: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a POST request to the Asana API. + * @param {String} path The path of the API + * @param {Object} data The data to be sent + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `dispatch`. + * @return {Promise} The response for the request + * @param path + * @param data + * @param dispatchOptions? + * @return + */ + post(path: string, data: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a PUT request to the Asana API. + * @param {String} path The path of the API + * @param {Object} data The data to be sent + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `dispatch`. + * @return {Promise} The response for the request + * @param path + * @param data + * @param dispatchOptions? + * @return + */ + put(path: string, data: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a DELETE request to the Asana API. + * @param {String} path The path of the API + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `dispatch`. + * @return {Promise} The response for the request + * @param path + * @param dispatchOptions? + * @return + */ + delete(path: string, dispatchOptions?: any): Promise; + + /** + * The base URL for Asana + * @type {String} + */ + asanaBaseUrl : string; + + /** + * Whether requests should be automatically retried if rate limited. + * @type {Boolean} + */ + retryOnRateLimit : boolean; + + /** + * Handler for unauthorized requests which may seek reauthorization. + * Default behavior is available if configured with an Oauth authenticator + * that has a refresh token, and will refresh the current access token. + * @type {Function} + */ + handleUnauthorized : () => boolean|Promise; + + /** + * The amount of time in milliseconds to wait for a request to finish. + * @type {Number} + */ + requestTimeout : number; + } + + namespace auth { + var BasicAuthenticator: BasicAuthenticatorStatic; + + interface BasicAuthenticatorStatic { + /** + * @param apiKey + */ + new (apiKey: string): BasicAuthenticator; + } + + interface BasicAuthenticator extends Authenticator { + /** + * @param {Object} request The request to modify, for the `request` library. + * @return {Object} The `request` parameter, modified to include authentication + * information using the stored credentials. + * @param request + * @return + */ + authenticateRequest(request: BasicAuthenticatorRequest): BasicAuthenticatorRequest; + } + + interface BasicAuthenticatorRequest { + auth : { + username : string; + password : string; + } + } + + var OauthAuthenticator: OauthAuthenticatorStatic; + + interface OauthAuthenticatorStatic { + /** + * Creates an authenticator that uses Oauth for authentication. + * + * @param {Object} options Configure the authenticator; must specify one + * of `flow` or `credentials`. + * @option {App} app The app being authenticated for. + * @option {OauthFlow} [flow] The flow to use to get credentials + * when needed. + * @option {String|Object} [credentials] Initial credentials to use. This can + * be either the object returned from an access token request (which + * contains the token and some other metadata) or just the `access_token` + * field. + * @constructor + */ + new (options: OauthAuthenticatorOptions): OauthAuthenticator; + } + + interface OauthAuthenticatorOptions { + flowType?: auth.FlowType; + credentials?: Credentials|string; + } + + interface Credentials { + access_token?: string; + refresh_token?: string; + } + + interface OauthAuthenticator extends Authenticator { + /** + * @param {Object} request The request to modify, for the `request` library. + * @return {Object} The `request` parameter, modified to include authentication + * information using the stored credentials. + * @param request + * @return + */ + authenticateRequest(request: OauthAuthenticatorRequest): OauthAuthenticatorRequest; + } + + interface OauthAuthenticatorRequest { + /** + * When browserify-d, the `auth` component of the `request` library + * doesn't work so well, so we just manually set the bearer token instead. + */ + headers : { + Authorization : string; + } + } + + /** + * A layer to abstract the differences between using different types of + * authentication (Oauth vs. Basic). The Authenticator is responsible for + * establishing credentials and applying them to outgoing requests. + * @constructor + */ + interface Authenticator { + /** + * Establishes credentials. + * + * @return {Promise} Resolves when initial credentials have been + * completed and `authenticateRequest` calls can expect to succeed. + * @return + */ + establishCredentials(): Promise; + + /** + * Attempts to refresh credentials, if possible, given the current credentials. + * + * @return {Promise} Resolves to `true` if credentials have been successfully + * established and `authenticateRequests` can expect to succeed, else + * resolves to `false`. + * @return + */ + refreshCredentials(): Promise; + } + + var App: AppStatic; + + interface AppStatic { + /** + * An abstraction around an App used with Asana. + * + * @options {Object} Options to construct the app + * @option {String} clientId The ID of the app + * @option {String} [clientSecret] The secret key, if available here + * @option {String} [redirectUri] The default redirect URI + * @option {String} [scope] Scope to use, supports `default` and `scim` + * @option {String} [asanaBaseUrl] Base URL to use for Asana, for debugging + * @constructor + */ + new (options: AppOptions): App; + } + + interface AppOptions extends AsanaAuthorizeUrlOptions { + clientId?: string|number; + clientSecret?: string; + scope?: string; + } + + interface App { + /** + * @param {Object} options Overrides to the app's defaults + * @option {String} asanaBaseUrl + * @option {String} redirectUri + * @returns {String} The URL used to authorize a user for the app. + * @param options + * @return + */ + asanaAuthorizeUrl(options?: AsanaAuthorizeUrlOptions): string; + + /** + * @param {Object} options Overrides to the app's defaults + * @option {String} asanaBaseUrl + * @option {String} redirectUri + * @returns {String} The URL used to acquire an access token. + * @param options + * @return + */ + asanaTokenUrl(options?: AsanaAuthorizeUrlOptions): string; + + /** + * @param {String} code An authorization code obtained via `asanaAuthorizeUrl`. + * @param {Object} options Overrides to the app's defaults + * @option {String} asanaBaseUrl + * @option {String} redirectUri + * @return {Promise} The token, which will include the `access_token` + * used for API access, as well as a `refresh_token` which can be stored + * to get a new access token without going through the flow again. + * @param code + * @param options + * @return + */ + accessTokenFromCode(code: string, options?: AsanaAuthorizeUrlOptions): Promise; + + /** + * @param {String} refreshToken A refresh token obtained via Oauth. + * @param {Object} options Overrides to the app's defaults + * @option {String} asanaBaseUrl + * @option {String} redirectUri + * @return {Promise} The token, which will include the `access_token` + * used for API access. + * @param refreshToken + * @param options + * @return + */ + accessTokenFromRefreshToken(refreshToken: string, options: AsanaAuthorizeUrlOptions): Promise; + + scope : string; + + asanaBaseUrl : string; + } + + interface AsanaAuthorizeUrlOptions { + redirectUri?: string; + asanaBaseUrl?: string; + } + + var OauthError: OauthErrorStatic; + + interface OauthErrorStatic { + /** + * @param options {Object} A data blob parsed from a query string or JSON + * response from the Asana API + * @option {String} error The string code identifying the error. + * @option {String} [error_uri] A link to help and information about the error. + * @option {String} [error_description] A description of the error. + * @constructor + */ + new (options: OauthErrorOptions): OauthError; + } + + interface OauthErrorOptions { + error?: string; + error_uri?: string; + error_description?: string; + } + + interface OauthError extends Error { + } + + /** + * Auto-detects the type of Oauth flow to use that's appropriate to the + * environment. + * + * @returns {Function|null} The type of Oauth flow to use, or null if no + * appropriate type could be determined. + * @param env + * @return + */ + function autoDetect(env: any): Function; + + var RedirectFlow: RedirectFlowStatic; + + interface RedirectFlowStatic extends FlowType { + /** + * An Oauth flow that runs in the browser and requests user authorization by + * redirecting to an authorization page on Asana, and redirecting back with + * the credentials. + * @param {Object} options See `BaseBrowserFlow` for options. + * @constructor + */ + new (options: any): RedirectFlow; + } + + interface RedirectFlow extends BaseBrowserFlow { + } + + var PopupFlow: PopupFlowStatic; + + interface PopupFlowStatic extends FlowType { + /** + * An Oauth flow that runs in the browser and requests user authorization by + * popping up a window and prompting the user. + * @param {Object} options See `BaseBrowserFlow` for options. + * @constructor + */ + new (options: any): PopupFlow; + } + + interface PopupFlow extends BaseBrowserFlow { + /** + * @param popupWidth + * @param popupHeight + */ + _popupParams(popupWidth: number, popupHeight: number): void; + + runReceiver(): void; + } + + var NativeFlow: NativeFlowStatic; + + interface NativeFlowStatic extends FlowType { + /** + * An Oauth flow that can be run from the console or an app that does + * not have the ability to open and manage a browser on its own. + * @param {Object} options + * @option {App} app App to authenticate for + * @option {String function(String)} [instructions] Function returning the + * instructions to output to the user. Passed the authorize url. + * @option {String function()} [prompt] String to output immediately before + * waiting for a line from stdin. + * @constructor + */ + new (options: any): NativeFlow; + } + + interface NativeFlow extends Flow { + /** + * Run the Oauth flow, prompting the user to go to the authorization URL + * and enter the code it displays when finished. + * + * @return {Promise} The access token object, which will include + * `access_token` and `refresh_token`. + */ + run(): void; + + /** + * @param {String} code An authorization code obtained via `asanaAuthorizeUrl`. + * @return {Promise} The token, which will include the `access_token` + * used for API access, as well as a `refresh_token` which can be stored + * to get a new access token without going through the flow again. + * @param code + */ + accessToken(code: string): void; + + /** + * @return {Promise} The access token, which will include a refresh token + * that can be stored in the future to create a client without going + * through the Oauth flow. + * @param url + * @return + */ + promptForCode(url: string): any; + } + + var ChromeExtensionFlow: ChromeExtensionFlowStatic; + + interface ChromeExtensionFlowStatic extends FlowType { + /** + * An Oauth flow that runs in a Chrome browser extension and requests user + * authorization by opening a temporary tab to prompt the user. + * @param {Object} options See `BaseBrowserFlow` for options, plus the below: + * @options {String} [receiverPath] Full path and filename from the base + * directory of the extension to the receiver page. This is an HTML file + * that has been made web-accessible, and that calls the receiver method + * `Asana.auth.ChromeExtensionFlow.runReceiver();`. + * @constructor + */ + new (options: any): ChromeExtensionFlow; + } + + interface ChromeExtensionFlow extends BaseBrowserFlow { + /** + * Runs the receiver code to send the Oauth result to the requesting tab. + */ + runReceiver(): void; + } + + var BaseBrowserFlow: BaseBrowserFlowStatic; + + interface BaseBrowserFlowStatic extends FlowType { + /** + * A base class for any flow that runs in the browser. All subclasses use the + * "implicit grant" flow to authenticate via the browser. + * @param {Object} options + * @option {App} app The app this flow is for + * @option {String} [redirectUri] The URL that Asana should redirect to once + * user authorization is complete. Defaults to the URL configured in + * the app, and if none then the current page URL. + * @constructor + */ + new (options: any): BaseBrowserFlow; + } + + interface BaseBrowserFlow extends Flow { + /** + * @param {String} authUrl The URL the user should be navigated to in order + * to authorize the app. + * @param {String} state The unique state generated for this auth request. + * @return {Promise} Resolved when authorization has successfully started, + * i.e. the user has been navigated to a page requesting authorization. + * @param authUrl + * @param state + * @return + */ + startAuthorization(authUrl: string, state: string): any; + + /** + * @return {Promise} Credentials returned from Oauth. + * @param state + */ + finishAuthorization(state: string): void; + + /** + * @return {String} The URL to redirect to that will receive the + * @return + */ + receiverUrl(): string; + + /** + * @return {String} The URL to redirect to that will receive the + * @return + */ + asanaBaseUrl(): string; + + /** + * @returns {String} Generate a new unique state parameter for a request. + * @return + */ + getStateParam(): string; + } + + interface FlowType { + new (options: any): Flow; + } + + interface Flow { + /** + * @returns {String} The URL used to authorize the user for the app. + * @return + */ + authorizeUrl(): string; + + /** + * Run the appropriate parts of the Oauth flow, attempting to establish user + * authorization. + * @returns {Promise} A promise that resolves to the Oauth credentials. + */ + run(): void; + } + } + + namespace errors { + class AsanaError extends Error { + /** + * @param message + * @return + */ + constructor(message: any); + + code: number; + value: any; + } + + class Forbidden extends AsanaError { + /** + * @param value + * @return + */ + constructor(value: any); + } + + + class InvalidRequest extends AsanaError { + /** + * @param value + * @return + */ + constructor(value: any); + } + + class NoAuthorization extends AsanaError { + /** + * @param value + * @return + */ + constructor(value: any); + } + + class NotFound extends AsanaError { + /** + * @param value + * @return + */ + constructor(value: any); + } + + class RateLimitEnforced extends AsanaError { + /** + * @param value + * @return + */ + constructor(value: any); + } + + class ServerError extends AsanaError { + /** + * @param value + * @return + */ + constructor(value: any); + } + } + + namespace resources { + /** + * An _attachment_ object represents any file attached to a task in Asana, + * whether it's an uploaded file or one associated via a third-party service + * such as Dropbox or Google Drive. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Attachments extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Returns the full record for a single attachment. + * * @param {String} attachment Globally unique identifier for the attachment. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param attachment + * @param params? + * @param dispatchOptions? + * @return + */ + findById(attachment: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact records for all attachments on the task. + * * @param {String} task Globally unique identifier for the task. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param params? + * @param dispatchOptions? + * @return + */ + findByTask(task: string, params?: any, dispatchOptions?: any): Promise; + } + + /** + * An _event_ is an object representing a change to a resource that was observed + * by an event subscription. + * + * In general, requesting events on a resource is faster and subject to higher + * rate limits than requesting the resource itself. Additionally, change events + * bubble up - listening to events on a project would include when stories are + * added to tasks in the project, even on subtasks. + * + * Establish an initial sync token by making a request with no sync token. + * The response will be a `412` error - the same as if the sync token had + * expired. + * + * Subsequent requests should always provide the sync token from the immediately + * preceding call. + * + * Sync tokens may not be valid if you attempt to go 'backward' in the history + * by requesting previous tokens, though re-requesting the current sync token + * is generally safe, and will always return the same results. + * + * When you receive a `412 Precondition Failed` error, it means that the + * sync token is either invalid or expired. If you are attempting to keep a set + * of data in sync, this signals you may need to re-crawl the data. + * + * Sync tokens always expire after 24 hours, but may expire sooner, depending on + * load on the service. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Events extends Resource { + /** + * @param dispatcher + * @return + */ + constructor(dispatcher: Dispatcher); + } + + /** + * A _project_ represents a prioritized list of tasks in Asana. It exists in a + * single workspace or organization and is accessible to a subset of users in + * that workspace or organization, depending on its permissions. + * + * Projects in organizations are shared with a single team. You cannot currently + * change the team of a project via the API. Non-organization workspaces do not + * have teams and so you should not specify the team of project in a + * regular workspace. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Projects extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Creates a new project in a workspace or team. + * * + * * Every project is required to be created in a specific workspace or + * * organization, and this cannot be changed once set. Note that you can use + * * the `workspace` parameter regardless of whether or not it is an + * * organization. + * * + * * If the workspace for your project _is_ an organization, you must also + * * supply a `team` to share the project with. + * * + * * Returns the full record of the newly created project. + * * @param {Object} data Data for the request + * * @param {String} data.workspace The workspace or organization to create the project in. + * * @param {String} [data.team] If creating in an organization, the specific team to create the + * * project in. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param data + * @param dispatchOptions? + * @return + */ + create(data: any, dispatchOptions?: any): Promise; + + /** + * * If the workspace for your project _is_ an organization, you must also + * * supply a `team` to share the project with. + * * + * * Returns the full record of the newly created project. + * * @param {String} workspace The workspace or organization to create the project in. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param data + * @param dispatchOptions? + * @return + */ + createInWorkspace(workspace: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Creates a project shared with the given team. + * * + * * Returns the full record of the newly created project. + * * @param {String} team The team to create the project in. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param team + * @param data + * @param dispatchOptions? + * @return + */ + createInTeam(team: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns the complete project record for a single project. + * * @param {String} project The project to get. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param project + * @param params? + * @param dispatchOptions? + * @return + */ + findById(project: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * A specific, existing project can be updated by making a PUT request on the + * * URL for that project. Only the fields provided in the `data` block will be + * * updated; any unspecified fields will remain unchanged. + * * + * * When using this method, it is best to specify only those fields you wish + * * to change, or else you may overwrite changes made by another user since + * * you last retrieved the task. + * * + * * Returns the complete updated project record. + * * @param {String} project The project to update. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param data + * @param dispatchOptions? + * @return + */ + update(project: string, data: any, dispatchOptions?: any): Promise; + + /** + * * A specific, existing project can be deleted by making a DELETE request + * * on the URL for that project. + * * + * * Returns an empty data record. + * * @param {String} project The project to delete. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param dispatchOptions? + * @return + */ + delete(project: string, dispatchOptions?: any): Promise; + + /** + * * Returns the compact project records for some filtered set of projects. + * * Use one or more of the parameters provided to filter the projects returned. + * * @param {Object} [params] Parameters for the request + * * @param {String} [params.workspace] The workspace or organization to filter projects on. + * * @param {String} [params.team] The team to filter projects on. + * * @param {Boolean} [params.archived] Only return projects whose `archived` field takes on the value of + * * this parameter. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param params? + * @param dispatchOptions? + * @return + */ + findAll(params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact project records for all projects in the workspace. + * * @param {String} workspace The workspace or organization to find projects in. + * * @param {Object} [params] Parameters for the request + * * @param {Boolean} [params.archived] Only return projects whose `archived` field takes on the value of + * * this parameter. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param params? + * @param dispatchOptions? + * @return + */ + findByWorkspace(workspace: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact project records for all projects in the team. + * * @param {String} team The team to find projects in. + * * @param {Object} [params] Parameters for the request + * * @param {Boolean} [params.archived] Only return projects whose `archived` field takes on the value of + * * this parameter. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param team + * @param params? + * @param dispatchOptions? + * @return + */ + findByTeam(team: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns compact records for all sections in the specified project. + * * @param {String} project The project to get sections from. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param params? + * @param dispatchOptions? + * @return + */ + sections(project: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact task records for all tasks within the given project, + * * ordered by their priority within the project. Tasks can exist in more than one project at a time. + * * @param {String} project The project in which to search for tasks. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param params? + * @param dispatchOptions? + * @return + */ + tasks(project: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Adds the specified list of users as followers to the project. Followers are a subset of members, therefore if + * * the users are not already members of the project they will also become members as a result of this operation. + * * Returns the updated project record. + * * @param {String} project The project to add followers to. + * * @param {Object} data Data for the request + * * @param {Array} data.followers An array of followers to add to the project. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param data + * @param dispatchOptions? + * @return + */ + addFollowers(project: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Removes the specified list of users from following the project, this will not affect project membership status. + * * Returns the updated project record. + * * @param {String} project The project to remove followers from. + * * @param {Object} data Data for the request + * * @param {Array} data.followers An array of followers to remove from the project. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param data + * @param dispatchOptions? + * @return + */ + removeFollowers(project: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Adds the specified list of users as members of the project. Returns the updated project record. + * * @param {String} project The project to add members to. + * * @param {Object} data Data for the request + * * @param {Array} data.members An array of members to add to the project. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param data + * @param dispatchOptions? + * @return + */ + addMembers(project: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Removes the specified list of members from the project. Returns the updated project record. + * * @param {String} project The project to remove members from. + * * @param {Object} data Data for the request + * * @param {Array} data.members An array of members to remove from the project. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param project + * @param data + * @param dispatchOptions? + * @return + */ + removeMembers(project: string, data: any, dispatchOptions?: any): Promise; + } + + /** + * A _story_ represents an activity associated with an object in the Asana + * system. Stories are generated by the system whenever users take actions such + * as creating or assigning tasks, or moving tasks between projects. _Comments_ + * are also a form of user-generated story. + * + * Stories are a form of history in the system, and as such they are read-only. + * Once generated, it is not possible to modify a story. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Stories extends Resource { + /** + * + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Returns the compact records for all stories on the task. + * * @param {String} task Globally unique identifier for the task. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param params? + * @param dispatchOptions? + * @return + */ + findByTask(task: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the full record for a single story. + * * @param {String} story Globally unique identifier for the story. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param story + * @param params? + * @param dispatchOptions? + * @return + */ + findById(story: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Adds a comment to a task. The comment will be authored by the + * * currently authenticated user, and timestamped when the server receives + * * the request. + * * + * * Returns the full record for the new story added to the task. + * * @param {String} task Globally unique identifier for the task. + * * @param {Object} data Data for the request + * * @param {String} data.text The plain text of the comment to add. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + createOnTask(task: string, data: any, dispatchOptions?: any): Promise; + } + + /** + * A _tag_ is a label that can be attached to any task in Asana. It exists in a + * single workspace or organization. + * + * Tags have some metadata associated with them, but it is possible that we will + * simplify them in the future so it is not encouraged to rely too heavily on it. + * Unlike projects, tags do not provide any ordering on the tasks they + * are associated with. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Tags extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Creates a new tag in a workspace or organization. + * * + * * Every tag is required to be created in a specific workspace or + * * organization, and this cannot be changed once set. Note that you can use + * * the `workspace` parameter regardless of whether or not it is an + * * organization. + * * + * * Returns the full record of the newly created tag. + * * @param {Object} data Data for the request + * * @param {String} data.workspace The workspace or organization to create the tag in. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param data + * @param dispatchOptions? + * @return + */ + create(data: any, dispatchOptions?: any): Promise; + + /** + * * Creates a new tag in a workspace or organization. + * * + * * Every tag is required to be created in a specific workspace or + * * organization, and this cannot be changed once set. Note that you can use + * * the `workspace` parameter regardless of whether or not it is an + * * organization. + * * + * * Returns the full record of the newly created tag. + * * @param {String} workspace The workspace or organization to create the tag in. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param data + * @param dispatchOptions? + * @return + */ + createInWorkspace(workspace: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns the complete tag record for a single tag. + * * @param {String} tag The tag to get. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param tag + * @param params? + * @param dispatchOptions? + * @return + */ + findById(tag: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Updates the properties of a tag. Only the fields provided in the `data` + * * block will be updated; any unspecified fields will remain unchanged. + * * + * * When using this method, it is best to specify only those fields you wish + * * to change, or else you may overwrite changes made by another user since + * * you last retrieved the task. + * * + * * Returns the complete updated tag record. + * * @param {String} tag The tag to update. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param tag + * @param data + * @param dispatchOptions? + * @return + */ + update(tag: string, data: any, dispatchOptions?: any): Promise; + + /** + * * A specific, existing tag can be deleted by making a DELETE request + * * on the URL for that tag. + * * + * * Returns an empty data record. + * * @param {String} tag The tag to delete. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param tag + * @param dispatchOptions? + * @return + */ + delete(tag: string, dispatchOptions?: any): Promise; + + /** + * * Returns the compact tag records for some filtered set of tags. + * * Use one or more of the parameters provided to filter the tags returned. + * * @param {Object} [params] Parameters for the request + * * @param {String} [params.workspace] The workspace or organization to filter tags on. + * * @param {String} [params.team] The team to filter tags on. + * * @param {Boolean} [params.archived] Only return tags whose `archived` field takes on the value of + * * this parameter. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param params? + * @param dispatchOptions? + * @return + */ + findAll(params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact tag records for all tags in the workspace. + * * @param {String} workspace The workspace or organization to find tags in. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param params? + * @param dispatchOptions? + * @return + */ + findByWorkspace(workspace: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact task records for all tasks with the given tag. + * * Tasks can have more than one tag at a time. + * * @param {String} tag The tag to fetch tasks from. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param tag + * @param params? + * @param dispatchOptions? + * @return + */ + getTasksWithTag(tag: string, params?: any, dispatchOptions?: any): Promise; + } + + /** + * The _task_ is the basic object around which many operations in Asana are + * centered. In the Asana application, multiple tasks populate the middle pane + * according to some view parameters, and the set of selected tasks determines + * the more detailed information presented in the details pane. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Tasks extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Creating a new task is as easy as POSTing to the `/tasks` endpoint + * * with a data block containing the fields you'd like to set on the task. + * * Any unspecified fields will take on default values. + * * + * * Every task is required to be created in a specific workspace, and this + * * workspace cannot be changed once set. The workspace need not be set + * * explicitly if you specify a `project` or a `parent` task instead. + * * @param {Object} data Data for the request + * * @param {String} [data.workspace] The workspace to create a task in. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param data + * @param dispatchOptions? + * @return + */ + create(data: any, dispatchOptions?: any): Promise; + + /** + * * Creating a new task is as easy as POSTing to the `/tasks` endpoint + * * with a data block containing the fields you'd like to set on the task. + * * Any unspecified fields will take on default values. + * * + * * Every task is required to be created in a specific workspace, and this + * * workspace cannot be changed once set. The workspace need not be set + * * explicitly if you specify a `project` or a `parent` task instead. + * * @param {String} workspace The workspace to create a task in. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param data + * @param dispatchOptions? + * @return + */ + createInWorkspace(workspace: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns the complete task record for a single task. + * * @param {String} task The task to get. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param task + * @param params? + * @param dispatchOptions? + * @return + */ + findById(task: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * A specific, existing task can be updated by making a PUT request on the + * * URL for that task. Only the fields provided in the `data` block will be + * * updated; any unspecified fields will remain unchanged. + * * + * * When using this method, it is best to specify only those fields you wish + * * to change, or else you may overwrite changes made by another user since + * * you last retrieved the task. + * * + * * Returns the complete updated task record. + * * @param {String} task The task to update. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + update(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * A specific, existing task can be deleted by making a DELETE request on the + * * URL for that task. Deleted tasks go into the "trash" of the user making + * * the delete request. Tasks can be recovered from the trash within a period + * * of 30 days; afterward they are completely removed from the system. + * * + * * Returns an empty data record. + * * @param {String} task The task to delete. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param dispatchOptions? + * @return + */ + delete(task: string, dispatchOptions?: any): Promise; + + /** + * * Returns the compact task records for all tasks within the given project, + * * ordered by their priority within the project. + * * @param {String} projectId The project in which to search for tasks. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param projectId + * @param params? + * @param dispatchOptions? + * @return + */ + findByProject(projectId: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact task records for all tasks with the given tag. + * * @param {String} tag The tag in which to search for tasks. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param tag + * @param params? + * @param dispatchOptions? + * @return + */ + findByTag(tag: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact task records for some filtered set of tasks. Use one + * * or more of the parameters provided to filter the tasks returned. + * * @param {Object} [params] Parameters for the request + * * @param {String} [params.assignee] The assignee to filter tasks on. + * * @param {String} [params.workspace] The workspace or organization to filter tasks on. + * * @param {String} [params.completed_since] Only return tasks that are either incomplete or that have been + * * completed since this time. + * * @param {String} [params.modified_since] Only return tasks that have been modified since the given time. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param params? + * @param dispatchOptions? + * @return + */ + findAll(params?: any, dispatchOptions?: any): Promise; + + /** + * * Adds each of the specified followers to the task, if they are not already + * * following. Returns the complete, updated record for the affected task. + * * @param {String} task The task to add followers to. + * * @param {Object} data Data for the request + * * @param {Array} data.followers An array of followers to add to the task. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + addFollowers(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Removes each of the specified followers from the task if they are + * * following. Returns the complete, updated record for the affected task. + * * @param {String} task The task to remove followers from. + * * @param {Object} data Data for the request + * * @param {Array} data.followers An array of followers to remove from the task. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + removeFollowers(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns a compact representation of all of the projects the task is in. + * * @param {String} task The task to get projects on. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param params? + * @param dispatchOptions? + * @return + */ + projects(task: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Adds the task to the specified project, in the optional location + * * specified. If no location arguments are given, the task will be added to + * * the beginning of the project. + * * + * * `addProject` can also be used to reorder a task within a project that + * * already contains it. + * * + * * Returns an empty data block. + * * @param {String} task The task to add to a project. + * * @param {Object} data Data for the request + * * @param {String} data.project The project to add the task to. + * * @param {String} [data.insertAfter] A task in the project to insert the task after, or `null` to + * * insert at the beginning of the list. + * * @param {String} [data.insertBefore] A task in the project to insert the task before, or `null` to + * * insert at the end of the list. + * * @param {String} [data.section] A section in the project to insert the task into. The task will be + * * inserted at the top of the section. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + addProject(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Removes the task from the specified project. The task will still exist + * * in the system, but it will not be in the project anymore. + * * + * * Returns an empty data block. + * * @param {String} task The task to remove from a project. + * * @param {Object} data Data for the request + * * @param {String} data.project The project to remove the task from. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + removeProject(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns a compact representation of all of the tags the task has. + * * @param {String} task The task to get tags on. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param params? + * @param dispatchOptions? + * @return + */ + tags(task: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Adds a tag to a task. Returns an empty data block. + * * @param {String} task The task to add a tag to. + * * @param {Object} data Data for the request + * * @param {String} data.tag The tag to add to the task. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + addTag(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Removes a tag from the task. Returns an empty data block. + * * @param {String} task The task to remove a tag from. + * * @param {Object} data Data for the request + * * @param {String} data.tag The tag to remove from the task. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + removeTag(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns a compact representation of all of the subtasks of a task. + * * @param {String} task The task to get the subtasks of. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param params? + * @param dispatchOptions? + * @return + */ + subtasks(task: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Creates a new subtask and adds it to the parent task. Returns the full record + * * for the newly created subtask. + * * @param {String} task The task to add a subtask to. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + addSubtask(task: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns a compact representation of all of the stories on the task. + * * @param {String} task The task containing the stories to get. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param params? + * @param dispatchOptions? + * @return + */ + stories(task: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Adds a comment to a task. The comment will be authored by the + * * currently authenticated user, and timestamped when the server receives + * * the request. + * * + * * Returns the full record for the new story added to the task. + * * @param {String} task Globally unique identifier for the task. + * * @param {Object} data Data for the request + * * @param {String} data.text The plain text of the comment to add. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param task + * @param data + * @param dispatchOptions? + * @return + */ + addComment(task: string, data: any, dispatchOptions?: any): Promise; + } + + /** + * A _team_ is used to group related projects and people together within an + * organization. Each project in an organization is associated with a team. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Teams extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Returns the full record for a single team. + * * @param {String} team Globally unique identifier for the team. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param team + * @param params? + * @param dispatchOptions? + * @return + */ + findById(team: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact records for all teams in the organization visible to + * * the authorized user. + * * @param {String} organization Globally unique identifier for the workspace or organization. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param organization + * @param params? + * @param dispatchOptions? + * @return + */ + findByOrganization(organization: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact records for all users that are members of the team. + * * @param {String} team Globally unique identifier for the team. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param team + * @param params? + * @param dispatchOptions? + * @return + */ + users(team: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * The user making this call must be a member of the team in order to add others. + * * The user to add must exist in the same organization as the team in order to be added. + * * The user to add can be referenced by their globally unique user ID or their email address. + * * Returns the full user record for the added user. + * * @param {String} team Globally unique identifier for the team. + * * @param {Object} data Data for the request + * * @param {String} data.user An identifier for the user. Can be one of an email address, + * * the globally unique identifier for the user, or the keyword `me` + * * to indicate the current user making the request. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param team + * @param data + * @param dispatchOptions? + * @return + */ + addUser(team: string, data: any, dispatchOptions?: any): Promise; + + /** + * * The user to remove can be referenced by their globally unique user ID or their email address. + * * Removes the user from the specified team. Returns an empty data record. + * * @param {String} team Globally unique identifier for the team. + * * @param {Object} data Data for the request + * * @param {String} data.user An identifier for the user. Can be one of an email address, + * * the globally unique identifier for the user, or the keyword `me` + * * to indicate the current user making the request. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param team + * @param data + * @param dispatchOptions? + * @return + */ + removeUser(team: string, data: any, dispatchOptions?: any): Promise; + } + + /** + * A _user_ object represents an account in Asana that can be given access to + * various workspaces, projects, and tasks. + * + * Like other objects in the system, users are referred to by numerical IDs. + * However, the special string identifier `me` can be used anywhere + * a user ID is accepted, to refer to the current authenticated user. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Users extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Returns the full user record for the currently authenticated user. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param params? + * @param dispatchOptions? + * @return + */ + me(params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the full user record for the single user with the provided ID. + * * @param {String} user An identifier for the user. Can be one of an email address, + * * the globally unique identifier for the user, or the keyword `me` + * * to indicate the current user making the request. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param user + * @param params? + * @param dispatchOptions? + * @return + */ + findById(user: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the user records for all users in the specified workspace or + * * organization. + * * @param {String} workspace The workspace in which to get users. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param params? + * @param dispatchOptions? + * @return + */ + findByWorkspace(workspace: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the user records for all users in all workspaces and organizations + * * accessible to the authenticated user. Accepts an optional workspace ID + * * parameter. + * * @param {Object} [params] Parameters for the request + * * @param {String} [params.workspace] The workspace or organization to filter users on. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param params? + * @param dispatchOptions? + * @return + */ + findAll(params?: any, dispatchOptions?: any): Promise; + } + + /** + * **Webhooks are currently in BETA - The information here may change.** + * + * Webhooks allow an application to be notified of changes. This is in addition + * to the ability to fetch those changes directly as + * [Events](/developers/api-reference/events) - in fact, Webhooks are just a way + * to receive Events via HTTP POST at the time they occur instead of polling for + * them. For services accessible via HTTP this is often vastly more convenient, + * and if events are not too frequent can be significantly more efficient. + * + * In both cases, however, changes are represented as Event objects - refer to + * the [Events documentation](/developers/api-reference/events) for more + * information on what data these events contain. + * + * **NOTE:** While Webhooks send arrays of Event objects to their target, the + * Event objects themselves contain *only IDs*, rather than the actual resource + * they are referencing. So while a normal event you receive via GET /events + * would look like this: + * + * {\ + * "resource": {\ + * "id": 1337,\ + * "name": "My Task"\ + * },\ + * "parent": null,\ + * "created_at": "2013-08-21T18:20:37.972Z",\ + * "user": {\ + * "id": 1123,\ + * "name": "Tom Bizarro"\ + * },\ + * "action": "changed",\ + * "type": "task"\ + * } + * + * In a Webhook payload you would instead receive this: + * + * {\ + * "resource": 1337,\ + * "parent": null,\ + * "created_at": "2013-08-21T18:20:37.972Z",\ + * "user": 1123,\ + * "action": "changed",\ + * "type": "task"\ + * } + * + * Webhooks themselves contain only the information necessary to deliver the + * events to the desired target as they are generated. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Webhooks extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Establishing a webhook is a two-part process. First, a simple HTTP POST + * * similar to any other resource creation. Since you could have multiple + * * webhooks we recommend specifying a unique local id for each target. + * * + * * Next comes the confirmation handshake. When a webhook is created, we will + * * send a test POST to the `target` with an `X-Hook-Secret` header as + * * described in the + * * [Resthooks Security documentation](http://resthooks.org/docs/security/). + * * The target must respond with a `200 OK` and a matching `X-Hook-Secret` + * * header to confirm that this webhook subscription is indeed expected. + * * + * * If you do not acknowledge the webhook's confirmation handshake it will + * * fail to setup, and you will receive an error in response to your attempt + * * to create it. This means you need to be able to receive and complete the + * * webhook *while* the POST request is in-flight. + * * @param {String} resource A resource ID to subscribe to. The resource can be a task or project. + * * @param {String} target The URL to receive the HTTP POST. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param resource + * @param target + * @param data + * @param dispatchOptions? + * @return + */ + create(resource: string, target: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact representation of all webhooks your app has + * * registered for the authenticated user in the given workspace. + * * @param {String} workspace The workspace to query for webhooks in. + * * @param {Object} [params] Parameters for the request + * * @param {String} [params.resource] Only return webhooks for the given resource. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param params? + * @param dispatchOptions? + * @return + */ + getAll(workspace: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the full record for the given webhook. + * * @param {String} webhook The webhook to get. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param webhook + * @param params? + * @param dispatchOptions? + * @return + */ + getById(webhook: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * This method permanently removes a webhook. Note that it may be possible + * * to receive a request that was already in flight after deleting the + * * webhook, but no further requests will be issued. + * * @param {String} webhook The webhook to delete. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param webhook + * @param dispatchOptions? + * @return + */ + deleteById(webhook: string, dispatchOptions?: any): Promise; + } + + /** + * A _workspace_ is the highest-level organizational unit in Asana. All projects + * and tasks have an associated workspace. + * + * An _organization_ is a special kind of workspace that represents a company. + * In an organization, you can group your projects into teams. You can read + * more about how organizations work on the Asana Guide. + * To tell if your workspace is an organization or not, check its + * `is_organization` property. + * + * Over time, we intend to migrate most workspaces into organizations and to + * release more organization-specific functionality. We may eventually deprecate + * using workspace-based APIs for organizations. Currently, and until after + * some reasonable grace period following any further announcements, you can + * still reference organizations in any `workspace` parameter. + * @class + * @param {Dispatcher} dispatcher The API dispatcher + */ + class Workspaces extends Resource { + /** + * @param dispatcher + */ + constructor(dispatcher: Dispatcher); + + /** + * * Returns the full workspace record for a single workspace. + * * @param {String} workspace Globally unique identifier for the workspace or organization. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The requested resource + * @param workspace + * @param params? + * @param dispatchOptions? + * @return + */ + findById(workspace: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * Returns the compact records for all workspaces visible to the authorized user. + * * @param {Object} [params] Parameters for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param params? + * @param dispatchOptions? + * @return + */ + findAll(params?: any, dispatchOptions?: any): Promise; + + /** + * * A specific, existing workspace can be updated by making a PUT request on + * * the URL for that workspace. Only the fields provided in the data block + * * will be updated; any unspecified fields will remain unchanged. + * * + * * Currently the only field that can be modified for a workspace is its `name`. + * * + * * Returns the complete, updated workspace record. + * * @param {String} workspace The workspace to update. + * * @param {Object} data Data for the request + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param data + * @param dispatchOptions? + * @return + */ + update(workspace: string, data: any, dispatchOptions?: any): Promise; + + /** + * * Retrieves objects in the workspace based on an auto-completion/typeahead + * * search algorithm. This feature is meant to provide results quickly, so do + * * not rely on this API to provide extremely accurate search results. The + * * result set is limited to a single page of results with a maximum size, + * * so you won't be able to fetch large numbers of results. + * * @param {String} workspace The workspace to fetch objects from. + * * @param {Object} [params] Parameters for the request + * * @param {String} params.type The type of values the typeahead should return. + * * Note that unlike in the names of endpoints, the types listed here are + * * in singular form (e.g. `task`). Using multiple types is not yet supported. + * * @param {String} [params.query] The string that will be used to search for relevant objects. If an + * * empty string is passed in, the API will currently return an empty + * * result set. + * * @param {Number} [params.count] The number of results to return. The default is `20` if this + * * parameter is omitted, with a minimum of `1` and a maximum of `100`. + * * If there are fewer results found than requested, all will be returned. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param params? + * @param dispatchOptions? + * @return + */ + typeahead(workspace: string, params?: any, dispatchOptions?: any): Promise; + + /** + * * The user can be referenced by their globally unique user ID or their email address. + * * Returns the full user record for the invited user. + * * @param {String} workspace The workspace or organization to invite the user to. + * * @param {Object} data Data for the request + * * @param {String} data.user An identifier for the user. Can be one of an email address, + * * the globally unique identifier for the user, or the keyword `me` + * * to indicate the current user making the request. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param data + * @param dispatchOptions? + * @return + */ + addUser(workspace: string, data: any, dispatchOptions?: any): Promise; + + /** + * * The user making this call must be an admin in the workspace. + * * Returns an empty data record. + * * @param {String} workspace The workspace or organization to invite the user to. + * * @param {Object} data Data for the request + * * @param {String} data.user An identifier for the user. Can be one of an email address, + * * the globally unique identifier for the user, or the keyword `me` + * * to indicate the current user making the request. + * * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * * @return {Promise} The response from the API + * @param workspace + * @param data + * @param dispatchOptions? + * @return + */ + removeUser(workspace: string, data: any, dispatchOptions?: any): Promise; + } + + interface ResourceStatic { + /** + * @param dispatcher + */ + new (dispatcher: Dispatcher): Resource; + + /** + * @type {number} Default number of items to get per page. + */ + DEFAULT_PAGE_LIMIT: number; + + /** + * Helper method that dispatches a GET request to the API, where the expected + * result is a collection. + * @param {Dispatcher} dispatcher + * @param {String} path The path of the API + * @param {Object} [query] The query params + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `Dispatcher.dispatch`. + * @return {Promise} The Collection response for the request + * @param dispatcher + * @param path + * @param query? + * @param dispatchOptions? + */ + getCollection(dispatcher: any, path: string, query?: any, dispatchOptions?: any): Promise; + + /** + * Helper method for any request Promise from the Dispatcher, unwraps the `data` + * value from the payload. + * @param {Promise} promise A promise returned from a `Dispatcher` request. + * @return {Promise} The `data` portion of the response payload. + * @param promise + * @return + */ + unwrap(promise: any): Promise; + } + + var Resource: ResourceStatic; + + /** + * Base class for a resource accessible via the API. Uses a `Dispatcher` to + * access the resources. + * @param {Dispatcher} dispatcher + * @constructor + */ + interface Resource { + /** + * Dispatches a GET request to the API, where the expected result is a + * single resource. + * @param {String} path The path of the API + * @param {Object} [query] The query params + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `Dispatcher.dispatch`. + * @return {Promise} The response for the request + * @param path + * @param query? + * @param dispatchOptions? + * @return + */ + dispatchGet(path: string, query?: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a GET request to the API, where the expected result is a + * collection. + * @param {String} path The path of the API + * @param {Object} [query] The query params + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `Dispatcher.dispatch`. + * @return {Promise} The response for the request + * @param path + * @param query? + * @param dispatchOptions? + * @return + */ + dispatchGetCollection(path: string, query?: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a POST request to the API, where the expected response is a + * single resource. + * @param {String} path The path of the API + * @param {Object} [query] The query params + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `Dispatcher.dispatch`. + * @return {Promise} The response for the request + * @param path + * @param query? + * @param dispatchOptions? + * @return + */ + dispatchPost(path: string, query?: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a POST request to the API, where the expected response is a + * single resource. + * @param {String} path The path of the API + * @param {Object} [query] The query params + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `Dispatcher.dispatch`. + * @return {Promise} The response for the request + * @param path + * @param query? + * @param dispatchOptions? + * @return + */ + dispatchPut(path: string, query?: any, dispatchOptions?: any): Promise; + + /** + * Dispatches a DELETE request to the API. The expected response is an + * empty resource. + * @param {String} path The path of the API + * @param {Object} [dispatchOptions] Options for handling the request and + * response. See `Dispatcher.dispatch`. + * @return {Promise} The response for the request + * @param path + * @param dispatchOptions? + * @return + */ + dispatchDelete(path: string, dispatchOptions?: any): Promise; + } + } + + var VERSION: string; + } + + export = asana; +} + diff --git a/blazy/blazy.d.ts b/blazy/blazy.d.ts index cb4747d6f7..dedeff4160 100644 --- a/blazy/blazy.d.ts +++ b/blazy/blazy.d.ts @@ -14,31 +14,31 @@ interface Blazy { interface BlazyOptions { - breakpoints: Breakpoint[]; + breakpoints?: Breakpoint[]; - container: string; + container?: string; - error: (ele: Element|HTMLElement, msg: string) => void; + error?: (ele: Element|HTMLElement, msg: string) => void; - errorClass: string; + errorClass?: string; - loadInvisible: boolean; + loadInvisible?: boolean; - offset: number; + offset?: number; - saveViewportOffsetDelay: number; + saveViewportOffsetDelay?: number; - selector: string; + selector?: string; - separator: string; + separator?: string; - src: string; + src?: string; - success: (ele: Element|HTMLElement) => void; + success?: (ele: Element|HTMLElement) => void; - successClass: string; + successClass?: string; - validateDelay: number; + validateDelay?: number; } diff --git a/ckeditor/ckeditor.d.ts b/ckeditor/ckeditor.d.ts index b3c2f45243..88fee3674d 100644 --- a/ckeditor/ckeditor.d.ts +++ b/ckeditor/ckeditor.d.ts @@ -80,7 +80,7 @@ declare module CKEDITOR { function getTemplate(name: string): template; function getUrl(resource: string): string; function inline(element: string, instanceConfig?: config): editor; - function inline(element: HTMLTextAreaElement, instanceConfig?: config): editor; + function inline(element: HTMLElement, instanceConfig?: config): editor; function inlineAll(): void; function loadFullCore(): void; function replace(element: string, config?: config): editor; @@ -1147,4 +1147,4 @@ declare module CKEDITOR { function load(languageCode: string, defaultLanguage: string, callback: Function): void; function detect(defaultLanguage: string, probeLanguage: string): string; } -} \ No newline at end of file +} diff --git a/date.format.js/date.format.d.ts b/date.format.js/date.format.d.ts index 6e4ef4ea68..d31543aceb 100644 --- a/date.format.js/date.format.d.ts +++ b/date.format.js/date.format.d.ts @@ -180,32 +180,6 @@ interface Date { format(mask?: string, utc?: boolean) : string; } -declare var Date: { - new (): Date; - new (value: number): Date; - new (value: string): Date; - new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; - (): string; - prototype: Date; - /** - * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. - * @param s A date string - */ - parse(s: string): number; - /** - * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. - * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. - * @param month The month as an number between 0 and 11 (January to December). - * @param date The date as an number between 1 and 31. - * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. - * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. - * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. - * @param ms An number from 0 to 999 that specifies the milliseconds. - */ - UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; - now(): number; -}; - // Some common format strings interface DateFormatMasks { "default": string; diff --git a/devextreme/devextreme.d.ts b/devextreme/devextreme.d.ts index 706b4bded7..e0777077c8 100644 --- a/devextreme/devextreme.d.ts +++ b/devextreme/devextreme.d.ts @@ -1,4 +1,4 @@ -// Type definitions for DevExtreme 15.2.3 +// Type definitions for DevExtreme 15.2.4 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -35,7 +35,7 @@ declare module DevExpress { brokenRules: any[]; validators: IValidator[]; } - export interface GroupConfig extends EventsMixin { + export interface GroupConfig extends EventsMixin { group: any; validators: IValidator[]; validate(): ValidationGroupValidationResult; @@ -56,7 +56,7 @@ declare module DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -2401,7 +2401,7 @@ declare module DevExpress.ui { scrollPosition(): number; } export interface dxSwitchOptions extends EditorOptions { - activeStateEnabled?: boolean; + activeStateEnabled?: boolean; /** Text displayed when the widget is in a disabled state. */ offText?: string; /** Text displayed when the widget is in an enabled state. */ @@ -2534,6 +2534,7 @@ declare module DevExpress.ui { /** Specifies whether or not the drop-down menu is displayed. */ opened?: boolean; hoverStateEnabled?: boolean; + activeStateEnabled?: boolean; } /** A drop-down menu widget. */ export class dxDropDownMenu extends Widget { @@ -4479,11 +4480,11 @@ declare module DevExpress.viz.core { font?: viz.core.Font; /** Specifies the widget title's horizontal position. */ horizontalAlignment?: string; - /** Specifies the widget title's position in the vertical direction. */ + /** Specifies the widget title's position in the vertical direction. */ verticalAlignment?: string; /** Specifies the distance between the title and surrounding widget elements in pixels. */ margin?: viz.core.Margins; - /** Specifies the height of the space reserved for the title. */ + /** Specifies the height of the space reserved for the title. */ placeholderSize?: number; /** Specifies text for the title. */ text?: string; @@ -4491,7 +4492,7 @@ declare module DevExpress.viz.core { subtitle?: { /** Specifies font options for the subtitle. */ font?: viz.core.Font; - /** Specifies text for the subtitle. */ + /** Specifies text for the subtitle. */ text?: string; } } @@ -4602,16 +4603,16 @@ declare module DevExpress.viz.core { }) => void; /** A handler for the incidentOccurred event. */ onIncidentOccurred?: ( - component: BaseWidget, - element: Element, - target: { - id: string; - type: string; - args: any; - text: string; - widget: string; - version: string; - } + component: BaseWidget, + element: Element, + target: { + id: string; + type: string; + args: any; + text: string; + widget: string; + version: string; + } ) => void; /** Notifies a widget that it is embedded into an HTML page that uses a path modifier. */ pathModified?: boolean; @@ -5152,10 +5153,6 @@ declare module DevExpress.viz.charts { valueField?: string; } export interface CommonPieSeriesSettings extends CommonPieSeriesConfig { - /** - * Sets a series type for all series. - * @deprecated use the 'type' option instead - */ type?: string; } export interface PieSeriesConfig extends CommonPieSeriesConfig { @@ -6389,8 +6386,12 @@ declare module DevExpress.viz.rangeSelector { }; /** Specifies the value to be raised to a power when generating ticks for a logarithmic scale. */ logarithmBase?: number; - /** Specifies an interval between major ticks. */ + /** + * Specifies an interval between major ticks. + * @deprecated ..\tickInterval\tickInterval.md + */ majorTickInterval?: any; + tickInterval?: any; /** Specifies options for the date-time scale's markers. */ marker?: { /** Defines the options that can be set for the text that is displayed by the scale markers. */ @@ -6425,7 +6426,10 @@ declare module DevExpress.viz.rangeSelector { setTicksAtUnitBeginning?: boolean; /** Specifies whether or not to show ticks for the boundary scale values, when neither major ticks nor minor ticks are created for these values. */ showCustomBoundaryTicks?: boolean; - /** Indicates whether or not to show minor ticks on the scale. */ + /** + * Indicates whether or not to show minor ticks on the scale. + * @deprecated minorTick\visible.md + */ showMinorTicks?: boolean; /** Specifies the scale's start value. */ startValue?: any; @@ -6438,14 +6442,20 @@ declare module DevExpress.viz.rangeSelector { /** Specifies the width of the scale's ticks (both major and minor ticks). */ width?: number; }; + minorTick?: { + color?: string; + opacity?: number; + width?: number; + visible?: boolean; + }; /** Specifies the type of the scale. */ type?: string; /** Specifies whether or not to expand the current tick interval if labels overlap each other. */ useTicksAutoArrangement?: boolean; /** Specifies the type of values on the scale. */ valueType?: string; - /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + /** Specifies the order of arguments on a discrete scale. */ + categories?: Array; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6583,7 +6593,7 @@ declare module DevExpress.viz.map { selected(): boolean; /** Sets the selection state of the layer element. */ selected(state: boolean): void; - /** Applies the layer element settings and updates the element appearance. */ + /** Applies the layer element settings and updates element appearance. */ applySettings(settings: any): void; } /** @@ -6680,7 +6690,7 @@ declare module DevExpress.viz.map { type?: string; /** Specifies the type of a marker element. Setting this option makes sense only if the layer type is "marker". */ elementType?: string; - /** Specifies a data source for the layer element. */ + /** Specifies a data source for the layer. */ data?: any; /** Specifies the width of the layer elements border in pixels. */ borderWidth?: number; @@ -7040,9 +7050,9 @@ declare module DevExpress.viz.map { center?: Array; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; - component: dxVectorMap; - element: Element; + center: Array; + component: dxVectorMap; + element: Element; }) => void; /** A handler for the tooltipShown event. */ onTooltipShown?: (e: { diff --git a/drop/drop.d.ts b/drop/drop.d.ts index 1b994c9a1e..6bd963ca5c 100644 --- a/drop/drop.d.ts +++ b/drop/drop.d.ts @@ -1,17 +1,36 @@ -// Type definitions for Drop v1.3.0 +// Type definitions for Drop v1.4 // Project: http://github.hubspot.com/drop/ // Definitions by: Adi Dahiya // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -declare module drop { +// global Drop constructor +declare class Drop { + constructor(options: Drop.IDropOptions); - interface DropStatic { - new(options: IDropOptions): Drop; - createContext(options: IDropContextOptions): DropStatic; - } + public content: HTMLElement; + public element: HTMLElement; + public tether: Tether; + public open(): void; + public close(): void; + public remove(): void; + public toggle(): void; + public isOpened(): boolean; + public position(): void; + public destroy(): void; + /* + * Drop instances fire "open" and "close" events. + */ + public on(event: string, handler: Function, context?: any): void; + public once(event: string, handler: Function, context?: any): void; + public off(event: string, handler?: Function): void; + + public static createContext(options: Drop.IDropContextOptions): Drop; +} + +declare module Drop { interface IDropContextOptions { classPrefix?: string; defaults?: IDropOptions; @@ -27,33 +46,11 @@ declare module drop { constrainToScrollParent?: boolean; remove?: boolean; beforeClose?: () => boolean; - tetherOptions?: tether.ITetherOptions; + tetherOptions?: Tether.ITetherOptions; } - - interface Drop { - content: HTMLElement; - element: HTMLElement; - tether: tether.Tether; - open(): void; - close(): void; - remove(): void; - toggle(): void; - isOpened(): boolean; - position(): void; - destroy(): void; - /* - * Drop instances fire "open" and "close" events. - */ - on(event: string, handler: Function, context?: any): void; - once(event: string, handler: Function, context?: any): void; - off(event: string, handler?: Function): void; - } - } declare module "drop" { - export = drop; + export = Drop; } -declare var Drop: drop.DropStatic; - diff --git a/fromjs/fromjs-tests.ts b/fromjs/fromjs-tests.ts new file mode 100644 index 0000000000..dcc3dd6b99 --- /dev/null +++ b/fromjs/fromjs-tests.ts @@ -0,0 +1,5 @@ +/// +var array = [1, 2, 3, 4]; +from(array).each(function (value, key) { + console.log('Value ' + value + ' at index ' + key); +}); \ No newline at end of file diff --git a/fromjs/fromjs.d.ts b/fromjs/fromjs.d.ts new file mode 100644 index 0000000000..ec96a98b74 --- /dev/null +++ b/fromjs/fromjs.d.ts @@ -0,0 +1,46 @@ +// Type definitions for fromjs v2.1.6.1 +// Project: https://github.com/suckgamony/fromjs +// Definitions by: Glenn Dierckx +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function from(results: Array): FromJS.IQueryable; +declare function from(results: any): FromJS.IQueryable; + +declare module FromJS { + export interface IOrderedQueryable extends IQueryable { + thenBy(item: (item: T) => TResult): IOrderedQueryable; + thenByDesc(item: (item: T) => TResult): IOrderedQueryable; + } + + export interface IQueryable { + where(predicate: (item: T) => boolean): IQueryable; + select(item: (item: T) => TResult): IQueryable; + orderByDesc(item: (item: T) => TResult): IOrderedQueryable; + orderBy(item: (item: T) => TResult): IOrderedQueryable; + selectMany(item: (item: T) => Array): IQueryable; + skip(count: Number): IQueryable; + take(count: Number): IQueryable; + single(): T; + single(predicate: (item: T) => boolean): T; + singleOrDefault(): T; + singleOrDefault(predicate: (item: T) => boolean): T; + first(): T; + last(): T; + max(): T; + distinct(): IQueryable; + count(): number; + contains(item: T): boolean; + first(predicate: (item: T) => boolean): T; + firstOrDefault(): T; + each(action: (item: T) => void): void; + each(action: (value: T, key: TKey) => void): void; + each(action: (item: T) => void, a: boolean): void; + toArray(): Array; + concat(second: Array): IQueryable; + sum(): T; + distinct(): IQueryable; + any(): boolean; + any(predicate: (item: T) => boolean): boolean; + all(predicate: (item: T) => boolean): boolean; + } +} \ No newline at end of file diff --git a/gandi-livedns/gandi-livedns-tests.ts b/gandi-livedns/gandi-livedns-tests.ts new file mode 100644 index 0000000000..882f60a64b --- /dev/null +++ b/gandi-livedns/gandi-livedns-tests.ts @@ -0,0 +1,8 @@ +/// + +let zone: ZoneRecord = { + rrset_name: "MyZone", + rrset_type: "AAAA", + rrset_ttl: 10800, + rrset_values: [] +} diff --git a/gandi-livedns/gandi-livedns.d.ts b/gandi-livedns/gandi-livedns.d.ts new file mode 100644 index 0000000000..eedbd5927f --- /dev/null +++ b/gandi-livedns/gandi-livedns.d.ts @@ -0,0 +1,42 @@ +// Type definitions for Gandi LiveDNS +// Project: http://doc.livedns.gandi.net/ +// Definitions by: Xavier Stouder +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +interface Zone { + uuid: string; + name: string; + primary_ns: string; + apex_alias: string; + email: string; + serial: number; + refresh: number; + retry: number; + expire: number; + minimum: number; +} + +interface ZoneRecord { + rrset_name: string; + /** + * One of A, AAA, CNAME, MX, NS, TXT, WKS, SRV, LOC, SPF, SSHFP, DNAME + */ + rrset_type: string; + rrset_ttl: number; + rrset_values: string[]; +} + +interface Domain { + fqdn: string; + zone_uuid: string; +} + +interface Snapshot { + serial: number; + zone_uuid: string; + /** + * Can be used as a date with "new Date(change_time);" + */ + change_time: string; + zone_data: ZoneRecord[]; +} \ No newline at end of file diff --git a/googlemaps/google.maps.d.ts b/googlemaps/google.maps.d.ts index 699115473b..82a13d9122 100644 --- a/googlemaps/google.maps.d.ts +++ b/googlemaps/google.maps.d.ts @@ -353,7 +353,7 @@ declare module google.maps { setDraggable(flag: boolean): void; setIcon(icon: string|Icon|Symbol): void; setMap(map: Map|StreetViewPanorama): void; - getOpacity(opacity: number): void; + setOpacity(opacity: number): void; setOptions(options: MarkerOptions): void; setPlace(place: Place): void; setPosition(latlng: LatLng|LatLngLiteral): void; diff --git a/highcharts/highcharts-tests.ts b/highcharts/highcharts-tests.ts index 33c3c9e751..ad57f8bc4c 100644 --- a/highcharts/highcharts-tests.ts +++ b/highcharts/highcharts-tests.ts @@ -135,6 +135,51 @@ function originalTests() { var multipleYAxisOptions: HighchartsOptions = { yAxis: [{}, {}] }; + + var renderToIdChart = new Highcharts.Chart("container", { + xAxis: {}, + series: [{ + data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], + type: "line", + allowPointSelect: true + }] + }); + + var renderToElementChart = new Highcharts.Chart(div, { + xAxis: {}, + series: [{ + data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], + type: "line", + allowPointSelect: true + }] + }); + + var createWithFunction = Highcharts.chart({ + xAxis: {}, + series: [{ + data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], + type: "line", + allowPointSelect: true + }] + }); + + var createWithFunctionRenderToId = Highcharts.chart("container", { + xAxis: {}, + series: [{ + data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], + type: "line", + allowPointSelect: true + }] + }); + + var createWithFunctionRenderToElement = Highcharts.chart(div, { + xAxis: {}, + series: [{ + data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], + type: "line", + allowPointSelect: true + }] + }); } function test_alldefaults() { @@ -1554,15 +1599,18 @@ function test_Line() { series: [{ data: [1, 2, 3, 4, null, 6, 7, null, 9], step: 'right', - name: 'Right' + name: 'Right', + linecap: 'round' }, { data: [5, 6, 7, 8, null, 10, 11, null, 13], step: 'center', - name: 'Center' + name: 'Center', + linecap: 'round' }, { data: [9, 10, 11, 12, null, 14, 15, null, 17], step: 'left', - name: 'Left' + name: 'Left', + linecap: 'round' }] }); } diff --git a/highcharts/highcharts.d.ts b/highcharts/highcharts.d.ts index b5ed1d6628..4405f2407c 100644 --- a/highcharts/highcharts.d.ts +++ b/highcharts/highcharts.d.ts @@ -117,6 +117,13 @@ interface HighchartsAxisLabels { * @default 5 */ padding?: number; + /** + * Whether to reserve space for the labels. This can be turned off when for example the labels are rendered inside + * the plot area instead of outside. + * @default true + * @since 4.1.10 + */ + reserveSpace?: boolean; /** * Rotation of the labels in degrees. * @default 0 @@ -3666,6 +3673,11 @@ interface HighchartsSeriesChart { * @default 2 */ lineWidth?: number; + /** + * The line cap used for line ends and line joins on the graph. + * @default 'round' + */ + linecap?: string; /** * The id of another series to link to. Additionally, the value can be ':previous' to link to the previous series. * When two series are linked, only the first one appears in the legend. Toggling the visibility of this also @@ -4432,12 +4444,6 @@ interface HighchartsLineChart extends HighchartsSeriesChart { * @since 1.2.5 */ step?: boolean|string; - - /** - * The line cap used for line ends and line joins on the graph. - * @default 'round' - */ - linecap?: string; } /** @@ -4445,7 +4451,9 @@ interface HighchartsLineChart extends HighchartsSeriesChart { */ interface HighchartsPieChart extends HighchartsSeriesChart { /** - * The color of the border surrounding each column or bar. + * The color of the border surrounding each slice. When null, the border takes the same color as the slice fill. + * This can be used together with a borderWidth to fill drawing gaps created by antialiazing artefacts in + * borderless pies. * @default '#FFFFFF' */ borderColor?: string; @@ -4724,6 +4732,11 @@ interface HighchartsTreeMapChart extends HighchartsSeriesChart { * @since 4.1.8 */ maxPointWidth?: number; + /** + * The sort index of the point inside the treemap level. + * @since 4.1.10 + */ + sortIndex?: number; /** * A wrapper object for all the series options in specific states. */ @@ -5789,6 +5802,21 @@ interface HighchartsChart { * @return {HighchartsChartObject} */ new (options: HighchartsOptions, callback: (chart: HighchartsChartObject) => void): HighchartsChartObject; + /** + * This is the constructor for creating a new chart object. + * @param {string|HTMLElement} renderTo The id or a reference to a DOM element where the chart should be rendered (since v4.2.0). + * @param {HighchartsOptions} options The chart options + * @return {HighchartsChartObject} + */ + new (renderTo: string | HTMLElement, options: HighchartsOptions): HighchartsChartObject; + /** + * This is the constructor for creating a new chart object. + * @param {string|HTMLElement} renderTo The id or a reference to a DOM element where the chart should be rendered (since v4.2.0). + * @param {HighchartsOptions} options The chart options + * @param callback A function to execute when the chart object is finished loading and rendering. In most cases the chart is built in one thread, but in Internet Explorer version 8 or less the chart is sometimes initiated before the document is ready, and in these cases the chart object will not be finished directly after callingnew Highcharts.Chart(). As a consequence, code that relies on the newly built Chart object should always run in the callback. Defining a chart.event.load handler is equivalent. + * @return {HighchartsChartObject} + */ + new (renderTo: string | HTMLElement, options: HighchartsOptions, callback: (chart: HighchartsChartObject) => void): HighchartsChartObject; } /** @@ -5970,6 +5998,16 @@ interface HighchartsStatic { Renderer: HighchartsRenderer; Color(color: string | HighchartsGradient): string | HighchartsGradient; + /** + * As Highcharts.Chart, but without need for the new keyword. + * @since 4.2.0 + */ + chart(options: HighchartsOptions, callback?: (chart: HighchartsChartObject) => void): HighchartsChartObject; + /** + * As Highcharts.Chart, but without need for the new keyword. + * @since 4.2.0 + */ + chart(renderTo: string | HTMLElement, options: HighchartsOptions, callback?: (chart: HighchartsChartObject) => void): HighchartsChartObject; /** * An array containing the current chart objects in the page. A chart's position in the array is preserved * throughout the page's lifetime. When a chart is destroyed, the array item becomes undefined. diff --git a/highlightjs/highlightjs.d.ts b/highlightjs/highlightjs.d.ts index 8a0eceab52..5d6f89c711 100644 --- a/highlightjs/highlightjs.d.ts +++ b/highlightjs/highlightjs.d.ts @@ -1,4 +1,4 @@ -// Type definitions for highlight.js v8.2.0 +// Type definitions for highlight.js v9.1.0 // Project: https://github.com/isagalaev/highlight.js // Definitions by: Niklas Mollenhauer , Jeremy Hull // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -35,6 +35,11 @@ declare module hljs export function inherit(parent: Object, obj: Object): Object; + export function COMMENT( + begin: (string|RegExp), + end: (string|RegExp), + inherits: IModeBase): IMode; + // Common regexps export var IDENT_RE: string; export var UNDERSCORE_IDENT_RE: string; @@ -111,8 +116,8 @@ declare module hljs { className?: string; aliases?: string[]; - begin?: string; - end?: string; + begin?: (string|RegExp); + end?: (string|RegExp); case_insensitive?: boolean; beginKeyword?: string; endsWithParent?: boolean; diff --git a/jsend/jsend-tests.ts b/jsend/jsend-tests.ts new file mode 100644 index 0000000000..72598c904b --- /dev/null +++ b/jsend/jsend-tests.ts @@ -0,0 +1,10 @@ +/// + +import jsend = require('jsend'); + +var valid: boolean = jsend.isValid({ status: 'success' }); + +var success = jsend.success('data'); +var error = jsend.error('some error'); +error = jsend.error({ message: 'nessage', code: 123 }); + diff --git a/jsend/jsend.d.ts b/jsend/jsend.d.ts new file mode 100644 index 0000000000..4c87aad340 --- /dev/null +++ b/jsend/jsend.d.ts @@ -0,0 +1,46 @@ +// Type definitions for jsend 1.0.2 +// Project: https://github.com/Prestaul/jsend +// Definitions by: Federico Caselli +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module Express { + export interface Response { + jsend: jsend.jsendExpress; + } +} + +declare module jsend { + interface JSendObject { + status: string; + code?: number; + data?: any; + message?: string; + } + + interface jsendCore { + success(data: Object): JSendObject; + fail(data: Object): JSendObject; + error(message: string | { message: string, code?: number, data?: Object }): JSendObject; + } + + interface jsendExpress extends jsendCore { + (err: string | Object, json?: Object): void + } + + interface jsend extends jsendCore { + isValid(json: Object): boolean; + forward(json: Object, done: (err: any, data: any) => any):void; + fromArguments(err: string | Object, json?: Object): JSendObject; + middleware(req: any, res: any, next: Function): any; + } + + interface jsendExport extends jsend { + (config?: { strict: boolean }, host?: Object): jsend + } + var jsend: jsendExport; +} + +declare module "jsend" { + export = jsend.jsend; +} + diff --git a/jsonwebtoken/jsonwebtoken.d.ts b/jsonwebtoken/jsonwebtoken.d.ts index b558df2e5f..a616027e99 100644 --- a/jsonwebtoken/jsonwebtoken.d.ts +++ b/jsonwebtoken/jsonwebtoken.d.ts @@ -43,12 +43,16 @@ declare module "jsonwebtoken" { maxAge?: string; } - export interface VerifyCallbak { + export interface VerifyCallback { (err: Error, decoded: any): void; } + export interface SignCallback { + (err: Error, encoded: string): void; + } + /** - * Sign the given payload into a JSON Web Token string + * Synchronously sign the given payload into a JSON Web Token string * @param {String|Object|Buffer} payload - Payload to sign, could be an literal, buffer or string * @param {String|Buffer} secretOrPrivateKey - Either the secret for HMAC algorithms, or the PEM encoded private key for RSA and ECDSA. * @param {SignOptions} [options] - Options for the signature @@ -57,14 +61,34 @@ declare module "jsonwebtoken" { export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options?: SignOptions): string; /** - * Verify given token using a secret or a public key to get a decoded token + * Sign the given payload into a JSON Web Token string + * @param {String|Object|Buffer} payload - Payload to sign, could be an literal, buffer or string + * @param {String|Buffer} secretOrPrivateKey - Either the secret for HMAC algorithms, or the PEM encoded private key for RSA and ECDSA. + * @param {SignOptions} [options] - Options for the signature + * @param {Function} callback - Callback to get the encoded token on + */ + export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, callback: SignCallback): void; + export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options: SignOptions, callback: SignCallback): void; + + /** + * Synchronously verify given token using a secret or a public key to get a decoded token + * @param {String} token - JWT string to verify + * @param {String|Buffer} secretOrPublicKey - Either the secret for HMAC algorithms, or the PEM encoded public key for RSA and ECDSA. + * @param {VerifyOptions} [options] - Options for the verification + * @returns The decoded token. + */ + function verify(token: string, secretOrPublicKey: string | Buffer): any; + function verify(token: string, secretOrPublicKey: string | Buffer, options?: VerifyOptions): any; + + /** + * Asynchronously verify given token using a secret or a public key to get a decoded token * @param {String} token - JWT string to verify * @param {String|Buffer} secretOrPublicKey - Either the secret for HMAC algorithms, or the PEM encoded public key for RSA and ECDSA. * @param {VerifyOptions} [options] - Options for the verification * @param {Function} callback - Callback to get the decoded token on */ - function verify(token: string, secretOrPublicKey: string | Buffer, callback?: VerifyCallbak): void; - function verify(token: string, secretOrPublicKey: string | Buffer, options?: VerifyOptions, callback?: VerifyCallbak): void; + function verify(token: string, secretOrPublicKey: string | Buffer, callback?: VerifyCallback): void; + function verify(token: string, secretOrPublicKey: string | Buffer, options?: VerifyOptions, callback?: VerifyCallback): void; /** * Returns the decoded payload without verifying if the signature is valid. diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 5c52443587..66f0bf2cab 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -9953,6 +9953,29 @@ module TestNoop { } } +namespace TestNthArg { + type SampleFunc = (...args: any[]) => any; + + { + let result: SampleFunc; + + result = _.nthArg(); + result = _.nthArg(1); + } + + { + let result: _.LoDashImplicitObjectWrapper; + + result = _(1).nthArg(); + } + + { + let result: _.LoDashExplicitObjectWrapper; + + result = _(1).chain().nthArg(); + } +} + // _.over namespace TestOver { { @@ -10173,26 +10196,14 @@ module TestTimes { let result: number[]; result = _.times(42); + result = _(42).times(); } { let result: TResult[]; result = _.times(42, iteratee); - result = _.times(42, iteratee, any); - } - - { - let result: _.LoDashImplicitArrayWrapper; - - result = _(42).times(); - } - - { - let result: _.LoDashImplicitArrayWrapper; - result = _(42).times(iteratee); - result = _(42).times(iteratee, any); } { @@ -10205,7 +10216,6 @@ module TestTimes { let result: _.LoDashExplicitArrayWrapper; result = _(42).chain().times(iteratee); - result = _(42).chain().times(iteratee, any); } } diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index b6e884fc9b..aaa8dc7e3c 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -16308,6 +16308,31 @@ declare module _ { noop(...args: any[]): _.LoDashExplicitWrapper; } + //_.nthArg + interface LoDashStatic { + /** + * Creates a function that returns its nth argument. + * + * @param n The index of the argument to return. + * @return Returns the new function. + */ + nthArg(n?: number): TResult; + } + + interface LoDashImplicitWrapper { + /** + * @see _.nthArg + */ + nthArg(): LoDashImplicitObjectWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.nthArg + */ + nthArg(): LoDashExplicitObjectWrapper; + } + //_.over interface LoDashStatic { /** @@ -16632,18 +16657,16 @@ declare module _ { //_.times interface LoDashStatic { /** - * Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee is - * bound to thisArg and invoked with one argument; (index). + * Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee + * is invoked with one argument; (index). * * @param n The number of times to invoke iteratee. * @param iteratee The function invoked per iteration. - * @param thisArg The this binding of iteratee. * @return Returns the array of results. */ times( n: number, - iteratee: (num: number) => TResult, - thisArg?: any + iteratee: (num: number) => TResult ): TResult[]; /** @@ -16657,14 +16680,13 @@ declare module _ { * @see _.times */ times( - iteratee: (num: number) => TResult, - thisArgs?: any - ): LoDashImplicitArrayWrapper; + iteratee: (num: number) => TResult + ): TResult[]; /** * @see _.times */ - times(): LoDashImplicitArrayWrapper; + times(): number[]; } interface LoDashExplicitWrapper { @@ -16672,8 +16694,7 @@ declare module _ { * @see _.times */ times( - iteratee: (num: number) => TResult, - thisArgs?: any + iteratee: (num: number) => TResult ): LoDashExplicitArrayWrapper; /** diff --git a/mock-fs/mock-fs-tests.ts b/mock-fs/mock-fs-tests.ts index d4c5eae4f7..ef628ce588 100644 --- a/mock-fs/mock-fs-tests.ts +++ b/mock-fs/mock-fs-tests.ts @@ -77,3 +77,10 @@ var mockedFS = mock.fs({ if (mockedFS.readFileSync('/file', { encoding: 'utf8' }) === 'blah') { console.log('woo'); } + +mock({ + 'path/to/file.txt': 'file content here' +}, { + createTmp: true, + createCwd: false +}); diff --git a/mock-fs/mock-fs.d.ts b/mock-fs/mock-fs.d.ts index 539e74e869..6178d762d8 100644 --- a/mock-fs/mock-fs.d.ts +++ b/mock-fs/mock-fs.d.ts @@ -1,6 +1,6 @@ -// Type definitions for mock-fs 2.5.0 +// Type definitions for mock-fs 3.6.0 // Project: https://github.com/tschaub/mock-fs -// Definitions by: Wim Looman +// Definitions by: Wim Looman , Qubo // Definitions: https://github.com/borisyankov/DefinitelyTyped /// @@ -8,7 +8,7 @@ declare module "mock-fs" { import fs = require("fs"); - function mock(config?: mock.Config): void; + function mock(config?: mock.Config, options?: mock.Options): void; module mock { function file(config: FileConfig): File; @@ -17,12 +17,17 @@ declare module "mock-fs" { function restore(): void; - function fs(config?: Config): typeof fs; + function fs(config?: Config, options?: Options): typeof fs; interface Config { [path: string]: string | Buffer | File | Directory | Symlink | Config; } + interface Options { + createCwd?: boolean; + createTmp?: boolean; + } + interface CommonConfig { mode?: number; uid?: number; @@ -30,6 +35,7 @@ declare module "mock-fs" { atime?: Date; ctime?: Date; mtime?: Date; + birthtime?: Date; } interface FileConfig extends CommonConfig { diff --git a/moment/moment-node.d.ts b/moment/moment-node.d.ts index 1382a12068..830f39ef4b 100644 --- a/moment/moment-node.d.ts +++ b/moment/moment-node.d.ts @@ -18,7 +18,7 @@ declare module moment { seconds?: number; milliseconds?: number; } - + interface MomentInput { /** Year */ years?: number; @@ -313,6 +313,7 @@ declare module moment { * @since 2.10.7+ */ isSameOrBefore(b: MomentComparable, granularity?: string): boolean; + isSameOrAfter(b: MomentComparable, granularity?: string): boolean; /** * @deprecated since version 2.8.0 @@ -344,7 +345,7 @@ declare module moment { get(unit: string): number; set(unit: string, value: number): Moment; set(objectLiteral: MomentInput): Moment; - + /** * This returns an object containing year, month, day-of-month, hour, minute, seconds, milliseconds. * @since 2.10.5+ diff --git a/once/once-tests.ts b/once/once-tests.ts new file mode 100644 index 0000000000..05f60f0400 --- /dev/null +++ b/once/once-tests.ts @@ -0,0 +1,13 @@ +/// + +import once from "once"; + +once(() => 3); +once(() => 3)(); +let s = once(() => ({foo: 1}))(); +s.foo; + +once.proto(); + +once(() => 3).called && true; +once(() => ({foo: 1})).value.foo; diff --git a/once/once.d.ts b/once/once.d.ts new file mode 100644 index 0000000000..a0aa60e798 --- /dev/null +++ b/once/once.d.ts @@ -0,0 +1,23 @@ +// Type definitions for once v1.3.3 +// Project: https://github.com/isaacs/once +// Definitions by: Denis Sokolov +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +interface SimpleFunction { + (...args: any[]): Result; +} + +interface OnceFunction extends SimpleFunction { + called: boolean; + value: Result; +} + +interface Once { + (f: SimpleFunction): OnceFunction; + proto: Function; +} + +declare module "once" { + var once: Once; + export default once; +} diff --git a/passport-http-bearer/passport-http-bearer-tests.ts b/passport-http-bearer/passport-http-bearer-tests.ts new file mode 100644 index 0000000000..b776bbbbd7 --- /dev/null +++ b/passport-http-bearer/passport-http-bearer-tests.ts @@ -0,0 +1,60 @@ +/// + +/** + * Created by Isman Usoh . + */ + +import express = require("express"); +import passport = require("passport"); +import httpBearer = require("passport-http-bearer"); + +//#region Test Models +interface IUser { + token: string; +} + +class User implements IUser { + public token: string; + + static findOne(user: IUser, callback: (err: Error, user: User) => void): void { + callback(null, new User()); + } +} +//#endregion + +passport.use(new httpBearer.Strategy((token: string, done: any) => { + User.findOne({ token: token }, function(err, user) { + if (err) { + return done(err); + } + + if (!user) { + return done(null, false); + } + + return done(null, user); + }); +})); + +passport.use(new httpBearer.Strategy({ + scope: ["read", "write"], + realm: "User", + passReqToCallback: true +}, function(req: express.Request, token: string, done: any) { + User.findOne({ token: token }, function(err, user) { + if (err) { + return done(err, null, { message: "Access Denied" }); + } + + if (!user) { + return done(null, false, "Access Denied"); + } + + return done(null, user); + }); +})); + +let app = express(); +app.post("/login", passport.authenticate("bearer", { failureRedirect: "/login" }), function(req, res) { + res.redirect("/"); +}); diff --git a/passport-http-bearer/passport-http-bearer.d.ts b/passport-http-bearer/passport-http-bearer.d.ts new file mode 100644 index 0000000000..6573b4afa4 --- /dev/null +++ b/passport-http-bearer/passport-http-bearer.d.ts @@ -0,0 +1,40 @@ +// Type definitions for passport-http-bearer 1.0.1 +// Project: https://github.com/jaredhanson/passport-http-bearer +// Definitions by: Isman Usoh +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// +/// + +declare module "passport-http-bearer" { + + import passport = require("passport"); + import express = require("express"); + + interface IStrategyOptions { + scope: string | Array; + realm: string; + passReqToCallback: boolean; + } + interface IVerifyOptions { + message: string; + scope: string | Array; + } + + interface VerifyFunction { + (token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void; + } + + interface VerifyFunctionWithRequest { + (req: express.Request, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void; + } + + class Strategy implements passport.Strategy { + constructor(verify: VerifyFunction); + constructor(options: IStrategyOptions, verify: VerifyFunction); + constructor(options: IStrategyOptions, verify: VerifyFunctionWithRequest); + + name: string; + authenticate: (req: express.Request, options?: Object) => void; + } +} diff --git a/prettyjson/prettyjson-tests.ts b/prettyjson/prettyjson-tests.ts index 80ecbbb0f7..5f83a1c1a1 100644 --- a/prettyjson/prettyjson-tests.ts +++ b/prettyjson/prettyjson-tests.ts @@ -1,4 +1,5 @@ /// +import prettyjson = require("prettyjson"); var options: prettyjson.RendererOptions, input: string, diff --git a/prettyjson/prettyjson.d.ts b/prettyjson/prettyjson.d.ts index cf2a69c197..252fccf334 100644 --- a/prettyjson/prettyjson.d.ts +++ b/prettyjson/prettyjson.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module prettyjson { +declare module "prettyjson" { /** * Defines prettyjson version diff --git a/react-day-picker/react-day-picker-tests.tsx b/react-day-picker/react-day-picker-tests.tsx index 984834dfd6..3afdf07343 100644 --- a/react-day-picker/react-day-picker-tests.tsx +++ b/react-day-picker/react-day-picker-tests.tsx @@ -20,3 +20,17 @@ function MyComponent() { } DayPicker2.DateUtils.clone(new Date()); DayPicker2.DateUtils.isDayInRange(new Date(), { from: new Date() }); + +// test interface for captionElement prop +interface MyCaptionProps extends ReactDayPicker.CaptionElementProps { } +class Caption extends React.Component { + render() { + const { date, locale, localeUtils, onClick } = this.props; + return ( +
+ { localeUtils.formatMonthTitle(date, locale) } +
+ ); + } +} +}/> diff --git a/react-day-picker/react-day-picker.d.ts b/react-day-picker/react-day-picker.d.ts index 94214ec455..921add78c9 100644 --- a/react-day-picker/react-day-picker.d.ts +++ b/react-day-picker/react-day-picker.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-day-picker v1.1.4 +// Type definitions for react-day-picker v1.2.0 // Project: https://github.com/gpbl/react-day-picker // Definitions by: Giampaolo Bellavite , Jason Killian // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -13,18 +13,28 @@ declare module "react-day-picker" { declare var DayPicker: typeof ReactDayPicker.DayPicker; declare namespace ReactDayPicker { + import React = __React; + interface LocaleUtils { formatMonthTitle: (month: Date, locale: string) => string; formatWeekdayShort: (weekday: number, locale: string) => string; formatWeekdayLong: (weekday: number, locale: string) => string; getFirstDayOfWeek: (locale: string) => number; + getMonths: (locale: string) => string[]; } interface Modifiers { [name: string]: (date: Date) => boolean; } - interface Props extends __React.Props{ + interface CaptionElementProps extends React.Props { + date?: Date; + localeUtils?: LocaleUtils; + locale?: string; + onClick?: React.MouseEventHandler; + } + + interface Props extends React.Props{ modifiers?: Modifiers; initialMonth?: Date; numberOfMonths?: number; @@ -35,18 +45,19 @@ declare namespace ReactDayPicker { toMonth?: Date; localeUtils?: LocaleUtils; locale?: string; - onDayClick?: (e: __React.SyntheticEvent, day: Date, modifiers: string[]) => any; - onDayTouchTap?: (e: __React.SyntheticEvent, day: Date, modifiers: string[]) => any; - onDayMouseEnter?: (e: __React.SyntheticEvent, day: Date, modifiers: string[]) => any; - onDayMouseLeave?: (e: __React.SyntheticEvent, day: Date, modifiers: string[]) => any; + captionElement?: React.ReactElement; + onDayClick?: (e: React.SyntheticEvent, day: Date, modifiers: string[]) => any; + onDayTouchTap?: (e: React.SyntheticEvent, day: Date, modifiers: string[]) => any; + onDayMouseEnter?: (e: React.SyntheticEvent, day: Date, modifiers: string[]) => any; + onDayMouseLeave?: (e: React.SyntheticEvent, day: Date, modifiers: string[]) => any; onMonthChange?: (month: Date) => any; - onCaptionClick?: (e: __React.SyntheticEvent, month: Date) => any; + onCaptionClick?: (e: React.SyntheticEvent, month: Date) => any; className?: string; - style?: __React.CSSProperties; + style?: React.CSSProperties; tabIndex?: number; } - class DayPicker extends __React.Component { + class DayPicker extends React.Component { showMonth(month: Date): void; showPreviousMonth(): void; showNextMonth(): void; @@ -55,6 +66,7 @@ declare namespace ReactDayPicker { namespace DayPicker { var LocaleUtils: LocaleUtils; namespace DateUtils { + function addMonths(d: Date, n: number): Date; function clone(d: Date): Date; function isSameDay(d1?: Date, d2?: Date): boolean; function isPastDay(d: Date): boolean; diff --git a/react-native/react-native.d.ts b/react-native/react-native.d.ts index 1ffa1d5461..b3fa3e3cc4 100644 --- a/react-native/react-native.d.ts +++ b/react-native/react-native.d.ts @@ -2712,7 +2712,7 @@ declare namespace __React { * Fires at most once per frame during scrolling. * The frequency of the events can be contolled using the scrollEventThrottle prop. */ - onScroll?: () => void + onScroll?: (event?: { nativeEvent: NativeScrollEvent }) => void /** * Experimental: When true offscreen child views (whose `overflow` value is diff --git a/react-router-redux/react-router-redux-tests.ts b/react-router-redux/react-router-redux-tests.ts new file mode 100644 index 0000000000..98fcdca1be --- /dev/null +++ b/react-router-redux/react-router-redux-tests.ts @@ -0,0 +1,20 @@ +/// +/// +/// + + + +import { createStore, combineReducers, applyMiddleware } from 'redux'; +import { browserHistory } from 'react-router'; +import { syncHistory, routeReducer } from 'react-router-redux'; + +const reducer = combineReducers({ routing: routeReducer }); + +// Sync dispatched route actions to the history +const reduxRouterMiddleware = syncHistory(browserHistory); +const createStoreWithMiddleware = applyMiddleware(reduxRouterMiddleware)(createStore); + +const store = createStoreWithMiddleware(reducer); + +// Required for replaying actions from devtools to +reduxRouterMiddleware.listenForReplays(store); diff --git a/react-router-redux/react-router-redux.d.ts b/react-router-redux/react-router-redux.d.ts new file mode 100644 index 0000000000..7248fb3afc --- /dev/null +++ b/react-router-redux/react-router-redux.d.ts @@ -0,0 +1,48 @@ +// Type definitions for react-router-redux v2.1.0 +// Project: https://github.com/rackt/react-router-redux +// Definitions by: Isman Usoh , Noah Shipley , Dimitri Rosenberg +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// +/// + +declare namespace ReactRouterRedux { + import R = Redux; + import H = HistoryModule; + + const TRANSITION: string; + const UPDATE_LOCATION: string; + + const push: PushAction; + const replace: ReplaceAction; + const go: GoAction; + const goBack: GoForwardAction; + const goForward: GoBackAction; + const routeActions: RouteActions; + + type LocationDescriptor = H.Location | H.Path; + type PushAction = (nextLocation: LocationDescriptor) => void; + type ReplaceAction = (nextLocation: LocationDescriptor) => void; + type GoAction = (n: number) => void; + type GoForwardAction = () => void; + type GoBackAction = () => void; + + interface RouteActions { + push: PushAction; + replace: ReplaceAction; + go: GoAction; + goForward: GoForwardAction; + goBack: GoBackAction; + } + interface HistoryMiddleware extends R.Middleware { + listenForReplays(store: R.Store, selectLocationState?: Function): void; + unsubscribe(): void; + } + + function routeReducer(state?: any, options?: any): R.Reducer; + function syncHistory(history: H.History): HistoryMiddleware; +} + +declare module "react-router-redux" { + export = ReactRouterRedux; +} diff --git a/react/react-tests.ts b/react/react-tests.ts index 53861d35cb..13e2ab12f0 100644 --- a/react/react-tests.ts +++ b/react/react-tests.ts @@ -146,9 +146,10 @@ var StatelessComponent = (props: SCProps) => { return React.DOM.div(null, props.foo); }; -// Must explicitly type-annotate to add defaultProps/contextTypes +// Must explicitly type-annotate to add displayName/defaultProps/contextTypes var StatelessComponent2: React.StatelessComponent = (props: SCProps) => React.DOM.div(null, props.foo); +StatelessComponent2.displayName = "StatelessComponent2"; StatelessComponent2.defaultProps = { foo: 42 }; @@ -405,7 +406,8 @@ var mappedChildrenArray: number[] = React.Children.map(children, (child) => { return 42; }); React.Children.forEach(children, (child) => {}); var nChildren: number = React.Children.count(children); -var onlyChild = React.Children.only([null, [[["Hallo"], true]], false]); +var onlyChild: React.ReactElement = React.Children.only(React.DOM.div()); // ok +onlyChild = React.Children.only([null, [[["Hallo"], true]], false]); // error var childrenToArray: React.ReactChild[] = React.Children.toArray(children); // @@ -521,7 +523,10 @@ React.createClass({ // // TestUtils addon // -------------------------------------------------------------------------- -var node: Element; + +var inst: ModernComponent = TestUtils.renderIntoDocument(element); +var node: Element = TestUtils.renderIntoDocument(React.DOM.div()); + TestUtils.Simulate.click(node); TestUtils.Simulate.change(node); TestUtils.Simulate.keyDown(node, { key: "Enter" }); diff --git a/react/react.d.ts b/react/react.d.ts index 3dff126f45..aba2851585 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -149,6 +149,7 @@ declare namespace __React { propTypes?: ValidationMap

; contextTypes?: ValidationMap; defaultProps?: P; + displayName?: string; } interface ComponentClass

{ @@ -2077,7 +2078,7 @@ declare namespace __React { map(children: ReactNode, fn: (child: ReactChild, index: number) => T): T[]; forEach(children: ReactNode, fn: (child: ReactChild, index: number) => any): void; count(children: ReactNode): number; - only(children: ReactNode): ReactChild; + only(children: ReactNode): ReactElement; toArray(children: ReactNode): ReactChild[]; } diff --git a/reselect/reselect-tests.ts b/reselect/reselect-tests.ts new file mode 100644 index 0000000000..dd8031bc25 --- /dev/null +++ b/reselect/reselect-tests.ts @@ -0,0 +1,42 @@ +/// +import {createSelector, defaultMemoize} from "reselect"; + +type Item1 = { + prop1: number; +} + +type Item2 = { + prop2: number; +} + +type State = { + item1: Item1, + item2: Item2 +} + +function getItem1(state: State, props: any): Item1 { + return state.item1; +} + +function getItem2(state: State, props: any): Item2 { + return state.item2; +} + +const selector = createSelector( + getItem1, + getItem2, + (item1: Item1, item2: Item2) => { + return item1.prop1 + item2.prop2; + } +); + +const state = { + item1: { prop1: 10 }, + item2: { prop2: 20 } +} + +const props = { multiplier: 10 }; +const total: number = selector(state, props); + +const getItem2Memoized = defaultMemoize(getItem2); +const memItem: Item2 = getItem2Memoized(state, {}); \ No newline at end of file diff --git a/reselect/reselect.d.ts b/reselect/reselect.d.ts new file mode 100644 index 0000000000..72d03a83a9 --- /dev/null +++ b/reselect/reselect.d.ts @@ -0,0 +1,36 @@ +// Type definitions for reselect v2.0.2 +// Project: https://github.com/rackt/reselect +// Definitions by: Frank Wallis +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module Reselect { + + type Selector = (state: TInput, props?: any) => TOutput; + + function createSelector(selector1: Selector, combiner: (arg1: T1) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, combiner: (arg1: T1, arg2: T2) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, selector8: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, selector8: Selector, selector9: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, selector8: Selector, selector9: Selector, selector10: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, selector8: Selector, selector9: Selector, selector10: Selector, selector11: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10, arg11: T11) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, selector8: Selector, selector9: Selector, selector10: Selector, selector11: Selector, selector12: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10, arg11: T11, arg12: T12) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, selector8: Selector, selector9: Selector, selector10: Selector, selector11: Selector, selector12: Selector, selector13: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10, arg11: T11, arg12: T12, arg13: T13) => TOutput): Selector; + function createSelector(selector1: Selector, selector2: Selector, selector3: Selector, selector4: Selector, selector5: Selector, selector6: Selector, selector7: Selector, selector8: Selector, selector9: Selector, selector10: Selector, selector11: Selector, selector12: Selector, selector13: Selector, selector14: Selector, combiner: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10, arg11: T11, arg12: T12, arg13: T13, arg14: T14) => TOutput): Selector; + + function createStructuredSelector(inputSelectors: any, selectorCreator?: any): any; + + type EqualityChecker = (arg1: T, arg2: T) => boolean; + type Memoizer = (func: TFunc, equalityCheck?: EqualityChecker) => TFunc; + + const defaultMemoize: Memoizer; + function createSelectorCreator(memoize: Memoizer, ...memoizeOptions: any[]): any; +} + +declare module "reselect" { + export = Reselect +} \ No newline at end of file diff --git a/tabtab/tabtab.d.ts b/tabtab/tabtab.d.ts index a744904acc..05b7dff086 100644 --- a/tabtab/tabtab.d.ts +++ b/tabtab/tabtab.d.ts @@ -51,37 +51,37 @@ declare module "tabtab" { * Holds interesting values to drive the output of the completion. */ interface Data { - + /** * full command being completed */ line: string; - + /** * number of words */ words: number; - + /** * cursor position */ point: number; - + /** * tabing in the middle of a word: foo bar baz bar foobarrrrrrr */ partial: string; - + /** * last word of the line */ last: string; - + /** * last partial of the line */ lastPartial: string; - + /** * the previous word */ diff --git a/tedious/tedious.d.ts b/tedious/tedious.d.ts index 490af100e6..db317a3536 100644 --- a/tedious/tedious.d.ts +++ b/tedious/tedious.d.ts @@ -15,13 +15,13 @@ declare module 'tedious' { */ name: string; } - + export interface ColumnMetaData { /** * The column's name */ colName: string; - + /** * The column type. */ @@ -31,18 +31,18 @@ declare module 'tedious' { * The precision. Only applicable to numeric and decimal. */ precision?: number; - + /** * The scale. Only applicable to numeric, decimal, time, datetime2 and datetimeoffset. */ scale?: number; /** - * The length, for char, varchar, nvarchar and varbinary. + * The length, for char, varchar, nvarchar and varbinary. */ dataLength?: number; } - + export interface DebugOptions { /** * A boolean, controlling whether debug events will be emitted with text describing packet details (default: false). @@ -58,13 +58,13 @@ declare module 'tedious' { * A boolean, controlling whether debug events will be emitted with text describing packet payload details (default: false). */ payload?: boolean; - + /** * A boolean, controlling whether debug events will be emitted with text describing token stream tokens (default: false). */ token?: boolean; } - + export enum ISOLATION_LEVEL { NO_CHANGE = 0x00, READ_UNCOMMITTED = 0x01, @@ -73,7 +73,7 @@ declare module 'tedious' { SERIALIZABLE = 0x04, SNAPSHOT = 0x05 } - + /** * Unfortunately these aren't valid JavaScript identifiers * so I cannot list the values here as enum values @@ -89,7 +89,7 @@ declare module 'tedious' { type: string; name: string; } - + export interface TediousTypes { BigInt: TediousType; Binary: TediousType; @@ -130,82 +130,82 @@ declare module 'tedious' { VarChar: TediousType; Xml: TediousType; } - + export var TYPES: TediousTypes; - + export interface ConnectionOptions { - + /** * Port to connect to (default: 1433). Mutually exclusive with options.instanceName. */ port?: number; - + /** * The instance name to connect to. The SQL Server Browser service must be running on the database server, * and UDP port 1444 on the database server must be reachable. (no default) Mutually exclusive with options.port. */ instanceName?: string; - + /** * Database to connect to (default: dependent on server configuration). */ database?: string; - + /** - * By default, if the database requestion by options.database cannot be accessed, - * the connection will fail with an error. However, if options.fallbackToDefaultDb is set to true, + * By default, if the database requestion by options.database cannot be accessed, + * the connection will fail with an error. However, if options.fallbackToDefaultDb is set to true, * then the user's default database will be * used instead (Default: false). */ fallbackToDefaultDb?: boolean; - + /** * The number of milliseconds before the attempt to connect is considered failed (default: 15000). */ connectTimeout?: number; - + /** * The number of milliseconds before a request is considered failed, or 0 for no timeout (default: 15000). */ requestTimeout?: number; - + /** * The number of milliseconds before the cancel (abort) of a request is considered failed (default: 5000). */ cancelTimeout?: number; - + /** * The size of TDS packets (subject to negotiation with the server). Should be a power of 2. (default: 4096). */ packetSize?: number; - + /** * A boolean determining whether to pass time values in UTC or local time. (default: true). */ useUTC?: boolean; - + /** * A boolean determining whether to rollback a transaction automatically if any error is encountered - * during the given transaction's execution. This sets the value for SET XACT_ABORT during the initial + * during the given transaction's execution. This sets the value for SET XACT_ABORT during the initial * SQL phase of a connection (documentation). */ abortTransactionOnError?: boolean; - + /** * A string indicating which network interface (ip addres) to use when connecting to SQL Server. */ localAddress?: string; - + /** * A boolean determining whether to return rows as arrays or key-value collections. (default: false). */ useColumnNames?: boolean; - + /** * A boolean, controlling whether the column names returned will have the first letter converted * to lower case (true) or not. This value is ignored if you provide a columnNameReplacer. (default: false). */ camelCaseColumns?: boolean; - + /** * A function with parameters (columnName, index, columnMetaData) and returning a string. If provided, * this will be called once per column per result-set. The returned value will be used instead of the @@ -213,56 +213,56 @@ declare module 'tedious' { * naming conventions. (default: null). */ columnNameReplacer?: (columnName: string, index: number, columnMetaData: ColumnMetaData) => string; - + /** * Debug options */ debug?: DebugOptions; - + /** * The default isolation level that transactions will be run with. (default: READ_COMMITED). */ isolationLevel?: ISOLATION_LEVEL; - + /** * The default isolation level for new connections. All out-of-transaction queries are executed with this setting. (default: READ_COMMITED) */ connectionIsolationLevel?: ISOLATION_LEVEL; - + /** * A boolean, determining whether the connection will request read only access from a SQL Server Availability Group. For more information, see here. (default: false). */ readOnlyIntent?: boolean; - + /** * A boolean determining whether or not the connection will be encrypted. Set to true if you're on Windows Azure. (default: false). */ encrypt?: boolean; - + /** * When encryption is used, an object may be supplied that will be used for the first argument when calling tls.createSecurePair (default: {}). */ cryptoCredentialsDetails?: Object; - + /** * A boolean, that when true will expose received rows in Requests' done* events. See done, doneInProc and doneProc. (default: false) * Caution: If many row are received, enabling this option could result in excessive memory usage. */ rowCollectionOnDone?: boolean; - + /** * A boolean, that when true will expose received rows in Requests' completion callback. See new Request. (default: false) * Caution: If many row are received, enabling this option could result in excessive memory usage. */ rowCollectionOnRequestCompletion?: boolean; - + /** * The version of TDS to use. If server doesn't support specified version, negotiated version is used instead. (default: 7_4). * Take this from tedious.TDS_VERSION.7_4 . */ tdsVersion?: number; } - + export interface ConnectionConfig { /** * User name to use for authentication. @@ -283,13 +283,13 @@ declare module 'tedious' { * Once you set domain, driver will connect to SQL Server using domain login. */ domain?: string; - + /** * Further options */ options?: ConnectionOptions; } - + export interface ParameterOptions { // for VarChar, NVarChar, VarBinary length?: number; @@ -298,7 +298,7 @@ declare module 'tedious' { // scale for Numeric, Decimal, Time, DateTime2, DateTimeOffset scale?: number; } - + /** * Type of each column in the Request#row event */ @@ -306,7 +306,7 @@ declare module 'tedious' { metadata: ColumnMetaData; value: any; } - + /** * A Request instance represents a request that can be executed on a connection * @event 'columnMetadata' This event, describing result set columns, will be emitted before row events are emitted. This event may be emited multiple times when more than one recordset is produced by the statement. @@ -317,7 +317,7 @@ declare module 'tedious' { * @event 'returnValue' A value for an output parameter (that was added to the request with addOutputParameter(...)). See also Using Parameters. */ export class Request extends events.EventEmitter { - + /** * Constructor * @param sql The SQL statement to be executed (or a procedure name, if the request is to be used with connection.callProcedure). @@ -327,7 +327,7 @@ declare module 'tedious' { * rows: Rows as a result of executing the SQL statement. Will only be avaiable if Connection's config.options.rowCollectionOnRequestCompletion is true. */ constructor(sql: string, callback: (error: Error, rowCount: number, rows: any[]) => void); - + /** * Add an input parameter to the request. * @param name The parameter name. This should correspond to a parameter in the SQL, or a parameter that a called procedure expects. The name should not start '@'. @@ -336,26 +336,26 @@ declare module 'tedious' { * @param options Additional type options. Optional. */ addParameter(name: string, type: TediousType, value: any, options?: ParameterOptions): void; - + /** - * Add an output parameter to the request. The parameter's value will be provide by an emitted returnValue event. + * Add an output parameter to the request. The parameter's value will be provide by an emitted returnValue event. * @param name The parameter name. This should correspond to a parameter in the SQL, or a parameter that a called procedure expects. * @param type One of the supported data types. * @param value The value that the parameter is to be given. The Javascript type of the argument should match that documented for data types. Optional. - * @param options Additional type options. Optional. + * @param options Additional type options. Optional. */ addOutputParameter(name: string, type: TediousType, value?: any, options?: ParameterOptions): void; } - + export interface BulkLoadColumnOpts extends ParameterOptions { // indicates whether the column accepts NULL values. - nullable: boolean; + nullable: boolean; // If the name of the column is different from the name of the property found on rowObj arguments passed to , then you can use this option to specify the property name. objName?: string; } - + export interface BulkLoad { - + /** * Adds a column to the bulk load. The column definitions should match the table you are trying to insert into. Attempting to call addColumn after the first row has been added will throw an exception. * @param name The name of the column. @@ -363,7 +363,7 @@ declare module 'tedious' { * @param options Additional column type information. At a minimum, nullable must be set to true or false. */ addColumn(name: string, type: TediousType, options: BulkLoadColumnOpts): void; - + /** * Adds a row to the bulk insert. This method accepts arguments in three different formats: * @param rowObj An object of key/value pairs representing column name (or objName) and value. @@ -392,30 +392,30 @@ declare module 'tedious' { export interface InfoObject { /** * Error number - */ + */ number: number; /** * The error state, used as a modifier to the error number. - */ + */ state: any; /** * The class (severity) of the error. A class of less than 10 indicates an informational message. - */ + */ class: number; /** * The message text. - */ + */ message: string; /** * The stored procedure name (if a stored procedure generated the message). - */ + */ procName: string; /** * The line number in the SQL batch or stored procedure that caused the error. Line numbers begin at 1; therefore, if the line number is not applicable to the message, the value of LineNumber will be 0. - */ + */ lineNumber: number; } - + /** * Connection * @event 'connect' The attempt to connect and validate has completed. @@ -430,26 +430,26 @@ declare module 'tedious' { * @event 'secure' A secure connection has been established. */ export class Connection extends events.EventEmitter { - + constructor(config: ConnectionConfig); /** - * Start a transaction. As only one request at a time may be executed on + * Start a transaction. As only one request at a time may be executed on * a connection, another request should not be initiated until this callback is called. * @param callback The callback is called when the request to start the transaction has completed, either successfully or with an error. If an error occured then err will describe the error. * @param name A string representing a name to associate with the transaction. Optional, and defaults to an empty string. Required when isolationLevel is present. * @param isolationLevel The isolation level that the transaction is to be run with. */ beginTransaction(callback: (error?: Error) => void, name?: string, isolationLevel?: ISOLATION_LEVEL): void; - + /** - * Commit a transaction. + * Commit a transaction. * There should be an active transaction. That is, beginTransaction should have been previously called. * @param callback The callback is called when the request to commit the transaction has completed, either successfully or with an error. If an error occured then err will describe the error. * As only one request at a time may be executed on a connection, another request should not be initiated until this callback is called. */ commitTransaction(callback: (error: Error) => void): void; - + /** * Rollback a transaction. There should be an active transaction. That is, beginTransaction should have been previously called. * @param callback The callback is called when the request to rollback the transaction has completed, either successfully or with an error. If an error occured then err will describe the error. @@ -462,7 +462,7 @@ declare module 'tedious' { * @param request A Request object representing the request. Parameters only require a name and type. Parameter values are ignored. */ prepare(request: Request): void; - + /** * Release the SQL Server resources associated with a previously prepared request. */ @@ -472,20 +472,20 @@ declare module 'tedious' { * Call a stored procedure represented by request. */ callProcedure(request: Request): void; - + /** * Execute the SQL represented by request. * As sp_executesql is used to execute the SQL, if the same SQL is executed multiples times using this function, the SQL Server query optimizer is likely to reuse the execution plan it generates for the first execution. * Beware of the way that scoping rules apply, and how they may affect local temp tables. If you're running in to scoping issues, then execSqlBatch may be a better choice. See also issue #24. */ execSql(request: Request): void; - + /** * Execute the SQL batch represented by request. There is no param support, and unlike execSql, it is not likely that SQL Server will reuse the execution plan it generates for the SQL. * In almost all cases, execSql will be a better choice. */ execSqlBatch(request: Request): void; - + /** * Execute previously prepared SQL, using the supplied parameters. * @param request A previously prepared Request. @@ -499,7 +499,7 @@ declare module 'tedious' { * @param callback A function which will be called after the BulkLoad finishes executing. rowCount will equal the number of rows inserted. */ newBulkLoad(tableName: string, callback: (error: Error, rowCount: number) => void): BulkLoad; - + /** * Executes a BulkLoad. */ @@ -508,19 +508,19 @@ declare module 'tedious' { /** * Reset the connection to its initial state. Can be useful for connection pool implementations. * @param callback The callback is called when the connection reset has completed, either successfully or with an error. If an error occured then err will describe the error. - * As only one request at a time may be executed on a connection, another request should not be initiated until this callback is called. + * As only one request at a time may be executed on a connection, another request should not be initiated until this callback is called. */ reset(callback: (error: Error) => void): void; - + /** * Cancel currently executed request. */ cancel(): void; - + /** * Closes the connection to the database. The end will be emmited once the connection has been closed. */ close(): void; - + } } diff --git a/teechart/teechart.d.ts b/teechart/teechart.d.ts index 2b747b3d9f..6e7ac39449 100644 --- a/teechart/teechart.d.ts +++ b/teechart/teechart.d.ts @@ -316,7 +316,7 @@ declare module Tee { calc(value: number): number; fromPos(position: number): number; fromSize(size: number): number; - + hasAnySeries(): boolean; scroll(delta: number): void; setMinMax(minimum: number, maximum: number): void; diff --git a/tether/tether.d.ts b/tether/tether.d.ts index 2fffb16c98..1a58d74330 100644 --- a/tether/tether.d.ts +++ b/tether/tether.d.ts @@ -1,14 +1,22 @@ -// Type definitions for Tether v0.6 +// Type definitions for Tether v1.1 // Project: http://github.hubspot.com/tether/ // Definitions by: Adi Dahiya // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module tether { +// global Tether constructor +declare class Tether { + constructor(options: Tether.ITetherOptions); - interface TetherStatic { - new(options: ITetherOptions): Tether; - } + public setOptions(options: Tether.ITetherOptions): void; + public disable(): void; + public enable(): void; + public destroy(): void; + public position(): void; + public static position(): void; +} + +declare namespace Tether { interface ITetherOptions { attachment?: string; classes?: {[className: string]: boolean}; @@ -31,20 +39,9 @@ declare module tether { pinnedClass?: string; to?: string | HTMLElement | number[]; } - - interface Tether { - setOptions(options: ITetherOptions): void; - disable(): void; - enable(): void; - destroy(): void; - position(): void; - } - } declare module "tether" { - export = tether; + export = Tether; } -declare var Tether: tether.TetherStatic; - diff --git a/threejs/detector.d.ts b/threejs/detector.d.ts index 6cf8a2ca66..a0514db210 100644 --- a/threejs/detector.d.ts +++ b/threejs/detector.d.ts @@ -8,7 +8,7 @@ interface DetectorStatic { webgl: boolean; workers: boolean; fileapi: boolean; - + getWebGLErrorMessage(): HTMLElement; addGetWebGLMessage(parameters?: {id?: string; parent?: HTMLElement}): void; } diff --git a/threejs/three-effectcomposer.d.ts b/threejs/three-effectcomposer.d.ts index df10afab58..37e904fe76 100644 --- a/threejs/three-effectcomposer.d.ts +++ b/threejs/three-effectcomposer.d.ts @@ -17,7 +17,7 @@ declare module THREE { readBuffer: WebGLRenderTarget; passes: any[]; copyPass: ShaderPass; - + swapBuffers(): void; addPass(pass: any): void; insertPass(pass: any, index: number): void; diff --git a/threejs/three-maskpass.d.ts b/threejs/three-maskpass.d.ts index 5b36cde828..7b7ea589c6 100644 --- a/threejs/three-maskpass.d.ts +++ b/threejs/three-maskpass.d.ts @@ -18,7 +18,7 @@ declare module THREE { render(renderer: WebGLRenderer, writeBuffer: WebGLRenderTarget, readBuffer: WebGLRenderTarget, delta: number): void; } - + export class ClearMaskPass { constructor(); diff --git a/threejs/three-orbitcontrols.d.ts b/threejs/three-orbitcontrols.d.ts index b904ab3219..c51b5469e5 100644 --- a/threejs/three-orbitcontrols.d.ts +++ b/threejs/three-orbitcontrols.d.ts @@ -51,11 +51,11 @@ declare module THREE { reset(): void; getPolarAngle(): number; getAzimuthalAngle(): number; - + // EventDispatcher mixins addEventListener(type: string, listener: (event: any) => void): void; hasEventListener(type: string, listener: (event: any) => void): void; removeEventListener(type: string, listener: (event: any) => void): void; dispatchEvent(event: { type: string; target: any; }): void; } -} \ No newline at end of file +} diff --git a/threejs/three-projector.d.ts b/threejs/three-projector.d.ts index 05b6f678e5..c872186565 100644 --- a/threejs/three-projector.d.ts +++ b/threejs/three-projector.d.ts @@ -72,7 +72,7 @@ declare module THREE { */ export class Projector { constructor(); - + // deprecated. projectVector(vector: Vector3, camera: Camera): Vector3; @@ -88,10 +88,10 @@ declare module THREE { * @param sort select whether to sort elements using the Painter's algorithm. */ projectScene(scene: Scene, camera: Camera, sortObjects: boolean, sortElements?: boolean): { - objects: Object3D[]; // Mesh, Line or other object - sprites: Object3D[]; // Sprite or Particle + objects: Object3D[]; // Mesh, Line or other object + sprites: Object3D[]; // Sprite or Particle lights: Light[]; elements: Face3[]; // Line, Particle, Face3 or Face4 }; } -} \ No newline at end of file +} diff --git a/through2/through2.d.ts b/through2/through2.d.ts index 32e566e72e..40198134c1 100644 --- a/through2/through2.d.ts +++ b/through2/through2.d.ts @@ -8,7 +8,7 @@ declare module 'through2' { import stream = require('stream'); - + type TransfofmCallback = (err?: any, data?: any) => void; type TransformFunction = (chunk: any, enc: string, callback: TransfofmCallback) => void; type FlashCallback = (flushCallback: () => void) => void; diff --git a/timezonecomplete/timezonecomplete.d.ts b/timezonecomplete/timezonecomplete.d.ts index 7a605a5556..635f4558f3 100644 --- a/timezonecomplete/timezonecomplete.d.ts +++ b/timezonecomplete/timezonecomplete.d.ts @@ -275,27 +275,27 @@ declare module '__timezonecomplete/basics' { /** * Year, 1970-... */ - year?: number, + year?: number, /** * Month 1-12 */ - month?: number, + month?: number, /** * Day of month, 1-31 */ - day?: number, + day?: number, /** * Hour 0-23 */ - hour?: number, + hour?: number, /** * Minute 0-59 */ - minute?: number, + minute?: number, /** * Seconds, 0-59 */ - second?: number, + second?: number, /** * Milliseconds 0-999 */ @@ -1517,4 +1517,3 @@ declare module '__timezonecomplete/globals' { */ export function abs(d: Duration): Duration; } - diff --git a/tinycolor/tinycolor.d.ts b/tinycolor/tinycolor.d.ts index d7bc543420..d011f89bbb 100644 --- a/tinycolor/tinycolor.d.ts +++ b/tinycolor/tinycolor.d.ts @@ -329,7 +329,7 @@ interface tinycolorInstance { * Gets the complement of the current color */ complement(): tinycolorInstance; - + /** * Gets a new instance with the current color */ diff --git a/titanium/titanium-tests.ts b/titanium/titanium-tests.ts index 087ba05c27..79688cd5ff 100644 --- a/titanium/titanium-tests.ts +++ b/titanium/titanium-tests.ts @@ -6,13 +6,13 @@ function test_window() { backgroundColor: 'white', borderRadius: 10 }); - + window.setBackgroundColor('blue'); window.opacity = 0.92; - + var matrix = Ti.UI.create2DMatrix().scale(1.1, 1); window.transform = matrix; - + var label: Ti.UI.Label; label = Ti.UI.createLabel({ color: '#900', @@ -100,7 +100,7 @@ function test_map() { mountainView.setTitle('Appcelerator'); mountainView.setSubtitle('Mountain View, CA'); mountainView.setPincolor(Ti.Map.ANNOTATION_RED); - + var mapview = Ti.Map.createView({ mapType: Ti.Map.STANDARD_TYPE, region: { @@ -118,4 +118,4 @@ function test_map() { }); win.add(mapview); win.open(); -} \ No newline at end of file +} diff --git a/titanium/titanium.d.ts b/titanium/titanium.d.ts index a325611df3..f2f1afd48f 100644 --- a/titanium/titanium.d.ts +++ b/titanium/titanium.d.ts @@ -6342,8 +6342,8 @@ declare class ErrorCallbackArgs { } declare class FailureResponse { - code: Number; - error: string; + code: Number; + error: string; success: boolean; } diff --git a/tmp/tmp.d.ts b/tmp/tmp.d.ts index 7c60d33ac8..4625fc19cd 100644 --- a/tmp/tmp.d.ts +++ b/tmp/tmp.d.ts @@ -9,7 +9,7 @@ declare module "tmp" { interface Options extends SimpleOptions { mode?: number; } - + interface SimpleOptions { prefix?: string; postfix?: string; @@ -19,7 +19,7 @@ declare module "tmp" { keep?: boolean; unsafeCleanup?: boolean; } - + interface SynchrounousResult { name: string; fd: number; @@ -28,9 +28,9 @@ declare module "tmp" { function file(callback: (err: any, path: string, fd: number, cleanupCallback: () => void) => void): void; function file(config: Options, callback?: (err: any, path: string, fd: number, cleanupCallback: () => void) => void): void; - + function fileSync(config?: Options): SynchrounousResult; - + function dir(callback: (err: any, path: string, cleanupCallback: () => void) => void): void; function dir(config: Options, callback?: (err: any, path: string, cleanupCallback: () => void) => void): void; diff --git a/tooltipster/tooltipster.d.ts b/tooltipster/tooltipster.d.ts index b1c263c164..fa264adecb 100644 --- a/tooltipster/tooltipster.d.ts +++ b/tooltipster/tooltipster.d.ts @@ -13,7 +13,7 @@ declare module JQueryTooltipster { export interface ITooltipsterOptions { /** - * Determines how the tooltip will animate in and out. Feel free to modify or create custom transitions in the tooltipster.css file. + * Determines how the tooltip will animate in and out. Feel free to modify or create custom transitions in the tooltipster.css file. * In IE9 and 8, all animations default to a JavaScript generated, fade animation. Default: 'fade' */ animation?: string; @@ -39,7 +39,7 @@ declare module JQueryTooltipster { content?: string; /** - * If the content of the tooltip is provided as a string, it is displayed as plain text by default. + * If the content of the tooltip is provided as a string, it is displayed as plain text by default. * If this content should actually be interpreted as HTML, set this option to true. Default: false */ contentAsHTML?: boolean; @@ -127,13 +127,13 @@ declare module JQueryTooltipster { iconTouch?: boolean; /** - * Give users the possibility to interact with the tooltip. Unless autoClose is set to false, the tooltip will still close if the user moves away from or clicks out of the tooltip. + * Give users the possibility to interact with the tooltip. Unless autoClose is set to false, the tooltip will still close if the user moves away from or clicks out of the tooltip. * Default: false */ interactive?: boolean; /** - * If the tooltip is interactive and activated by a hover event, set the amount of time (milliseconds) allowed for a user to hover off + * If the tooltip is interactive and activated by a hover event, set the amount of time (milliseconds) allowed for a user to hover off * of the tooltip activator (origin) on to the tooltip itself - keeping the tooltip from closing. Default: 350 */ interactiveTolerance?: number; @@ -170,14 +170,14 @@ declare module JQueryTooltipster { positionTracker?: boolean; /** - * Called after the tooltip has been repositioned by the position tracker (if enabled). + * Called after the tooltip has been repositioned by the position tracker (if enabled). * Default: A function that will close the tooltip if the trigger is 'hover' and autoClose is false. */ positionTrackerCallback?: Function; /** - * Specify if a TITLE attribute should be restored on the HTML element after a call to the 'destroy' method. - * This attribute may be omitted, or be restored with the value that existed before Tooltipster was initialized, or be restored with the stringified value of the current content. + * Specify if a TITLE attribute should be restored on the HTML element after a call to the 'destroy' method. + * This attribute may be omitted, or be restored with the value that existed before Tooltipster was initialized, or be restored with the stringified value of the current content. * Note: in case of multiple tooltips on a single element, only the last destroyed tooltip may trigger a restoration. Default: 'current' * * Possible values: 'none', 'previous' or 'current' @@ -200,8 +200,8 @@ declare module JQueryTooltipster { theme?: string; /** - * - * If set to false, tooltips will not show on pure-touch devices, unless you open them yourself with the 'show' method. + * + * If set to false, tooltips will not show on pure-touch devices, unless you open them yourself with the 'show' method. * Touch gestures on devices which also have a mouse will still open the tooltips though. Default: true */ touchDevices?: boolean; @@ -225,8 +225,8 @@ declare module JQueryTooltipster { /** * Updates the content of the tooltip. - * @param value - * @returns {} + * @param value + * @returns {} */ content(value: string): JQuery; @@ -254,7 +254,7 @@ declare module JQueryTooltipster { * Destroy the tooltip and its listeners. */ destroy(): void; - + /** * Reposition and resize the tooltip. */ @@ -275,4 +275,4 @@ declare module JQueryTooltipster { interface JQuery { tooltipster(options?: JQueryTooltipster.ITooltipsterOptions): JQuery|JQueryTooltipster.ITooltipsterInstance[]; -} \ No newline at end of file +} diff --git a/tv4/tv4.d.ts b/tv4/tv4.d.ts index 5e762155a5..78d07a7e0d 100644 --- a/tv4/tv4.d.ts +++ b/tv4/tv4.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module tv4 { - + // Note that every top-level property is optional in json-schema export interface JsonSchema { [key: string]: any; @@ -15,7 +15,7 @@ declare module tv4 { type?: string; items?: any; properties?: any; - patternProperties?: any; + patternProperties?: any; additionalProperties?: boolean; required?: string[]; definitions?: any; diff --git a/tween.js/tween.js.d.ts b/tween.js/tween.js.d.ts index ecf82d61eb..d83300cbaa 100644 --- a/tween.js/tween.js.d.ts +++ b/tween.js/tween.js.d.ts @@ -10,7 +10,7 @@ declare module TWEEN { export function add(tween:Tween): void; export function remove(tween:Tween): void; export function update(time?:number): boolean; - + export class Tween { constructor(object?:any); to(properties:any, duration:number): Tween; diff --git a/tweenjs/tweenjs.d.ts b/tweenjs/tweenjs.d.ts index 794e5e99e8..cb566dfccb 100644 --- a/tweenjs/tweenjs.d.ts +++ b/tweenjs/tweenjs.d.ts @@ -67,7 +67,7 @@ declare module createjs { static sineInOut: (amount: number) => number; static sineOut: (amount: number) => number; } - + export class MotionGuidePlugin { constructor(); diff --git a/twitter/twitter-tests.ts b/twitter/twitter-tests.ts index c94a89b572..156a9d3568 100644 --- a/twitter/twitter-tests.ts +++ b/twitter/twitter-tests.ts @@ -80,7 +80,7 @@ function bindLoadedEvent() { ); } -function bindRenderedEvent() { +function bindRenderedEvent() { twttr.events.bind( "rendered", event => { diff --git a/typeahead/typeahead.d.ts b/typeahead/typeahead.d.ts index b842786ccd..3fba4ff046 100644 --- a/typeahead/typeahead.d.ts +++ b/typeahead/typeahead.d.ts @@ -712,19 +712,19 @@ interface JQuery { declare module Twitter.Typeahead { interface Options { /** - * If true, when suggestions are rendered, pattern matches for the current query in text nodes will be wrapped in a strong element with its class set to {{classNames.highlight}}. + * If true, when suggestions are rendered, pattern matches for the current query in text nodes will be wrapped in a strong element with its class set to {{classNames.highlight}}. * Defaults to false. */ highlight?: boolean; /** - * If false, the typeahead will not show a hint. + * If false, the typeahead will not show a hint. * Defaults to true. */ hint?: boolean; /** - * The minimum character length needed before suggestions start getting rendered. + * The minimum character length needed before suggestions start getting rendered. * Defaults to 1. */ minLength?: number; @@ -736,14 +736,14 @@ declare module Twitter.Typeahead { } /** - * A typeahead is composed of one or more datasets. When an end-user - * modifies the value of a typeahead, each dataset will attempt to render + * A typeahead is composed of one or more datasets. When an end-user + * modifies the value of a typeahead, each dataset will attempt to render * suggestions for the new value. * For most use cases, one dataset should suffice. It's only in the scenario * where you want rendered suggestions to be grouped based on some sort of * categorical relationship that you'd need to use multiple datasets. For - * example, on twitter.com, the search typeahead groups results into recent - * searches, trends, and accounts – that would be a great use case for using + * example, on twitter.com, the search typeahead groups results into recent + * searches, trends, and accounts – that would be a great use case for using * multiple datasets. */ interface Dataset { @@ -751,23 +751,23 @@ declare module Twitter.Typeahead { * The backing data source for suggestions. * Expected to be a function with the signature (query, syncResults, asyncResults). * syncResults should be called with suggestions computed synchronously and - * asyncResults should be called with suggestions computed asynchronously + * asyncResults should be called with suggestions computed asynchronously * (e.g. suggestions that come for an AJAX request). - * source can also be a Bloodhound instance. + * source can also be a Bloodhound instance. */ source: Bloodhound | ((query: string, syncResults: (result: T[]) => void, asyncResults?: (result: T[]) => void) => void); /** - * Lets the dataset know if async suggestions should be expected. - * If not set, this information is inferred from the signature of - * source i.e. if the source function expects 3 arguments, async will + * Lets the dataset know if async suggestions should be expected. + * If not set, this information is inferred from the signature of + * source i.e. if the source function expects 3 arguments, async will * be set to true. */ async?: boolean; /** * The name of the dataset. - * This will be appended to {{classNames.dataset}} - to form the class name of the containing DOM element. + * This will be appended to {{classNames.dataset}} - to form the class name of the containing DOM element. * Must only consist of underscores, dashes, letters (a-z), and numbers. * Defaults to a random number. */ @@ -779,16 +779,16 @@ declare module Twitter.Typeahead { limit?: number; /** - * For a given suggestion, determines the string representation of it. - * This will be used when setting the value of the input control after - * a suggestion is selected. Can be either a key string or a function - * that transforms a suggestion object into a string. + * For a given suggestion, determines the string representation of it. + * This will be used when setting the value of the input control after + * a suggestion is selected. Can be either a key string or a function + * that transforms a suggestion object into a string. * Defaults to stringifying the suggestion. */ display?: string | ((obj: T) => string); - + /** - * A hash of templates to be used when rendering the dataset. Note a + * A hash of templates to be used when rendering the dataset. Note a * precompiled template is a function that takes a JavaScript object as * its first argument and returns a HTML string. */ @@ -796,7 +796,7 @@ declare module Twitter.Typeahead { } /** - * A hash of templates to be used when rendering the dataset. Note a + * A hash of templates to be used when rendering the dataset. Note a * precompiled template is a function that takes a JavaScript object as * its first argument and returns a HTML string. */ @@ -816,22 +816,22 @@ declare module Twitter.Typeahead { pending?: string | ((query: string) => string); /** - * Rendered at the top of the dataset when suggestions are present. Can be either a HTML string or - * a precompiled template. If it's a precompiled template, the passed in context will contain + * Rendered at the top of the dataset when suggestions are present. Can be either a HTML string or + * a precompiled template. If it's a precompiled template, the passed in context will contain * query and suggestions. */ header?: string | ((query: string, suggestions: T[]) => string); /** * Rendered at the bottom of the dataset when suggestions are present. Can be either a HTML string or - * a precompiled template. If it's a precompiled template, the passed in context will contain + * a precompiled template. If it's a precompiled template, the passed in context will contain * query and suggestions. */ footer?: string | ((query: string, suggestions: T[]) => string); /** - * Used to render a single suggestion. If set, this has to be a precompiled template. - * The associated suggestion object will serve as the context. + * Used to render a single suggestion. If set, this has to be a precompiled template. + * The associated suggestion object will serve as the context. * Defaults to the value of display wrapped in a div tag i.e.

{{value}}
. */ suggestion?: (suggestion: T) => string; @@ -854,16 +854,16 @@ declare module Twitter.Typeahead { /** * Added to menu element.Defaults to tt- menu. */ - menu?: string; + menu?: string; /** * Added to dataset elements.to Defaults to tt- dataset. */ - dataset?: string; + dataset?: string; /** * Added to suggestion elements.Defaults to tt- suggestion. */ - suggestion?: string; + suggestion?: string; /** * Added to menu element when it contains no content.Defaults to tt- empty. @@ -873,7 +873,7 @@ declare module Twitter.Typeahead { /** * Added to menu element when it is opened.Defaults to tt- open. */ - open?: string; + open?: string; /** * Added to suggestion element when menu cursor moves to said suggestion.Defaults to tt- cursor. @@ -891,7 +891,7 @@ declare module Bloodhound { interface BloodhoundOptions { /** * Transforms a datum into an array of string tokens. - * + * * @param datum Suggestion. * @returns An array of string tokens. */ @@ -899,38 +899,38 @@ declare module Bloodhound { /** * Transforms a query into an array of string tokens. - * + * * @param quiery Query. * @returns An array of string tokens. */ queryTokenizer: (query: string) => string[]; /** - * If set to false, the Bloodhound instance will not be implicitly + * If set to false, the Bloodhound instance will not be implicitly * initialized by the constructor function. Defaults to true. */ initialize?: boolean; - + /** - * Given a datum, returns a unique id for it. - * Defaults to JSON.stringify. Note that it is highly recommended + * Given a datum, returns a unique id for it. + * Defaults to JSON.stringify. Note that it is highly recommended * to override this option. - * + * * @param datum Suggestion. * @returns Unique id for the suggestion. */ identify?: (datum: T) => number; /** - * If the number of datums provided from the internal search index is - * less than sufficient, remote will be used to backfill search + * If the number of datums provided from the internal search index is + * less than sufficient, remote will be used to backfill search * requests triggered by calling #search. Defaults to 5. */ sufficient?: number; /** * A compare function used to sort data returned from the internal search index. - * + * * @param a First suggestion. * @param b Second suggestion. * @returns Comparison result. @@ -938,20 +938,20 @@ declare module Bloodhound { sorter?: (a: T, b: T) => number; /** - * An array of data or a function that returns an array of data. + * An array of data or a function that returns an array of data. * The data will be added to the internal search index when #initialize is called. */ local?: T[] | (() => T[]); /** - * Can be a URL to a JSON file containing an array of data or, + * Can be a URL to a JSON file containing an array of data or, * if more configurability is needed, a prefetch options hash. */ prefetch?: string | PrefetchOptions; /** * Can be a URL to fetch data from when the data provided by the internal - * search index is insufficient or, if more configurability is needed, + * search index is insufficient or, if more configurability is needed, * a remote options hash. */ remote?: string | RemoteOptions; @@ -962,7 +962,7 @@ declare module Bloodhound { * supports local storage, the processed data will be cached there to prevent * additional network requests on subsequent page loads. * - * WARNING: While it's possible to get away with it for smaller data sets, + * WARNING: While it's possible to get away with it for smaller data sets, * prefetched data isn't meant to contain entire sets of data. Rather, it should * act as a first-level cache. Ignoring this warning means you'll run the risk * of hitting local storage limits. @@ -974,31 +974,31 @@ declare module Bloodhound { url: string; /** - * If false, will not attempt to read or write to local storage and + * If false, will not attempt to read or write to local storage and * will always load prefetch data from url on initialization. Defaults to true. */ cache?: boolean; /** - * The time (in milliseconds) the prefetched data should be cached in + * The time (in milliseconds) the prefetched data should be cached in * local storage. Defaults to 86400000 (1 day). */ ttl?: number; /** - * The key that data will be stored in local storage under. + * The key that data will be stored in local storage under. * Defaults to value of url. */ cacheKey?: string; /** - * A string used for thumbprinting prefetched data. If this doesn't + * A string used for thumbprinting prefetched data. If this doesn't * match what's stored in local storage, the data will be refetched. */ thumbprint?: string; /** - * A function that provides a hook to allow you to prepare the settings + * A function that provides a hook to allow you to prepare the settings * object passed to transport when a request is about to be made. * Defaults to the identity function. * @@ -1008,10 +1008,10 @@ declare module Bloodhound { prepare?: (settings: JQueryAjaxSettings) => JQueryAjaxSettings; /** - * A function with the signature transform(response) that allows you to - * transform the prefetch response before the Bloodhound instance operates + * A function with the signature transform(response) that allows you to + * transform the prefetch response before the Bloodhound instance operates * on it. Defaults to the identity function. - * + * * @param response Prefetch response. * @returns Transform response. */ @@ -1019,8 +1019,8 @@ declare module Bloodhound { } /** - * Bloodhound only goes to the network when the internal search engine cannot - * provide a sufficient number of results. In order to prevent an obscene + * Bloodhound only goes to the network when the internal search engine cannot + * provide a sufficient number of results. In order to prevent an obscene * number of requests being made to the remote endpoint, requests are rate-limited. */ interface RemoteOptions { @@ -1030,13 +1030,13 @@ declare module Bloodhound { url: string; /** - * A function that provides a hook to allow you to prepare the settings - * object passed to transport when a request is about to be made. + * A function that provides a hook to allow you to prepare the settings + * object passed to transport when a request is about to be made. * The function signature should be prepare(query, settings), where query * is the query #search was called with and settings is the default settings * object created internally by the Bloodhound instance. The prepare function * should return a settings object. Defaults to the identity function. - * + * * @param query The query #search was called with. * @param settings The default settings object created internally by Bloodhound. * @returns A JqueryAjaxSettings object. @@ -1050,22 +1050,22 @@ declare module Bloodhound { wildcard?: string; /** - * The method used to rate-limit network requests. + * The method used to rate-limit network requests. * Can be either debounce or throttle. Defaults to debounce. */ rateLimitby?: string; - + /** - * The time interval in milliseconds that will be used by rateLimitBy. + * The time interval in milliseconds that will be used by rateLimitBy. * Defaults to 300. */ rateLimitWait?: number; /** * A function with the signature transform(response) that allows you to - * transform the remote response before the Bloodhound instance operates on it. + * transform the remote response before the Bloodhound instance operates on it. * Defaults to the identity function. - * + * * @param response Prefetch response. * @returns Transform response. */ @@ -1080,7 +1080,7 @@ declare module Bloodhound { * Split a given string on whitespace characters. */ whitespace(str: string): string[]; - + /** * Split a given string on non-word characters. */ @@ -1106,21 +1106,21 @@ declare module Bloodhound { } /** - * Bloodhound is the typeahead.js suggestion engine. Bloodhound is robust, - * flexible, and offers advanced functionalities such as prefetching, + * Bloodhound is the typeahead.js suggestion engine. Bloodhound is robust, + * flexible, and offers advanced functionalities such as prefetching, * intelligent caching, fast lookups, and backfilling with remote data. */ declare class Bloodhound { /** * The constructor function. - * + * * @constructor * @param options Options hash. */ constructor(options: Bloodhound.BloodhoundOptions); /** - * Returns a reference to Bloodhound and reverts window.Bloodhound to its + * Returns a reference to Bloodhound and reverts window.Bloodhound to its * previous value. Can be used to avoid naming collisions. */ public static noConflict(): Bloodhound; @@ -1132,17 +1132,17 @@ declare class Bloodhound { public static tokenizers: Bloodhound.Tokenizers; /** - * Kicks off the initialization of the suggestion engine. Initialization - * entails adding the data provided by local and prefetch to the internal - * search index as well as setting up transport mechanism used by remote. + * Kicks off the initialization of the suggestion engine. Initialization + * entails adding the data provided by local and prefetch to the internal + * search index as well as setting up transport mechanism used by remote. * Before #initialize is called, the #get and #search methods will effectively be no-ops. * * Note, unless the initialize option is false, this method is implicitly called by the constructor. - * - * After initialization, how subsequent invocations of #initialize behave depends on - * the reinitialize argument. If reinitialize is falsy, the method will not execute the - * initialization logic and will just return the same jQuery promise returned - * by the initial invocation. If reinitialize is truthy, the method will behave + * + * After initialization, how subsequent invocations of #initialize behave depends on + * the reinitialize argument. If reinitialize is falsy, the method will not execute the + * initialization logic and will just return the same jQuery promise returned + * by the initial invocation. If reinitialize is truthy, the method will behave * as if it were being called for the first time. * * @param reinitialize How subsequent invocations of #initialize will behave. @@ -1151,7 +1151,7 @@ declare class Bloodhound { public initialize(reinitialize?: boolean): JQueryPromise; /** - * Takes one argument, data, which is expected to be an array. + * Takes one argument, data, which is expected to be an array. * The data passed in will get added to the internal search index. * * @param data Data to be added to the internal search index. @@ -1167,11 +1167,11 @@ declare class Bloodhound { public get(ids: number[]): T[]; /** - * Returns the data that matches query. Matches found in the local search - * index will be passed to the sync callback. If the data passed to sync - * doesn't contain at least sufficient number of datums, remote data will + * Returns the data that matches query. Matches found in the local search + * index will be passed to the sync callback. If the data passed to sync + * doesn't contain at least sufficient number of datums, remote data will * be requested and then passed to the async callback. - * + * * @param query Query. * @param sync Sync callback * @param async Async callback. diff --git a/typescript-deferred/typescript-deferred.d.ts b/typescript-deferred/typescript-deferred.d.ts index bffc65b70f..b99fca95a5 100644 --- a/typescript-deferred/typescript-deferred.d.ts +++ b/typescript-deferred/typescript-deferred.d.ts @@ -42,6 +42,6 @@ declare module "typescript-deferred" { export function create(): DeferredInterface; export function when(value?: ThenableInterface): PromiseInterface; export function when(value?: T): PromiseInterface; - + } diff --git a/ua-parser-js/ua-parser-js-tests.ts b/ua-parser-js/ua-parser-js-tests.ts index 02ddf1403f..7ff2c5db56 100644 --- a/ua-parser-js/ua-parser-js-tests.ts +++ b/ua-parser-js/ua-parser-js-tests.ts @@ -1,6 +1,8 @@ /// -function test_parser(){ +import {UAParser} from 'ua-parser-js'; + +function test_parser() { var ua = 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6'; var parser = new UAParser(ua); var result = parser.getResult(); @@ -41,4 +43,9 @@ function test_parser(){ result.cpu.architecture parser.getCPU().architecture + // Extensions + var uaString = 'ownbrowser/1.3'; + var ownBrowser = [[/(ownbrowser)\/([\w\.]+)/i], [UAParser.BROWSER.NAME, UAParser.BROWSER.VERSION]]; + var parser = new UAParser(uaString, { browser: ownBrowser }); + } diff --git a/ua-parser-js/ua-parser-js.d.ts b/ua-parser-js/ua-parser-js.d.ts index 5ac748dcf5..4eea1b3226 100644 --- a/ua-parser-js/ua-parser-js.d.ts +++ b/ua-parser-js/ua-parser-js.d.ts @@ -1,6 +1,6 @@ -// Type definitions for js-cookie v2.0 +// Type definitions for ua-parser-js v0.7.10 // Project: https://github.com/faisalman/ua-parser-js -// Definitions by: Viktor Miroshnikov +// Definitions by: Viktor Miroshnikov , Lucas Woo // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module UAParser { @@ -61,7 +61,7 @@ declare module UAParser { version: string; } - export interface IOS{ + export interface IOS { /** * Possible 'os.name' * AIX, Amiga OS, Android, Arch, Bada, BeOS, BlackBerry, CentOS, Chromium OS, Contiki, @@ -78,7 +78,7 @@ declare module UAParser { version: string; } - export interface ICPU{ + export interface ICPU { /** * Possible architecture: * 68k, amd64, arm, arm64, avr, ia32, ia64, irix, irix64, mips, mips64, pa-risc, @@ -87,7 +87,7 @@ declare module UAParser { architecture: string; } - export interface IResult{ + export interface IResult { ua: string; browser: IBrowser; device: IDevice; @@ -95,56 +95,96 @@ declare module UAParser { os: IOS; cpu: ICPU; } + + export interface BROWSER { + NAME: string, + + // Deprecated + MAJOR: string, + VERSION: string + } + export interface CPU { + ARCHITECTURE: string + } + + export interface DEVICE { + MODEL: string, + VENDOR: string, + TYPE: string, + CONSOLE: string, + MOBILE: string, + SMARTTV: string, + TABLET: string, + WEARABLE: string, + EMBEDDED: string + } + + export interface ENGINE { + NAME: string, + VERSION: string + } + + export interface OS { + NAME: string, + VERSION: string + } + } -declare class UAParser { - /** - * Returns browser information - */ - getBrowser(): UAParser.IBrowser; - /** - * Returns OS information - */ - getOS(): UAParser.IOS; +declare module "ua-parser-js" { - /** - * Returns browsers engine information - */ - getEngine(): UAParser.IEngine; + export class UAParser { + static VERSION: string; + static BROWSER: UAParser.BROWSER; + static CPU: UAParser.CPU; + static DEVICE: UAParser.DEVICE; + static ENGINE: UAParser.ENGINE; + static OS: UAParser.OS; + + /** + * Returns browser information + */ + getBrowser(): UAParser.IBrowser; + /** + * Returns OS information + */ + getOS(): UAParser.IOS; - /** - * Returns device information - */ - getDevice(): UAParser.IDevice; + /** + * Returns browsers engine information + */ + getEngine(): UAParser.IEngine; - /** - * Returns parsed CPU information - */ - getCPU(): UAParser.ICPU; + /** + * Returns device information + */ + getDevice(): UAParser.IDevice; - /** - * Returns UA string of current instance - */ - getUA(): string; + /** + * Returns parsed CPU information + */ + getCPU(): UAParser.ICPU; - /** - * Set & parse UA string - */ - setUA(ua: string): void; + /** + * Returns UA string of current instance + */ + getUA(): string; - /** - * Returns parse result - */ - getResult(): UAParser.IResult; + /** + * Set & parse UA string + */ + setUA(uastring: string): UAParser; - /** - * Create a new parser - */ - constructor (); - - /** - * Create a new parser with UA prepopulated - */ - constructor (ua: string); + /** + * Returns parse result + */ + getResult(): UAParser.IResult; + + /** + * Create a new parser with UA prepopulated and extensions extended + */ + constructor(uastring?: string, extensions?: any); + } + } diff --git a/ui-grid/ui-grid.d.ts b/ui-grid/ui-grid.d.ts index a480d7bb4d..bd0ecd835c 100644 --- a/ui-grid/ui-grid.d.ts +++ b/ui-grid/ui-grid.d.ts @@ -535,9 +535,9 @@ declare module uiGrid { } export type IGridOptions = IGridOptionsOf; export interface IGridOptionsOf extends cellNav.IGridOptions, edit.IGridOptions, expandable.IGridOptions, - exporter.IGridOptions, grouping.IGridOptions, importer.IGridOptions, + exporter.IGridOptions, grouping.IGridOptions, importer.IGridOptions, infiniteScroll.IGridOptions, moveColumns.IGridOptions, pagination.IGridOptions, pinning.IGridOptions, - resizeColumns.IGridOptions, rowEdit.IGridOptions, saveState.IGridOptions, selection.IGridOptions, + resizeColumns.IGridOptions, rowEdit.IGridOptions, saveState.IGridOptions, selection.IGridOptions, treeBase.IGridOptions, treeView.IGridOptions { /** * Default time in milliseconds to throttle aggregation calcuations, defaults to 500ms @@ -610,8 +610,8 @@ declare module uiGrid { */ enableFiltering?: boolean; /** - * False by default. When enabled, this adds a settings icon in the top right of the grid, - * which floats above the column header. The menu by default gives access to show/hide columns, + * False by default. When enabled, this adds a settings icon in the top right of the grid, + * which floats above the column header. The menu by default gives access to show/hide columns, * but can be customized to show additional actions. * @default false */ @@ -1117,8 +1117,8 @@ declare module uiGrid { export interface sortChangedHandler { /** - * Sort change event callback - * @param {IGridInstance} grid instance + * Sort change event callback + * @param {IGridInstance} grid instance * @param {IGridColumn} array of gridColumns that have sorting on them, sorted in priority order */ (grid: IGridInstanceOf, columns: Array>): void; @@ -1342,8 +1342,8 @@ declare module uiGrid { reader.readAsText( files[0] ); } */ - editFileChooserCallback?: (gridRow: uiGrid.IGridRowOf, - gridCol: IGridColumnOf, + editFileChooserCallback?: (gridRow: uiGrid.IGridRowOf, + gridCol: IGridColumnOf, files: FileList) => void; /** * A bindable string value that is used when binding to edit controls instead of colDef.field @@ -1558,7 +1558,7 @@ declare module uiGrid { */ (row: IGridRowOf): void; } - + /** * GridRow settings for expandable */ @@ -1632,9 +1632,9 @@ declare module uiGrid { * @param {any} value The cell value * @returns {any} Formatted value */ - exporterFieldCallback?: (grid: IGridInstanceOf, - row: uiGrid.IGridRowOf, - col: IGridColumnOf, + exporterFieldCallback?: (grid: IGridInstanceOf, + row: uiGrid.IGridRowOf, + col: IGridColumnOf, value: any) => any; /** * A function to apply to the header displayNames before exporting. Useful for internationalisation, @@ -2079,7 +2079,7 @@ declare module uiGrid { * This callback can be used to change the decoded value back into a code. * Defaults to angular.identity. * @param {IGridInstance} grid The grid - * @param {TEntity} newObject The new object as importer has created it. Modify it and return modified + * @param {TEntity} newObject The new object as importer has created it. Modify it and return modified * version * @returns {TEntity} The modified object * @default angular.identity @@ -3218,7 +3218,7 @@ declare module uiGrid { export interface rowCollapsedHandler { /** * Row Collapsed callback - * @param {IGridRow} row The row that was collapsed. You can also retrieve the grid from this row with + * @param {IGridRow} row The row that was collapsed. You can also retrieve the grid from this row with * row.grid */ (row: IGridRowOf): void; @@ -3227,7 +3227,7 @@ declare module uiGrid { export interface rowExpandedHandler { /** * Row Expanded callback - * @param {IGridRow} row The row that was expanded. You can also retrieve the grid from this row with + * @param {IGridRow} row The row that was expanded. You can also retrieve the grid from this row with * row.grid */ (row: IGridRowOf): void; @@ -3429,7 +3429,7 @@ declare module uiGrid { new(entity: TEntity, index: number, reference: IGridInstanceOf): IGridRowOf; } export type IGridRow = IGridRowOf; - export interface IGridRowOf extends cellNav.IGridRow, edit.IGridRow, exporter.IGridRow, + export interface IGridRowOf extends cellNav.IGridRow, edit.IGridRow, exporter.IGridRow, selection.IGridRow, expandable.IGridRow { /** A reference to an item in gridOptions.data[] */ entity: TEntity; @@ -3611,7 +3611,7 @@ declare module uiGrid { */ export type IColumnDef = IColumnDefOf; export interface IColumnDefOf extends cellNav.IColumnDef, edit.IColumnDef, exporter.IColumnDef, - grouping.IColumnDef, moveColumns.IColumnDef, pinning.IColumnDef, resizeColumns.IColumnDef, + grouping.IColumnDef, moveColumns.IColumnDef, pinning.IColumnDef, resizeColumns.IColumnDef, treeBase.IColumnDef { /** * defaults to false @@ -3767,10 +3767,10 @@ declare module uiGrid { */ sortCellFiltered?: boolean; /** - *(optional) An array of sort directions, specifying the order that they should cycle through as + *(optional) An array of sort directions, specifying the order that they should cycle through as * the user repeatedly clicks on the column heading. The default is [null, uiGridConstants.ASC, uiGridConstants.DESC]. * Null refers to the unsorted state. This does not affect the initial sort direction; use the sort property for that. - * If suppressRemoveSort is also set, the unsorted state will be skipped even if it is listed here. Each direction may + * If suppressRemoveSort is also set, the unsorted state will be skipped even if it is listed here. Each direction may * not appear in the list more than once (e.g. [ASC, DESC, DESC] is not allowed), and the list may not be empty.* */ sortDirectionCycle?: Array; diff --git a/ui-router-extras/ui-router-extras-tests.ts b/ui-router-extras/ui-router-extras-tests.ts index a87b95863c..045a3049c7 100644 --- a/ui-router-extras/ui-router-extras-tests.ts +++ b/ui-router-extras/ui-router-extras-tests.ts @@ -9,10 +9,10 @@ myApp.config(($stateProvider: angular.ui.IStateProvider, $stickyStateProvider: a dsr: { default: 'substate', params: ['param1', 'param2'], - fn: function ($dsr$) { + fn: function ($dsr$) { return $dsr$.to; - } + } }, onInactivate: function ($state: angular.ui.IState) { var iAmInjectedByInjector = $state; @@ -36,10 +36,10 @@ myApp.config(($stateProvider: angular.ui.IStateProvider, $stickyStateProvider: a 'stateParam1': ['value1', 'value2'], 'stateParam2': 'value' }); - }, + }, views: { //named views are mandatory - 'name1': {} + 'name1': {} } }; diff --git a/underscore.string/underscore.string.d.ts b/underscore.string/underscore.string.d.ts index 1b08dcf852..b465ad2eb9 100644 --- a/underscore.string/underscore.string.d.ts +++ b/underscore.string/underscore.string.d.ts @@ -300,7 +300,7 @@ interface UnderscoreStringStaticExports { * @param delimiter */ words(str: string): string[]; - + /** * Split string by delimiter (String or RegExp). * /\s+/ by default. diff --git a/underscore/underscore-tests.ts b/underscore/underscore-tests.ts index 74cef85ec7..e14bac94ed 100644 --- a/underscore/underscore-tests.ts +++ b/underscore/underscore-tests.ts @@ -295,6 +295,10 @@ var exclaim = function (statement) { return statement + "!"; }; var welcome = _.compose(exclaim, greet); welcome('moe'); +var partialApplicationTestFunction = (a: string, b: number, c: boolean, d: string, e: number, f: string) => { } +var partialApplicationResult = _.partial(partialApplicationTestFunction, "", 1); +var parametersCanBeStubbed = _.partial(partialApplicationResult, _, _, _, ""); + /////////////////////////////////////////////////////////////////////////////////////// _.keys({ one: 1, two: 2, three: 3 }); @@ -432,6 +436,7 @@ var template2 = _.template("Hello {{ name }}!"); template2({ name: "Mustache" }); _.template("Using 'with': <%= data.answer %>", oldTemplateSettings)({ variable: 'data' }); +_.template("Using 'with': <%= data.answer %>", { variable: 'data' })({ answer: 'no' }); _(['test', 'test']).pick(['test2', 'test2']); @@ -462,7 +467,7 @@ function chain_tests() { .flatten() .find(num => num % 2 == 0) .value(); - + var firstVal: number = _.chain([1, 2, 3]) .first() .value(); diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index 66b2e8f3ec..87ca861d7b 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -39,6 +39,12 @@ declare module _ { * Default value is '/<%-([\s\S]+?)%>/g'. **/ escape?: RegExp; + + /** + * By default, 'template()' places the values from your data in the local scope via the 'with' statement. + * However, you can specify a single variable name with this setting. + **/ + variable?: string; } interface Collection { } @@ -684,7 +690,7 @@ interface UnderscoreStatic { size(list: _.Collection): number; /** - * Split array into two arrays: + * Split array into two arrays: * one whose elements all satisfy predicate and one whose elements all do not satisfy predicate. * @param array Array to split in two. * @param iterator Filter iterator function for each element in `array`. @@ -902,12 +908,12 @@ interface UnderscoreStatic { zip(...arrays: any[]): any[]; /** - * The opposite of zip. Given a number of arrays, returns a series of new arrays, the first + * The opposite of zip. Given a number of arrays, returns a series of new arrays, the first * of which contains all of the first elements in the input arrays, the second of which - * contains all of the second elements, and so on. Use with apply to pass in an array + * contains all of the second elements, and so on. Use with apply to pass in an array * of arrays * @param arrays The arrays to unzip. - * @return Unzipped version of `arrays`. + * @return Unzipped version of `arrays`. **/ unzip(...arrays: any[][]): any[][]; @@ -972,7 +978,7 @@ interface UnderscoreStatic { array: _.List, value: T, from?: number): number; - + /** * Returns the first index of an element in `array` where the predicate truth test passes * @param array The array to search for the index of the first element where the predicate truth test passes. @@ -984,7 +990,7 @@ interface UnderscoreStatic { array: _.List, predicate: _.ListIterator, context?: any): number; - + /** * Returns the last index of an element in `array` where the predicate truth test passes * @param array The array to search for the index of the last element where the predicate truth test passes. @@ -1066,15 +1072,2291 @@ interface UnderscoreStatic { /** * Partially apply a function by filling in any number of its arguments, without changing its dynamic this value. - * A close cousin of bind. You may pass _ in your list of arguments to specify an argument that should not be - * pre-filled, but left open to supply at call-time. + * A close cousin of bind. You may pass _ in your list of arguments to specify an argument that should not be + * pre-filled, but left open to supply at call-time. * @param fn Function to partially fill in arguments. * @param arguments The partial arguments. * @return `fn` with partially filled in arguments. **/ - partial( - fn: Function, - ...arguments: any[]): Function; + + partial( + fn: { (p1: T1):T2 }, + p1: T1 + ): { (): T2 }; + + partial( + fn: { (p1: T1, p2: T2):T3 }, + p1: T1 + ): { (p2: T2): T3 }; + + partial( + fn: { (p1: T1, p2: T2):T3 }, + p1: T1, + p2: T2 + ): { (): T3 }; + + partial( + fn: { (p1: T1, p2: T2):T3 }, + stub1: UnderscoreStatic, + p2: T2 + ): { (p1: T1): T3 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3):T4 }, + p1: T1 + ): { (p2: T2, p3: T3): T4 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3):T4 }, + p1: T1, + p2: T2 + ): { (p3: T3): T4 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3):T4 }, + stub1: UnderscoreStatic, + p2: T2 + ): { (p1: T1, p3: T3): T4 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3):T4 }, + p1: T1, + p2: T2, + p3: T3 + ): { (): T4 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3):T4 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3 + ): { (p1: T1): T4 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3):T4 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3 + ): { (p2: T2): T4 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3):T4 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3 + ): { (p1: T1, p2: T2): T4 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1 + ): { (p2: T2, p3: T3, p4: T4): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1, + p2: T2 + ): { (p3: T3, p4: T4): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + stub1: UnderscoreStatic, + p2: T2 + ): { (p1: T1, p3: T3, p4: T4): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1, + p2: T2, + p3: T3 + ): { (p4: T4): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3 + ): { (p1: T1, p4: T4): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3 + ): { (p2: T2, p4: T4): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3 + ): { (p1: T1, p2: T2, p4: T4): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4 + ): { (): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4 + ): { (p1: T1): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p2: T2): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p1: T1, p2: T2): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p3: T3): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p3: T3): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p2: T2, p3: T3): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4):T5 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p2: T2, p3: T3): T5 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1 + ): { (p2: T2, p3: T3, p4: T4, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2 + ): { (p3: T3, p4: T4, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2 + ): { (p1: T1, p3: T3, p4: T4, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2, + p3: T3 + ): { (p4: T4, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3 + ): { (p1: T1, p4: T4, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3 + ): { (p2: T2, p4: T4, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3 + ): { (p1: T1, p2: T2, p4: T4, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4 + ): { (p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4 + ): { (p1: T1, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p2: T2, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p1: T1, p2: T2, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p3: T3, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p3: T3, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p2: T2, p3: T3, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p2: T2, p3: T3, p5: T5): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + p5: T5 + ): { (): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + p5: T5 + ): { (p1: T1): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5 + ): { (p2: T2): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5 + ): { (p1: T1, p2: T2): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p3: T3): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p1: T1, p3: T3): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p2: T2, p3: T3): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p1: T1, p2: T2, p3: T3): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p2: T2, p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p2: T2, p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p3: T3, p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p3: T3, p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p2: T2, p3: T3, p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5):T6 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p2: T2, p3: T3, p4: T4): T6 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1 + ): { (p2: T2, p3: T3, p4: T4, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2 + ): { (p3: T3, p4: T4, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2 + ): { (p1: T1, p3: T3, p4: T4, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3 + ): { (p4: T4, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3 + ): { (p1: T1, p4: T4, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3 + ): { (p2: T2, p4: T4, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3 + ): { (p1: T1, p2: T2, p4: T4, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4 + ): { (p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4 + ): { (p1: T1, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p2: T2, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p1: T1, p2: T2, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p3: T3, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p3: T3, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p2: T2, p3: T3, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p2: T2, p3: T3, p5: T5, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + p5: T5 + ): { (p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + p5: T5 + ): { (p1: T1, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5 + ): { (p2: T2, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5 + ): { (p1: T1, p2: T2, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p3: T3, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p1: T1, p3: T3, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p2: T2, p3: T3, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p1: T1, p2: T2, p3: T3, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p2: T2, p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p2: T2, p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p3: T3, p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p3: T3, p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p2: T2, p3: T3, p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p6: T6): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (p2: T2): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p3: T3): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1, p3: T3): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p2: T2, p3: T3): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p2: T2, p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2, p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p3: T3, p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p3: T3, p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p2: T2, p3: T3, p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3, p4: T4): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p3: T3, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p3: T3, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p3: T3, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p3: T3, p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p3: T3, p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p3: T3, p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6):T7 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5): T7 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1 + ): { (p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2 + ): { (p3: T3, p4: T4, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2 + ): { (p1: T1, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3 + ): { (p4: T4, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3 + ): { (p1: T1, p4: T4, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3 + ): { (p2: T2, p4: T4, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3 + ): { (p1: T1, p2: T2, p4: T4, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4 + ): { (p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4 + ): { (p1: T1, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p2: T2, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4 + ): { (p1: T1, p2: T2, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p3: T3, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p3: T3, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p2: T2, p3: T3, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4 + ): { (p1: T1, p2: T2, p3: T3, p5: T5, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + p5: T5 + ): { (p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + p5: T5 + ): { (p1: T1, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5 + ): { (p2: T2, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5 + ): { (p1: T1, p2: T2, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p3: T3, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p1: T1, p3: T3, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p2: T2, p3: T3, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5 + ): { (p1: T1, p2: T2, p3: T3, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p2: T2, p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p2: T2, p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p3: T3, p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p3: T3, p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p2: T2, p3: T3, p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p6: T6, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (p2: T2, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p3: T3, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1, p3: T3, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p2: T2, p3: T3, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p2: T2, p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2, p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p3: T3, p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p3: T3, p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p2: T2, p3: T3, p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p3: T3, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p3: T3, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p3: T3, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p3: T3, p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p3: T3, p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p2: T2, p3: T3, p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p7: T7): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (p2: T2): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (p3: T3): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1, p3: T3): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (p2: T2, p3: T3): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1, p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p2: T2, p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2, p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p3: T3, p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1, p3: T3, p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p2: T2, p3: T3, p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3, p4: T4): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p2: T2, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p3: T3, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p3: T3, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p2: T2, p3: T3, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p2: T2, p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2, p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p3: T3, p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p3: T3, p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p2: T2, p3: T3, p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + p6: T6, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p3: T3, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p3: T3, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p3: T3, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p3: T3, p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p3: T3, p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p3: T3, p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + p5: T5, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p3: T3, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p3: T3, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p3: T3, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + p4: T4, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p4: T4, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p4: T4, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p4: T4, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + p3: T3, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p4: T4, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p3: T3, p4: T4, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + p2: T2, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p3: T3, p4: T4, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + p1: T1, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p2: T2, p3: T3, p4: T4, p5: T5, p6: T6): T8 }; + + partial( + fn: { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6, p7: T7):T8 }, + stub1: UnderscoreStatic, + stub2: UnderscoreStatic, + stub3: UnderscoreStatic, + stub4: UnderscoreStatic, + stub5: UnderscoreStatic, + stub6: UnderscoreStatic, + p7: T7 + ): { (p1: T1, p2: T2, p3: T3, p4: T4, p5: T5, p6: T6): T8 }; /** * Memoizes a given function by caching the computed result. Useful for speeding up slow-running computations. @@ -1247,7 +3529,7 @@ interface UnderscoreStatic { * @return List of all the values on `object`. **/ values(object: any): any[]; - + /** * Like map, but for objects. Transform the value of each property in turn. * @param object The object to transform @@ -1256,7 +3538,7 @@ interface UnderscoreStatic { * @return a new _.Dictionary of property values */ mapObject(object: _.Dictionary, iteratee: (val: T, key: string, object: _.Dictionary) => U, context?: any): _.Dictionary; - + /** * Like map, but for objects. Transform the value of each property in turn. * @param object The object to transform @@ -1264,7 +3546,7 @@ interface UnderscoreStatic { * @param context The optional context (value of `this`) to bind to */ mapObject(object: any, iteratee: (val: any, key: string, object: any) => T, context?: any): _.Dictionary; - + /** * Like map, but for objects. Retrieves a property from each entry in the object, as if by _.property * @param object The object to transform @@ -1319,7 +3601,7 @@ interface UnderscoreStatic { extendOwn( destination: any, ...source: any[]): any; - + /** * Like extend, but only copies own properties over to the destination object. (alias: extendOwn) */ @@ -1486,7 +3768,7 @@ interface UnderscoreStatic { * @return True if `object` is a Function, otherwise false. **/ isFunction(object: any): boolean; - + /** * Returns true if object inherits from an Error. * @param object Check if this object is an Error. @@ -1586,7 +3868,7 @@ interface UnderscoreStatic { constant(value: T): () => T; /** - * Returns undefined irrespective of the arguments passed to it. Useful as the default + * Returns undefined irrespective of the arguments passed to it. Useful as the default * for optional callback arguments. * Note there is no way to indicate a 'undefined' return, so it is currently typed as void. * @return undefined @@ -1685,7 +3967,7 @@ interface UnderscoreStatic { * @return Returns the compiled Underscore HTML template. **/ template(templateString: string, settings?: _.TemplateSettings): (...data: any[]) => string; - + /** * By default, Underscore uses ERB-style template delimiters, change the * following template settings to use alternative delimiters. @@ -2404,7 +4686,7 @@ interface Underscore { * @see _.property **/ property(): (object: Object) => any; - + /** * Wrapped type `object`. * @see _.propertyOf @@ -2422,12 +4704,12 @@ interface Underscore { * @see _.isEmpty **/ isEmpty(): boolean; - + /** * Wrapped type `object`. * @see _.isMatch **/ - isMatch(): boolean; + isMatch(): boolean; /** * Wrapped type `object`. @@ -2458,7 +4740,7 @@ interface Underscore { * @see _.isFunction **/ isFunction(): boolean; - + /** * Wrapped type `object`. * @see _.isError @@ -3322,7 +5604,7 @@ interface _Chain { * @see _.property **/ property(): _Chain; - + /** * Wrapped type `object`. * @see _.propertyOf @@ -3340,7 +5622,7 @@ interface _Chain { * @see _.isEmpty **/ isEmpty(): _Chain; - + /** * Wrapped type `object`. * @see _.isMatch @@ -3521,7 +5803,7 @@ interface _Chain { /************* * * Array proxy * ************** */ - + /** * Returns a new array comprised of the array on which it is called * joined with the array(s) and/or value(s) provided as arguments. diff --git a/unity-webapi/unity-webapi.d.ts b/unity-webapi/unity-webapi.d.ts index 857fe973db..5b9c3a8cd5 100644 --- a/unity-webapi/unity-webapi.d.ts +++ b/unity-webapi/unity-webapi.d.ts @@ -41,11 +41,11 @@ interface UnityMediaPlayer { setCanGoPrev(cangoprev:Boolean); setCanPlay(canplay:Boolean); setCanPause(canpause:Boolean); -} +} interface UnityNotification { showNotification (summary:String, body:String, iconUrl?:String); -} +} declare class UnityIndicatorProperties { public count:Number; @@ -63,7 +63,7 @@ interface UnityMessagingIndicator { removeAction(name:String); removeActions(); onPresenceChanged(onPresenceChanged:Function); - + // This is suppose to be readonly, but i'm not sure how to do this // in a definition file. presence:String; @@ -72,7 +72,7 @@ interface UnityMessagingIndicator { interface UnityLauncher { setCount(count:number); clearCount(); - + setProgress(progress:number); clearProgress(); @@ -81,7 +81,7 @@ interface UnityMessagingIndicator { addAction(name:String, onActionInvoked:Function); removeAction(name:String); removeActions(); -} +} interface Unity { init(settings:UnitySettings); @@ -98,4 +98,3 @@ interface Unity { interface BrowserPublic { getUnityObject(version:number):Unity; } - diff --git a/urbanairship-cordova/urbanairship-cordova.d.ts b/urbanairship-cordova/urbanairship-cordova.d.ts index 2d17721d05..c6486cb75d 100644 --- a/urbanairship-cordova/urbanairship-cordova.d.ts +++ b/urbanairship-cordova/urbanairship-cordova.d.ts @@ -27,56 +27,56 @@ declare module UrbanAirshipPlugin { /** * Enables or disables user notifications on the device. * This will prompt users to opt-in to notifications on iOS. - * + * * @param enabled Set to true to enable notifications, false to disable. * @param callback The function to call on completion. */ setUserNotificationsEnabled(enabled: boolean, callback: (status: string) => void): void; - + /** * Checks if user notifications are enabled or not. - * + * * @param callback The function to call on completion. */ isUserNotificationsEnabled(callback: (enabled: boolean) => void): void; - + /** * Get the push identifier for the device. The channel ID is used to send * messages to the device for testing, and is the canonical identifier for * the device in Urban Airship. - * + * * @param callback The function to call on completion. */ getChannelID(callback: (id: string) => void): void; - + /** * Returns the push message object that contains the data associated with a * push notification. The extras dictionary can contain arbitrary key/value * data that you use in your application. - * + * * @param clear Set to true to clear the notification. * @param callback The function to call on completion. */ getLaunchNotification(clear: boolean, callback: (push: UrbanAirshipPlugin.PushEvent) => void): void; - + /** * Enables or disables quiet time. - * + * * @param enabled Set to true to enable quiet time, false to disable. * @param callback The function to call on completion. */ setQuietTimeEnabled(enabled: boolean, callback: () => void): void; - + /** * Checks if quiet time is enabled or not. - * + * * @param callback The function to call on completion. */ isQuietTimeEnabled(callback: (enabled: boolean) => void): void; - + /** * Set the quiet time for the device. - * + * * @param startHour The start hour for quiet time. * @param startMinute The start minute for quiet time. * @param endHour The end hour for quiet time. @@ -84,260 +84,260 @@ declare module UrbanAirshipPlugin { * @param callback The function to call on completion. */ setQuietTime(startHour: number, startMinute: number, endHour: number, endMinute: number, callback: () => void): void; - + /** * Get the current quiet time. The quietTime object represents a timespan * during which notifications should be silenced. The typical use case is * to expose a preference to your users so that they can enable this setting * and specify an interval during which they do not wish to be disturbed. - * + * * @param callback The function to call on completion. */ getQuietTime(callback: (quietTime: UrbanAirshipPlugin.QuietTimeTimeSpan) => void): void; - + /** * Checks if quiet time is currently in effect. - * + * * @param callback The function to call on completion. */ isInQuietTime(callback: (inQuietTime: boolean) => void): void; - + /** * (iOS Only) - * + * * On iOS, registration for push requires specifying what * combination of badges, sound and alerts are desired. This function * must be explicitly called in order to begin the registration process. - * + * * For example: - * + * * UAirship.setNotificationTypes(UAirship.notificationType.sound | * UAirship.notificationType.alert); - * + * * @param bitmask The notification types to set. * @param callback The function to call on completion. */ setNotificationTypes(bitmask: number, callback: () => void): void; - + /** * (iOS Only) - * + * * Set whether the UA Autobadge feature is enabled. - * + * * @param enabled Set to true to enable Autobadge, false to disable. * @param callback The function to call on completion. */ setAutobadgeEnabled(enabled: boolean, callback: () => void): void; - + /** * (iOS Only) - * + * * Set the current application badge number. - * + * * @param badge The number to use for the badge. * @param callback The function to call on completion. */ setBadgeNumber(badge: number, callback: () => void): void; - + /** * (iOS Only) - * + * * Gets the current application badge number. - * + * * @param callback The function to call on completion. */ getBadgeNumber(callback: (badgeNumber: number) => void): void; - + /** * (iOS Only) - * + * * Reset the badge number to zero. - * + * * @param callback The function to call on completion. */ resetBadge(callback: () => void): void; - + /** * (Android Only) - * + * * Clears the notifications posted by the application. - * + * * @param callback The function to call on completion. */ clearNotifications(callback: () => void): void; - + /** * (Android only, iOS sound settings come in the push) - * + * * Set whether the device makes sound on push. - * + * * @param enabled Set to true to enable sound, false to disable. * @param callback The function to call on completion. */ setSoundEnabled(enabled: boolean, callback: () => void): void; - + /** * (Android Only) - * + * * Checks if sound is enabled or not. - * + * * @param callback The function to call on completion. */ isSoundEnabled(callback: (enabled: boolean) => void): void; - + /** * (Android Only) - * + * * Set whether the device vibrates on push. - * + * * @param enabled Set to true to enable vibration, false to disable. * @param callback The function to call on completion. */ setVibrateEnabled(enabled: boolean, callback: () => void): void; - + /** * (Android Only) - * + * * Checks if vibration is enabled or not. - * + * * @param callback The function to call on completion. */ isVibrateEnabled(callback: (enabled: boolean) => void): void; - + /** * Sets tags for the device. - * + * * @param tags An array of tags. * @param callback The function to call on completion. */ setTags(tags: string[], callback: () => void): void; - + /** * Returns the tags for the device. - * + * * @param callback The function to call on completion. */ getTags(callback: (tags: string[]) => void): void; - + /** * Set alias for the device. - * + * * @param alias The alias to set for this device. * @param callback The function to call on completion. */ setAlias(alias: string, callback: () => void): void; - + /** * Gets the alias for this device. - * + * * @param callback The function to call on completion. */ getAlias(callback: (alias: string) => void): void; - + /** * Set the named user ID for this device. - * + * * @param namedUser The named user ID. * @param callback The function to call on completion. */ setNamedUser(namedUserId: string, callback: () => void): void; - + /** * Gets the named user ID for this device. - * + * * @param callback The function to call on completion. */ getNamedUser(callback: (namedUserId: string) => void): void; - + /** * Fluent API to edit the named user tag groups by adding or removing * tags, then applying the changes. - * + * * For example: - * + * * UAirship.editNamedUserTagGroups() * .addTags("loyalty", ["platinum-member", "gold-member"]) * .removeTags("loyalty", ["silver-member", "bronze-member"]) * .apply() - * + * * @returns The chainable API instance. */ editNamedUserTagGroups(): UrbanAirshipPlugin.EditNamedUserTagGroupsApi; - + /** * Fluent API to edit the channel tag groups by adding or removing tags, * then applying the changes. - * + * * For exmaple: - * + * * UAirship.editChannelTagGroups() * .addTags("loyalty", ["platinum-member", "gold-member"]) * .removeTags("loyalty", ["silver-member", "bronze-member"]) * .apply() */ editChannelTagGroups(): UrbanAirshipPlugin.EditChannelTagGroupsApi; - + /** * Enables or disables analytics. Disabling analytics will delete any * locally stored events and prevent any events from uploading. Features * that depend on analytics being enabled may not work properly if it’s * disabled (reports, region triggers, location segmentation, push to * local time). - * + * * @param enabled Set to true to enable analytics, false to disable. * @param callback The function to call on completion. */ setAnalyticsEnabled(enabled: boolean, callback: () => void): void; - + /** * Checks if analytics is enabled or not. - * + * * @param callback The function to call on completion. */ isAnalyticsEnabled(callback: (enabled: boolean) => void): void; - + /** * Runs an Urban Airship action. - * + * * @param actionName The name of the action to run. * @param actionValue The value for the action. * @param callback The function to call on completion. */ runAction(actionName: string, actionValue: string, callback: (result: UrbanAirshipPlugin.RunActionResult) => void): void; - + /** * Enables or disables Urban Airship location services on the device. - * + * * @param enabled Set to true to enable location, false to disable. * @param callback The function to call on completion. */ setLocationEnabled(enabled: boolean, callback: () => void): void; - + /** * Checks if location is enabled or not. - * + * * @param callback The function to call on completion. */ isLocationEnabled(callback: (enabled: boolean) => void): void; - + /** * Enables or disables background location on the device. - * + * * @param enabled Set to true to enable background location, false to disable. * @param callback The function to call on completion. */ setBackgroundLocationEnabled(enabled: boolean, callback: () => void): void; - + /** * Checks if background location updates are enabled or not. - * + * * @param callback The function to call on completion. */ isBackgroundLocationEnabled(callback: () => void): void; - + /** * Records the current location of the device. - * + * * @param callback The function to call on completion. */ recordCurrentLocation(callback: () => void): void; @@ -350,27 +350,27 @@ declare module UrbanAirshipPlugin { /** * Used to add the given tags to the given tag group. - * + * * @param tagGroup The tag group to add tags to. * @param tags The tags to add to the group. - * + * * @returns The chainable API instance. */ addTags: (tagGroup: string, tags: string[]) => EditNamedUserTagGroupsApi; /** * Used to remove the given tags from the given tag group. - * + * * @param tagGroup The tag group to remove tags from. * @param tags The tags to remove from the group. - * + * * @returns The chainable API instance. */ removeTags: (tagGroup: string, tags: string[]) => EditNamedUserTagGroupsApi; /** * Used to apply the changes from the chained API call. - * + * * @param callback The optional function to call on completion. */ apply: (callback?: () => void) => void; @@ -383,27 +383,27 @@ declare module UrbanAirshipPlugin { /** * Used to add the given tags to the given tag group. - * + * * @param tagGroup The tag group to add tags to. * @param tags The tags to add to the group. - * + * * @returns The chainable API instance. */ addTags: (tagGroup: string, tags: string[]) => EditChannelTagGroupsApi; /** * Used to remove the given tags from the given tag group. - * + * * @param tagGroup The tag group to remove tags from. * @param tags The tags to remove from the group. - * + * * @returns The chainable API instance. */ removeTags: (tagGroup: string, tags: string[]) => EditChannelTagGroupsApi; /** * Used to apply the changes from the chained API call. - * + * * @param callback The optional function to call on completion. */ apply: (callback?: () => void) => void; @@ -429,7 +429,7 @@ declare module UrbanAirshipPlugin { /** * (iOS Only) - * + * * The push token for the device. */ deviceToken: string; @@ -437,7 +437,7 @@ declare module UrbanAirshipPlugin { /** * Represents a timespan during which notifications should be silenced. - * + * * For example, 10PM - 6AM would be: * { startHour: 22, startMinute: 0, endHour: 6, endMinute: 0 } */ @@ -474,4 +474,4 @@ interface Document { addEventListener(type: "urbanairship.registration", listener: (ev: UrbanAirshipPlugin.RegistrationEvent) => void, useCapture?: boolean): void; } -//#endregion \ No newline at end of file +//#endregion diff --git a/username/username.d.ts b/username/username.d.ts index 5784f46ff5..06808434df 100644 --- a/username/username.d.ts +++ b/username/username.d.ts @@ -6,13 +6,13 @@ declare module "username" { /** * Tries to get the username from the LOGNAME, USER, LNAME or USERNAME environment variables. - * Falls back to `id -un` on OS X / Linux and `whoami` on Windows in the rare case none of the environment + * Falls back to `id -un` on OS X / Linux and `whoami` on Windows in the rare case none of the environment * variables are set. The result is cached. * * @param callback The callback function to call asynchronously with the result. */ function username(callback: (err: Error, result: string) => void): void; - + module username { /** * Tries to get the username from the LOGNAME, USER, LNAME or USERNAME environment variables. Falls back diff --git a/valerie/valerie-tests.ts b/valerie/valerie-tests.ts index b33932e290..6657682eed 100644 --- a/valerie/valerie-tests.ts +++ b/valerie/valerie-tests.ts @@ -294,7 +294,7 @@ function ModelValidation() { var validatedModel = valerie.validatableModel(model) .validateAll() .end(); - + } function UtilsStaticTests() { diff --git a/valerie/valerie.d.ts b/valerie/valerie.d.ts index abe5aea281..d08b18c752 100644 --- a/valerie/valerie.d.ts +++ b/valerie/valerie.d.ts @@ -255,7 +255,7 @@ declare module Valerie { /* //TODO: additional namespaces/statics not yet used - dom: DomStatic; + dom: DomStatic; formatting: FormattingStatic; koBindingsHelper: KoBindingsHelperStatic; koExtras: KoExtrasStatic; @@ -278,7 +278,7 @@ declare module Valerie { // Contains converters, always singletons. interface ConvertersStatic { - + //TODO: other converters to be added passThrough: Valerie.IConverter; @@ -365,19 +365,19 @@ declare module Valerie { */ clearSummary(valueOrFunction: any): ModelValidationState; - /*** + /*** * Gets whether the model has failed validation. * @return {boolean} */ failed(): boolean; - /*** + /*** * Gets the validation states that belong to the model that are in a failure state. * @return {Valerie.IValidationState[]} */ failedStates(): Valerie.IValidationState[]; - /*** + /*** * Gets the name of the model. * @return {string} */ @@ -387,7 +387,7 @@ declare module Valerie { message(): string; passed(): boolean; - /*** + /*** * Gets or sets whether the computation that updates the validation result has been paused. * @param {boolean} [value = false] true if the computation should be paused, false if the computation should not be paused * @return {boolean} true if computation is paused, false otherwise diff --git a/vec3/vec3.d.ts b/vec3/vec3.d.ts index 29bac0c561..28cb46c3ec 100644 --- a/vec3/vec3.d.ts +++ b/vec3/vec3.d.ts @@ -9,7 +9,7 @@ declare module "vec3" { constructor(location: number[]); constructor(location: {x: number; y: number; z: number}); constructor(locationStr: string); - + set(x: number, y: number, z: number): Vec3; update(other: Vec3): Vec3; floored(): Vec3; @@ -31,4 +31,4 @@ declare module "vec3" { min(other: Vec3): Vec3; max(other: Vec3): Vec3; } -} \ No newline at end of file +} diff --git a/vega/vega.d.ts b/vega/vega.d.ts index 4441cceaeb..80c91149a6 100644 --- a/vega/vega.d.ts +++ b/vega/vega.d.ts @@ -65,7 +65,7 @@ declare namespace Vega { props?: string; items?: any; duration?: number; - ease?: string; + ease?: string; } export interface Bounds { @@ -518,7 +518,7 @@ declare namespace vg { export namespace scene { export function item(mark: Vega.Node): Vega.Node; } - + export class Bounds implements Vega.Bounds { x1: number; y1: number; @@ -540,4 +540,4 @@ declare namespace vg { } // TODO: classes for View, Model, etc. -} \ No newline at end of file +} diff --git a/vexflow/vexflow.d.ts b/vexflow/vexflow.d.ts index c17e96576e..5c304fa307 100644 --- a/vexflow/vexflow.d.ts +++ b/vexflow/vexflow.d.ts @@ -4,10 +4,10 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped //inconsistent namespace: this is a helper funtion from tables.js and should not pollute the global namespace! -declare function sanitizeDuration(duration : string) : string; +declare function sanitizeDuration(duration : string) : string; declare namespace Vex { - + function L(block : string, args : any[]) : void; function Merge(destination : T, source : Object) : T; function Min(a : number, b : number) : number; @@ -20,15 +20,15 @@ declare namespace Vex { function drawDot(ctx : IRenderContext, x : number, y : number, color? : string) : void; function BM(s : number, f : Function) : void; function Inherit(child : T, parent : Object, object : Object) : T; - + class RuntimeError { constructor(code : string, message : string); } - + class RERR { constructor(code : string, message : string); } - + /** * Helper interface for handling the different rendering contexts (i.e. CanvasContext, RaphaelContext, SVGContext). Not part of VexFlow! */ @@ -61,13 +61,13 @@ declare namespace Vex { fillText(text : string, x : number, y : number) : IRenderContext; save() : IRenderContext; restore() : IRenderContext; - + /** * canvas returns TextMetrics, SVG returns SVGRect, Raphael returns {width : number, height : number}. Only width is used throughout VexFlow. */ measureText(text : string) : {width : number}; } - + /** * Helper interface for handling the Vex.Flow.Font object in Vex.Flow.Glyph. Not part of VexFlow! */ @@ -83,17 +83,17 @@ declare namespace Vex { familyName : string; lineHeight : number; underlineThickness : number; - + /** * This property is missing in vexflow_font.js, but present in gonville_original.js and gonville_all.js. */ original_font_information? : {postscript_name : string, version_string : string, vendor_url : string, full_font_name : string, font_family_name : string, copyright : string, description : string, trademark : string, designer : string, designer_url : string, unique_font_identifier : string, license_url : string, license_description : string, manufacturer_name : string, font_sub_family_name : string}; } - + namespace Flow { - + const RESOLUTION : number; - + // from tables.js: const STEM_WIDTH : number; const STEM_HEIGHT : number; @@ -115,10 +115,10 @@ declare namespace Vex { function durationToNumber(duration : string) : number; function durationToTicks(duration : string) : number; function durationToGlyph(duration : string, type : string) : {head_width : number, stem : boolean, stem_offset : number, flag : boolean, stem_up_extension : number, stem_down_extension : number, gracenote_stem_up_extension : number, gracenote_stem_down_extension : number, tabnote_stem_up_extension : number, tabnote_stem_down_extension : number, dot_shiftY : number, line_above : number, line_below : number, code_head? : string, rest? : boolean, position? : string}; - + // from glyph.js: function renderGlyph(ctx : IRenderContext, x_pos : number, y_pos : number, point : number, val : string, nocache : boolean) : void; - + // from vexflow_font.js / gonville_original.js / gonville_all.js var Font : { glyphs : {x_min : number, x_max : number, ha : number, o : string[]}[]; @@ -132,15 +132,15 @@ declare namespace Vex { familyName : string; lineHeight : number; underlineThickness : number; - + //inconsistent member : this is missing in vexflow_font.js, but present in gonville_original.js and gonville_all.js original_font_information : {postscript_name : string, version_string : string, vendor_url : string, full_font_name : string, font_family_name : string, copyright : string, description : string, trademark : string, designer : string, designer_url : string, unique_font_identifier : string, license_url : string, license_description : string, manufacturer_name : string, font_sub_family_name : string}; } - + class Accidental extends Modifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes setNote(note : Note) : Modifier; - + constructor(type : string); static DEBUG : boolean; static format(accidentals : Accidental[], state : {left_shift : number, right_shift : number, text_line : number}) : void; @@ -149,11 +149,11 @@ declare namespace Vex { draw() : void; static applyAccidentals(voices : Voice[], keySignature? : string) : void; } - + namespace Accidental { const CATEGORY : string; } - + class Annotation extends Modifier { constructor(text : string); static DEBUG : boolean; @@ -165,24 +165,24 @@ declare namespace Vex { setJustification(justification : Annotation.Justify) : Annotation; draw() : void; } - + namespace Annotation { const enum Justify {LEFT, CENTER, RIGHT, CENTER_STEM} const enum VerticalJustify {TOP, CENTER, BOTTOM, CENTER_STEM} const CATEGORY : string; } - + class Articulation extends Modifier { constructor(type : string); static DEBUG : boolean; static format(articulations : Articulation[], state : {left_shift : number, right_shift : number, text_line : number}) : boolean; draw() : void; } - + namespace Articulation { const CATEGORY : string; } - + class BarNote extends Note { static DEBUG : boolean; getType() : Barline.type; @@ -192,11 +192,11 @@ declare namespace Vex { preFormat() : BarNote; draw() : void; } - + namespace Barline { const enum type {SINGLE, DOUBLE, END, REPEAT_BEGIN, REPEAT_END, REPEAT_BOTH, NONE} } - + class Barline extends StaveModifier { constructor(type : Barline.type, x : number); getCategory() : string; @@ -206,7 +206,7 @@ declare namespace Vex { drawVerticalEndBar(stave : Stave, x : number) : void; drawRepeatBar(stave : Stave, x : number, begin : boolean) : void; } - + class Beam { constructor(notes : StemmableNote[], auto_stem? : boolean); setContext(context : IRenderContext) : Beam; @@ -227,7 +227,7 @@ declare namespace Vex { static applyAndGetBeams(voice : Voice, stem_direction : number, groups : Fraction[]) : Beam[]; static generateBeams(notes : StemmableNote[], config? : {groups? : Fraction[], stem_direction? : number, beam_rests? : boolean, beam_middle_only? : boolean, show_stemlets? : boolean, maintain_stem_directions? : boolean}) : Beam[]; } - + class Bend extends Modifier { constructor(text : string, release? : boolean, phrase? : {type : number, text : string, width : number}[]); static UP : number; @@ -239,11 +239,11 @@ declare namespace Vex { updateWidth() : Bend; draw() : void; } - + namespace Bend { const CATEGORY : string; } - + class BoundingBox { constructor(x : number, y : number, w : number, h : number); static copy(that : BoundingBox) : BoundingBox; @@ -260,7 +260,7 @@ declare namespace Vex { mergeWith(boundingBox : BoundingBox, ctx? : IRenderContext) : BoundingBox; draw(ctx : IRenderContext, x : number, y : number) : void; } - + class CanvasContext implements IRenderContext { //TODO remove the following lines once TypeScript allows subclass overrides with type changes or type inconsistencies mentioned below are fixed setLineDash(dash : string) : CanvasContext; @@ -281,7 +281,7 @@ declare namespace Vex { fillText(text : string, x : number, y : number) : CanvasContext; save() : CanvasContext; restore() : CanvasContext; - + constructor(context : CanvasRenderingContext2D); static WIDTH : number; static HEIGHT : number; @@ -295,7 +295,7 @@ declare namespace Vex { setShadowBlur(blur : string) : CanvasContext; setLineWidth(width : number) : CanvasContext; setLineCap(cap_type : string) : CanvasContext; - + //inconsistent type: void -> CanvasContext setLineDash(dash : string) : void; scale(x : number, y : number) : void; @@ -317,22 +317,22 @@ declare namespace Vex { save() : void; restore() : void; } - + class Clef extends StaveModifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes addModifier() : void; addEndModifier() : void; - + constructor(clef : string, size? : string, annotation? : string); static DEBUG : boolean; addModifier(stave : Stave) : void; addEndModifier(stave : Stave) : void; } - + class ClefNote extends Note { //TODO remove the following lines once TypeScript allows subclass overrides with type changes setStave(stave : Stave) : Note; - + constructor(clef : string, size? : string, annotation? : string); setClef(clef : string, size? : string, annotation? : string) : ClefNote; getClef() : string; @@ -343,7 +343,7 @@ declare namespace Vex { preFormat() : ClefNote; draw() : void; } - + class Crescendo extends Note { constructor(note_struct : {duration : number, line? : number}); static DEBUG : boolean; @@ -353,7 +353,7 @@ declare namespace Vex { preFormat() : Crescendo; draw() : void; } - + class Curve { constructor(from : Note, to : Note, options? : {spacing? : number, thickness? : number, x_shift? : number, y_shift : number, position : Curve.Position, invert : boolean, cps? : {x : number, y : number}[]}); static DEBUG : boolean; @@ -363,28 +363,28 @@ declare namespace Vex { renderCurve(params : {first_x : number, first_y : number, last_x : number, last_y : number, direction : number}) : void; draw() : boolean; } - + namespace Curve { const enum Position {NEAR_HEAD, NEAR_TOP} } - + class Dot extends Modifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes or type inconsistencies mentioned below are fixed setNote(note : Note) : Dot; - + static format(dots : number, state : {left_shift : number, right_shift : number, text_line : number}) : void; setNote(note : Note) : void; //inconsistent type: void -> Dot setDotShiftY(y : number) : Dot; draw() : void; } - + namespace Dot { const CATEGORY : string; } - + class Formatter { static DEBUG : boolean; - static FormatAndDraw(ctx : IRenderContext, stave : Stave, notes : Note[], params? : {auto_beam : boolean, align_rests : boolean}) : BoundingBox; + static FormatAndDraw(ctx : IRenderContext, stave : Stave, notes : Note[], params? : {auto_beam : boolean, align_rests : boolean}) : BoundingBox; static FormatAndDraw(ctx : IRenderContext, stave : Stave, notes : Note[], params? : boolean) : BoundingBox; static FormatAndDrawTab(ctx : IRenderContext, tabstave : TabStave, stave : Stave, tabnotes : TabNote[], notes : Note[], autobeam? : boolean, params? : {auto_beam : boolean, align_rests : boolean}) : void; static FormatAndDrawTab(ctx : IRenderContext, tabstave : TabStave, stave : Stave, tabnotes : TabNote[], notes : Note[], autobeam? : boolean, params? : boolean) : void; @@ -400,7 +400,7 @@ declare namespace Vex { format(voices : Voice[], justifyWidth : number, options? : {align_rests? : boolean, context : IRenderContext}) : Formatter; formatToStave(voices : Voice[], stave : Stave, options? : {align_rests? : boolean, context : IRenderContext}) : Formatter; } - + class Fraction { constructor(numerator : number, denominator : number); static GCD(a : number, b : number) : number; @@ -432,7 +432,7 @@ declare namespace Vex { toMixedString() : string; parse(str : string) : Fraction; } - + class FretHandFinger extends Modifier { constructor(number : number); static format(nums : FretHandFinger[], state : {left_shift : number, right_shift : number, text_line : number}) : void; @@ -447,15 +447,15 @@ declare namespace Vex { setOffsetY(y : number) : FretHandFinger; draw() : void; } - + namespace FretHandFinger { const CATEGORY : string; } - + class GhostNote extends StemmableNote { //TODO remove the following lines once TypeScript allows subclass overrides with type changes or type inconsistencies mentioned below are fixed setStave(stave : Stave) : Note; - + constructor(duration : string); constructor(note_struct : {type? : string, dots? : number, duration : string}); //inconsistent name : init struct is called 'duration', should be 'params'/'options' (may be string or Object) isRest() : boolean; @@ -464,7 +464,7 @@ declare namespace Vex { preFormat() : GhostNote; draw() : void; } - + class Glyph { constructor(code : string, point : number, options? : {cache? : boolean, font? : IFont}); setOptions(options : {cache? : boolean, font? : IFont}) : void; @@ -481,19 +481,19 @@ declare namespace Vex { static loadMetrics(font : IFont, code : string, cache : boolean) : {x_min : number, x_max : number, ha : number, outline : number[]}; static renderOutline(ctx : IRenderContext, outline : number[], scale : number, x_pos : number, y_pos : number) : void; } - + class GraceNote extends StaveNote { constructor(note_struct : {slash? : boolean, type? : string, dots? : number, duration : string, clef? : string, keys : string[], octave_shift? : number, auto_stem? : boolean, stem_direction? : number}); getStemExtension() : number; getCategory() : string; draw() : void; } - + class GraceNoteGroup extends Modifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes or type inconsistencies mentioned below are fixed setWidth(width : number) : Modifier; setNote(note : StaveNote) : Modifier; - + constructor(grace_notes : GraceNote[], show_slur? : boolean); //inconsistent name: 'show_slur' is called 'config', suggesting object (is boolean) static DEBUG : boolean; static format(gracenote_groups : GraceNoteGroup[], state : {left_shift : number, right_shift : number, text_line : number}) : boolean; @@ -505,11 +505,11 @@ declare namespace Vex { setXShift(x_shift : number) : void; draw() : void; } - + namespace GraceNoteGroup { const CATEGORY : string; } - + class KeyManager { constructor(key : string); setKey(key : string) : KeyManager; @@ -518,11 +518,11 @@ declare namespace Vex { getAccidental(key : string) : {note : string, accidental : string}; selectNote(note : string) : {note : string, accidental : string, change : boolean}; } - + class KeySignature extends StaveModifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes addModifier() : void; - + constructor(key_spec : string); addAccToStave(stave : Stave, acc : {type : string, line : number}, next? : {type : string, line : number}) : void; cancelKey(spec : string) : KeySignature; @@ -530,7 +530,7 @@ declare namespace Vex { addToStave(stave : Stave, firstGlyph? : boolean) : KeySignature; convertAccLines(clef : string, type : string) : void; } - + class Modifier { static DEBUG : boolean; getCategory() : string; @@ -551,12 +551,12 @@ declare namespace Vex { setXShift(x : number) : void; //inconsistent type: void -> Modifier draw() : void; } - + namespace Modifier { const enum Position {LEFT, RIGHT, ABOVE, BELOW} const CATEGORY : string } - + class ModifierContext { static DEBUG : boolean; addModifier(modifier : Modifier) : ModifierContext; @@ -569,7 +569,7 @@ declare namespace Vex { preFormat() : void; postFormat() : void; } - + class Music { isValidNoteValue(note : number) : boolean; isValidIntervalValue(interval : number) : boolean; @@ -585,7 +585,7 @@ declare namespace Vex { getIntervalBetween(note1 : number, note2 : number, direction? : number) : number; createScaleMap(keySignature : string) : {[rootName : string] : string}; } - + namespace Music { const NUM_TONES : number; const roots : string[]; @@ -599,7 +599,7 @@ declare namespace Vex { const accidentals : string[]; const noteValues : {[value : string] : {root_index : number, int_val : number}}; } - + class Note implements Tickable { //from tickable interface: getTicks() : Fraction; @@ -616,7 +616,7 @@ declare namespace Vex { getTickMultiplier() : Fraction; applyTickMultiplier(numerator : number, denominator : number) : void; setDuration(duration : Fraction) : void; - + constructor(note_struct : {type? : string, dots? : number, duration : string}); getPlayNote() : any; setPlayNote(note : any) : Note; @@ -659,11 +659,11 @@ declare namespace Vex { getAbsoluteX() : number; setPreFormatted(value : boolean) : void; } - + namespace Note { const CATEGORY : string; } - + class NoteHead extends Note { constructor(head_options : {x? : number, y? : number, note_type? : string, duration : string, displaced? : boolean, stem_direction? : number, line : number, x_shift : number, custom_glyph_code? : string, style? : string, slashed? : boolean, glyph_font_scale? : number}); static DEBUG : boolean; @@ -686,7 +686,7 @@ declare namespace Vex { preFormat() : NoteHead; draw() : void; } - + class Ornament extends Modifier { constructor(type : string); static DEBUG : boolean; @@ -696,11 +696,11 @@ declare namespace Vex { setLowerAccidental(acc : string) : Ornament; draw() : void; } - + namespace Ornament { const CATEGORY : string; } - + class PedalMarking { constructor(notes : Note[]); //inconsistent name: 'notes' is called 'type', suggesting string (is Note[]) static DEBUG : boolean; @@ -715,17 +715,17 @@ declare namespace Vex { drawText() : void; draw() : void; } - + namespace PedalMarking { const enum Styles {TEXT, BRACKET, MIXED} const GLYPHS : {[name : string] : {code : string, x_shift : number, y_shift : number}}; } - + class RaphaelContext implements IRenderContext { //TODO remove the following lines once TypeScript allows subclass overrides with type changes or type inconsistencies mentioned below are fixed setLineWidth(width : number) : RaphaelContext; glow() : RaphaelContext; - + constructor(element : HTMLElement); setFont(family : string, size : number, weight? : number) : RaphaelContext; setRawFont(font : string) : RaphaelContext; @@ -759,7 +759,7 @@ declare namespace Vex { save() : RaphaelContext; restore() : RaphaelContext; } - + class Renderer { constructor(sel : HTMLElement, backend : Renderer.Backends) static USE_CANVAS_PROXY : boolean; @@ -772,12 +772,12 @@ declare namespace Vex { resize(width : number, height : number) : Renderer; getContext() : IRenderContext; } - + namespace Renderer { const enum Backends {CANVAS, RAPHAEL, SVG, VML} const enum LineEndType {NONE, UP, DOWN} } - + class Repetition extends StaveModifier { constructor(type : Repetition.type, x : number, y_shift : number); getCategory() : string; @@ -792,7 +792,7 @@ declare namespace Vex { namespace Repetition { const enum type { NONE, CODA_LEFT, CODA_RIGHT, SEGNO_LEFT, SEGNO_RIGHT, DC, DC_AL_CODA, DC_AL_FINE, DS, DS_AL_CODA, DS_AL_FINE, FINE } } - + class Stave { constructor(x : number, y : number, width : number, options? : {vertical_bar_width? : number, glyph_spacing_px? : number, num_lines? : number, fill_style? : string, spacing_between_lines_px? : number, space_above_staff_ln? : number, space_below_staff_ln? : number, top_text_position? : number}); resetLines() : void; @@ -846,7 +846,7 @@ declare namespace Vex { setConfigForLine(line_number : number, line_config : {visible : boolean}) : Stave; setConfigForLines(lines_configuration : {visible : boolean}[]) : Stave; } - + class StaveConnector { constructor(top_stave : Stave, bottom_stave : Stave); setContext(ctx : IRenderContext) : StaveConnector; @@ -861,7 +861,7 @@ declare namespace Vex { namespace StaveConnector { const enum type { SINGLE_RIGHT, SINGLE_LEFT, SINGLE, DOUBLE, BRACE, BRACKET, BOLD_DOUBLE_LEFT, BOLD_DOUBLE_RIGHT, THIN_DOUBLE } } - + class StaveHairpin { constructor(notes : {first_note : Note, last_note : Note}, type : StaveHairpin.type); static FormatByTicksAndDraw(ctx : IRenderContext, formatter : Formatter, notes : {first_note : Note, last_note : Note}, type : StaveHairpin.type, position : Modifier.Position, options? : {height : number, y_shift : number, left_shift_ticks : number, right_shift_ticks : number}) : void; @@ -876,7 +876,7 @@ declare namespace Vex { namespace StaveHairpin { const enum type { CRESC, DECRESC } } - + class StaveLine { constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}); setContext(context : Object) : StaveLine; @@ -886,11 +886,11 @@ declare namespace Vex { applyLineStyle() : void; applyFontStyle() : void; draw() : StaveLine; - + //inconsistent API: this should be set via an options object in the constructor render_options : {padding_left : number, padding_right : number, line_width : number, line_dash : number[], rounded_end : boolean, color : string, draw_start_arrow : boolean, draw_end_arrow : boolean, arrowhead_length : number, arrowhead_angle : number, text_position_vertical : StaveLine.TextVerticalPosition, text_justification : StaveLine.TextJustification}; } - + namespace StaveLine { const enum TextVerticalPosition { TOP, BOTTOM } const enum TextJustification { LEFT, CENTER, RIGHT } @@ -906,10 +906,10 @@ declare namespace Vex { addModifier() : void; addEndModifier() : void; } - + class StaveNote extends StemmableNote { //TODO remove the following lines once TypeScript allows subclass overrides with type changes and/or inconsistencies mentioned below are fixed - buildStem() : StemmableNote; + buildStem() : StemmableNote; setStave(stave : Stave) : Note; addModifier(modifier : Modifier, index? : number) : Note; getModifierStartXY() : {x : number, y : number}; @@ -972,11 +972,11 @@ declare namespace Vex { const STEM_DOWN: number; const CATEGORY: string; } - + class StaveSection extends Modifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes draw() : void; - + constructor(section : string, x : number, shift_y : number); getCategory() : string; setStaveSection(section : string) : StaveSection; @@ -984,7 +984,7 @@ declare namespace Vex { setShiftY(y : number) : StaveSection; draw(stave : Stave, shift_x : number) : StaveSection; } - + class StaveTempo extends StaveModifier { constructor(tempo : {name? : string, duration : string, dots : number, bpm : number}, x : number, shift_y : number); getCategory() : string; @@ -993,11 +993,11 @@ declare namespace Vex { setShiftY(y : number) : StaveTempo; draw(stave : Stave, shift_x : number) : StaveTempo; } - + class StaveText extends Modifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes draw() : void; - + constructor(text : string, position : Modifier.Position, options? : {shift_x? : number, shift_y? : number, justification? : TextNote.Justification}); getCategory() : string; setStaveText(text : string) : StaveText; @@ -1007,7 +1007,7 @@ declare namespace Vex { setText(text : string) : void; draw(stave : Stave) : StaveText; } - + class StaveTie { constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}, text? : string); setContext(context : IRenderContext) : StaveTie; @@ -1018,7 +1018,7 @@ declare namespace Vex { renderText(first_x_px : number, last_x_px : number) : void; draw() : boolean; } - + class Stem { constructor(options : {x_begin? : number, x_end? : number, y_top? : number, y_bottom? : number, y_extend? : number, stem_extension? : number, stem_direction? : number}); static DEBUG : boolean; @@ -1035,7 +1035,7 @@ declare namespace Vex { getStyle() : {shadowColor? : string, shadowBlur? : string, fillStyle? : string, strokeStyle? : string}; applyStyle(context : IRenderContext) : Stem; draw() : void; - + //inconsistent API: this should be set via the options object in the constructor hide : boolean; } @@ -1044,11 +1044,11 @@ declare namespace Vex { const UP: number; const DOWN: number; } - + class StemmableNote extends Note { //TODO remove the following lines once TypeScript allows subclass overrides with type changes setBeam() : Note; - + constructor(note_struct : {type? : string, dots? : number, duration : string}); static DEBUG : boolean; getStem() : Stem; @@ -1070,11 +1070,11 @@ declare namespace Vex { postFormat() : StemmableNote; drawStem(stem_struct : {x_begin? : number, x_end? : number, y_top? : number, y_bottom? : number, y_extend? : number, stem_extension? : number, stem_direction? : number}) : void; } - + class StringNumber extends Modifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes setNote(note : Note) : StringNumber; - + constructor(number : number); static format(nums : StringNumber[], state : {left_shift : number, right_shift : number, text_line : number}) : boolean; getNote() : Note; @@ -1095,7 +1095,7 @@ declare namespace Vex { namespace StringNumber { const CATEGORY: string; } - + class Stroke extends Modifier { constructor(type : Stroke.Type, options : {all_voices? : boolean}); static format(strokes : Stroke[], state : {left_shift : number, right_shift : number, text_line : number}) : boolean; @@ -1103,7 +1103,7 @@ declare namespace Vex { addEndNote(note : Note) : Stroke; draw() : void; } - + namespace Stroke { const enum Type {BRUSH_DOWN, BRUSH_UP, ROLL_DOWN, ROLL_UP, RASQUEDO_DOWN, RASQUEDO_UP} const CATEGORY : string; @@ -1145,12 +1145,12 @@ declare namespace Vex { save() : SVGContext; restore() : SVGContext; } - + class TabNote extends StemmableNote { //TODO remove the following lines once TypeScript allows subclass overrides with type changes setStave(stave : Stave) : Note; getModifierStartXY() : {x : number, y : number}; - + constructor(tab_struct : {positions : {str : number, fret : number}[], type? : string, dots? : number, duration : string, stem_direction? : boolean}, draw_stem? : boolean); getCategory() : string; setGhost(ghost : boolean) : TabNote; @@ -1174,32 +1174,32 @@ declare namespace Vex { drawStemThrough() : void; draw() : void; } - + class TabSlide extends TabTie { constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}, direction? : number); static createSlideUp(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabSlide; static createSlideDown(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabSlide; renderTie(params : {first_ys : number[], last_ys : number[], last_x_px : number, first_x_px : number, direction : number}) : void; } - + namespace TabSlide { const SLIDE_UP : number; const SLIDE_DOWN : number; } - + class TabStave extends Stave { constructor(x : number, y : number, width : number, options? : {vertical_bar_width? : number, glyph_spacing_px? : number, num_lines? : number, fill_style? : string, spacing_between_lines_px? : number, space_above_staff_ln? : number, space_below_staff_ln? : number, top_text_position? : number}); getYForGlyphs() : number; addTabGlyph() : TabStave; } - + class TabTie extends StaveTie { constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}, text? : string); createHammeron(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabTie; createPulloff(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabTie; draw() : boolean; } - + class TextBracket { constructor(bracket_data : {start : Note, stop : Note, text? : string, superscript? : string, position? : TextBracket.Positions}); static DEBUG : boolean; @@ -1210,11 +1210,11 @@ declare namespace Vex { setLine(line : number) : TextBracket; draw() : void; } - + namespace TextBracket { const enum Positions {TOP, BOTTOM} } - + class TextDynamics extends Note { constructor(text_struct : {duration : string, text : string, line? : number}); static DEBUG : boolean; @@ -1230,12 +1230,12 @@ declare namespace Vex { preFormat() : void; draw() : void; } - + namespace TextNote { const enum Justification {LEFT, CENTER, RIGHT} const GLYPHS : {[name : string] : {code : string, point : number, x_shift : number, y_shift : number}} } - + interface Tickable { setContext(context : IRenderContext) : void; getBoundingBox() : BoundingBox; @@ -1261,7 +1261,7 @@ declare namespace Vex { applyTickMultiplier(numerator : number, denominator : number) : void; setDuration(duration : Fraction) : void; } - + class TickContext { setContext(context : IRenderContext) : void; getContext() : IRenderContext; @@ -1285,12 +1285,12 @@ declare namespace Vex { postFormat() : TickContext; static getNextContext(tContext : TickContext) : TickContext; } - + class TimeSignature extends StaveModifier { //TODO remove the following lines once TypeScript allows subclass overrides with type changes addModifier() : void; addEndModifier() : void; - + constructor(timeSpec : string, customPadding? : number); parseTimeSpec(timeSpec : string) : {num : number, glyph : Glyph}; makeTimeSignatureGlyph(topNums : number[], botNums : number[]) : Glyph; @@ -1298,11 +1298,11 @@ declare namespace Vex { addModifier(stave : Stave) : void; addEndModifier(stave : Stave) : void; } - + namespace TimeSignature { const glyphs : {[name : string] : {code : string, point : number, line : number}}; } - + class TimeSigNote extends Note { //TODO remove the following lines once TypeScript allows subclass overrides with type changes or type inconsistencies mentioned below are fixed setStave(stave : Stave) : Note; @@ -1314,26 +1314,26 @@ declare namespace Vex { preFormat() : TimeSigNote; draw() : void; } - + class Tremolo extends Modifier { constructor(num : number); getCategory() : string; draw() : void; } - + class Tuning { constructor(tuningString? : string); noteToInteger(noteString : string) : number; setTuning(tuningString : string) : void; getValueForString(stringNum : string) : number; getValueForFret(fretNum : string, stringNum : string) : number; - getNoteForFret(fretNum : string, stringNum : string) : string; + getNoteForFret(fretNum : string, stringNum : string) : string; } - + namespace Tuning { const names: { [name: string]: string }; } - + class Tuplet { constructor(notes : StaveNote[], options : {num_notes? : number, beats_occupied? : number}); attach() : void; @@ -1352,20 +1352,20 @@ declare namespace Vex { namespace Tuplet { const LOCATION_TOP : number; - const LOCATION_BOTTOM : number; + const LOCATION_BOTTOM : number; } - + class Vibrato extends Modifier { static format(vibratos : Vibrato[], state : {left_shift : number, right_shift : number, text_line : number}, context : ModifierContext) : boolean; setHarsh(harsh : boolean) : Vibrato; setVibratoWidth(width : number) : Vibrato; - draw() : void; + draw() : void; } - + namespace Vibrato { const CATEGORY : string; } - + class Voice { constructor(time : {num_beats? : number, beat_value? : number, resolution? : number}); getTotalTicks() : Fraction; @@ -1388,26 +1388,26 @@ declare namespace Vex { preFormat() : Voice; draw(context : IRenderContext, stave? : Stave) : void; } - + namespace Voice { const enum Mode {STRICT, SOFT, FULL} } - + class VoiceGroup { getVoices() : Voice[]; getModifierContexts() : ModifierContext[]; addVoice(voice : Voice) : void; } - + class Volta extends StaveModifier { constructor(type : Volta.type, number : number, x : number, y_shift : number); getCategory() : string; setShiftY(y : number) : Volta; draw(stave : Stave, x : number) : Volta; } - + namespace Volta { const enum type {NONE, BEGIN, MID, END, BEGIN_END} } } -} \ No newline at end of file +} diff --git a/videojs/videojs-tests.ts b/videojs/videojs-tests.ts index 00a70a661f..15cbc2f8b8 100644 --- a/videojs/videojs-tests.ts +++ b/videojs/videojs-tests.ts @@ -63,7 +63,7 @@ videojs("example_video_1").ready(function(){ myPlayer.cancelFullScreen(); - + var myFunc = function(){ var myPlayer: VideoJSPlayer = this; // Do something when the event is fired diff --git a/videojs/videojs.d.ts b/videojs/videojs.d.ts index e29f3b43dd..7723f8801b 100644 --- a/videojs/videojs.d.ts +++ b/videojs/videojs.d.ts @@ -34,10 +34,10 @@ interface VideoJSPlayer { currentTime(): number; duration(): number; buffered(): TimeRanges; - bufferedPercent(): number; + bufferedPercent(): number; volume(percentAsDecimal: number): TimeRanges; volume(): number; - width(): number; + width(): number; width(pixels: number): VideoJSPlayer; height(): number; height(pixels: number): VideoJSPlayer; diff --git a/voximplant-websdk/voximplant-websdk-tests.ts b/voximplant-websdk/voximplant-websdk-tests.ts index 5dcb6c62e7..ace457cd26 100644 --- a/voximplant-websdk/voximplant-websdk-tests.ts +++ b/voximplant-websdk/voximplant-websdk-tests.ts @@ -5,7 +5,7 @@ var vox: VoxImplant.Client = VoxImplant.getInstance(), room: string; vox.init({ - micRequired: true + micRequired: true }); vox.addEventListener(VoxImplant.Events.SDKReady, function(event: VoxImplant.Events.SDKReady) { diff --git a/voximplant-websdk/voximplant-websdk.d.ts b/voximplant-websdk/voximplant-websdk.d.ts index e3ba00655d..1df4e5e316 100644 --- a/voximplant-websdk/voximplant-websdk.d.ts +++ b/voximplant-websdk/voximplant-websdk.d.ts @@ -3,7 +3,7 @@ // Definitions by: Alexey Aylarov // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare namespace VoxImplant { +declare namespace VoxImplant { /** * VoxImplant.Client general events @@ -12,7 +12,7 @@ declare namespace VoxImplant { AuthResult, ConnectionClosed, ConnectionEstablished, - ConnectionFailed, + ConnectionFailed, IncomingCall, MicAccessResult, NetStatsReceived, @@ -44,14 +44,14 @@ declare namespace VoxImplant { ChatRoomPresenceUpdate, ChatRoomStateUpdate, ChatRoomSubjectChange, - ChatRoomsDataReceived, + ChatRoomsDataReceived, ChatStateUpdate, - MessageModified, - MessageNotModified, + MessageModified, + MessageNotModified, MessageReceived, - MessageRemoved, + MessageRemoved, MessageStatus, - PresenceUpdate, + PresenceUpdate, RosterItemChange, RosterPresenceUpdate, RosterReceived, @@ -123,7 +123,7 @@ declare namespace VoxImplant { * Failure reason description */ message: string; - } + } /** * Event dispatched when there is a new incoming call to current user @@ -196,7 +196,7 @@ declare namespace VoxImplant { */ headers?: Object; } - + /** * Event dispatched after call was disconnected */ @@ -320,7 +320,7 @@ declare namespace VoxImplant { } } - module IMEvents { + module IMEvents { /** * Event dispatched when chat history received @@ -389,7 +389,7 @@ declare namespace VoxImplant { /** * Event dispatched when chat room history received */ - interface ChatRoomHistoryReceived { + interface ChatRoomHistoryReceived { /** * Message id specified in getInstantMessagingHistory method */ @@ -407,7 +407,7 @@ declare namespace VoxImplant { /** * Event dispatched when user joins chat room */ - interface ChatRoomInfo { + interface ChatRoomInfo { /** * Room features */ @@ -429,7 +429,7 @@ declare namespace VoxImplant { /** * Event dispatched when invitation to chat room received */ - interface ChatRoomInvitation { + interface ChatRoomInvitation { /** * The body of the message */ @@ -455,7 +455,7 @@ declare namespace VoxImplant { /** * Event dispatched if an invitation to chat room was declined by the invitee */ - interface ChatRoomInviteDeclined { + interface ChatRoomInviteDeclined { /** * User id (invitee) */ @@ -473,7 +473,7 @@ declare namespace VoxImplant { /** * Event dispatched when chat room message modified */ - interface ChatRoomMessageModified { + interface ChatRoomMessageModified { /** * New message content */ @@ -507,7 +507,7 @@ declare namespace VoxImplant { /** * Event dispatched in case of error during chat room message modification */ - interface ChatRoomMessageNotModified { + interface ChatRoomMessageNotModified { /** * Error code */ @@ -529,7 +529,7 @@ declare namespace VoxImplant { /** * Event dispatched when instant message was sent to chat room */ - interface ChatRoomMessageReceived { + interface ChatRoomMessageReceived { /** * Message content */ @@ -563,7 +563,7 @@ declare namespace VoxImplant { /** * Event dispatched when chat room message removed */ - interface ChatRoomMessageRemoved { + interface ChatRoomMessageRemoved { /** * User id */ @@ -593,7 +593,7 @@ declare namespace VoxImplant { /** * Event dispatched when new participant joined the chat room */ - interface ChatRoomNewParticipant { + interface ChatRoomNewParticipant { /** * User display name */ @@ -609,7 +609,7 @@ declare namespace VoxImplant { } /** - * Event dispatched when chat room participant was banned/unbanned + * Event dispatched when chat room participant was banned/unbanned */ interface ChatRoomOperation { /** @@ -629,7 +629,7 @@ declare namespace VoxImplant { /** * Event dispatched when participant left the chat room */ - interface ChatRoomParticipantExit { + interface ChatRoomParticipantExit { /** * User id */ @@ -643,7 +643,7 @@ declare namespace VoxImplant { /** * Event dispatched when info about chat room participants received */ - interface ChatRoomParticipants { + interface ChatRoomParticipants { /** * Participants list */ @@ -657,7 +657,7 @@ declare namespace VoxImplant { /** * Event dispatched if chat room participant presence status was updated */ - interface ChatRoomPresenceUpdate { + interface ChatRoomPresenceUpdate { /** * Optional presence message */ @@ -679,7 +679,7 @@ declare namespace VoxImplant { /** * Event dispatched when chat session state updated */ - interface ChatRoomStateUpdate { + interface ChatRoomStateUpdate { /** * User id */ @@ -687,7 +687,7 @@ declare namespace VoxImplant { /** * Resource name */ - resource: string; + resource: string; /** * Room id */ @@ -701,7 +701,7 @@ declare namespace VoxImplant { /** * Event dispatched if chat room subject was changed */ - interface ChatRoomSubjectChange { + interface ChatRoomSubjectChange { /** * User id who changed the subject */ @@ -709,7 +709,7 @@ declare namespace VoxImplant { /** * Resource name */ - resource: string; + resource: string; /** * Room id */ @@ -723,7 +723,7 @@ declare namespace VoxImplant { /** * Event dispatched when information about chat rooms where user participates received */ - interface ChatRoomsDataReceived { + interface ChatRoomsDataReceived { /** * Rooms list */ @@ -899,7 +899,7 @@ declare namespace VoxImplant { /** * Roster item event type. See VoxImplant.RosterItemEvent enum */ - type: RosterItemEvent; + type: RosterItemEvent; } /** @@ -987,7 +987,7 @@ declare namespace VoxImplant { } type VoxImplantEvent = Events.AuthResult | Events.ConnectionClosed | Events.ConnectionEstablished | - Events.ConnectionFailed | Events.IncomingCall | Events.MicAccessResult | + Events.ConnectionFailed | Events.IncomingCall | Events.MicAccessResult | Events.NetStatsReceived | Events.PlaybackFinished | Events.SDKReady | Events.SourcesInfoUpdated; @@ -995,17 +995,17 @@ declare namespace VoxImplant { CallEvents.InfoReceived | CallEvents.MessageReceived | CallEvents.ProgressToneStart | CallEvents.ProgressToneStop | CallEvents.TransferComplete | CallEvents.TransferFailed; - type VoxImplantIMEvent = IMEvents.ChatHistoryReceived | IMEvents.ChatRoomBanList | - IMEvents.ChatRoomCreated | IMEvents.ChatRoomError | IMEvents.ChatRoomHistoryReceived | - IMEvents.ChatRoomInfo | IMEvents.ChatRoomInvitation | IMEvents.ChatRoomInviteDeclined | - IMEvents.ChatRoomMessageModified | IMEvents.ChatRoomMessageNotModified | IMEvents.ChatRoomMessageReceived | - IMEvents.ChatRoomMessageRemoved | IMEvents.ChatRoomNewParticipant | IMEvents.ChatRoomOperation | - IMEvents.ChatRoomParticipantExit | IMEvents.ChatRoomParticipants | IMEvents.ChatRoomPresenceUpdate | - IMEvents.ChatRoomStateUpdate | IMEvents.ChatRoomSubjectChange | IMEvents.ChatRoomsDataReceived | - IMEvents.ChatStateUpdate | IMEvents.MessageModified | IMEvents.MessageNotModified | - IMEvents.MessageReceived | IMEvents.MessageRemoved | IMEvents.MessageStatus | - IMEvents.PresenceUpdate | IMEvents.RosterItemChange | IMEvents.RosterPresenceUpdate | - IMEvents.RosterReceived | IMEvents.SubscriptionRequest | IMEvents.SystemError | + type VoxImplantIMEvent = IMEvents.ChatHistoryReceived | IMEvents.ChatRoomBanList | + IMEvents.ChatRoomCreated | IMEvents.ChatRoomError | IMEvents.ChatRoomHistoryReceived | + IMEvents.ChatRoomInfo | IMEvents.ChatRoomInvitation | IMEvents.ChatRoomInviteDeclined | + IMEvents.ChatRoomMessageModified | IMEvents.ChatRoomMessageNotModified | IMEvents.ChatRoomMessageReceived | + IMEvents.ChatRoomMessageRemoved | IMEvents.ChatRoomNewParticipant | IMEvents.ChatRoomOperation | + IMEvents.ChatRoomParticipantExit | IMEvents.ChatRoomParticipants | IMEvents.ChatRoomPresenceUpdate | + IMEvents.ChatRoomStateUpdate | IMEvents.ChatRoomSubjectChange | IMEvents.ChatRoomsDataReceived | + IMEvents.ChatStateUpdate | IMEvents.MessageModified | IMEvents.MessageNotModified | + IMEvents.MessageReceived | IMEvents.MessageRemoved | IMEvents.MessageStatus | + IMEvents.PresenceUpdate | IMEvents.RosterItemChange | IMEvents.RosterPresenceUpdate | + IMEvents.RosterReceived | IMEvents.SubscriptionRequest | IMEvents.SystemError | IMEvents.UCConnected | IMEvents.UCDisconnected; /** @@ -1115,23 +1115,23 @@ declare namespace VoxImplant { } enum ChatStateType { - /** - * User is actively participating in the chat session + /** + * User is actively participating in the chat session */ Active, - /** + /** * User is composing a message */ Composing, - /** + /** * User has effectively ended their participation in the chat session */ Gone, - /** + /** * User has not been actively participating in the chat session */ Inactive, - /** + /** * Invalid type */ Invalid, @@ -1488,7 +1488,7 @@ declare namespace VoxImplant { * @param direction False/true to get messages older/newer than the message with specified id * @param count Number of messages */ - getInstantMessagingHistory(user_id: string, message_id?: string, direction?: boolean, count?: number): void; + getInstantMessagingHistory(user_id: string, message_id?: string, direction?: boolean, count?: number): void; /** * Initialize SDK. SDKReady event will be dispatched after succesful SDK initialization. SDK can't be used until it's initialized * @@ -1524,25 +1524,25 @@ declare namespace VoxImplant { /** * Login into application * - * @param username + * @param username * @param password - * @param options Login options + * @param options Login options */ login(username: string, password: string, options?: LoginOptions): void; /** * Login into application using 'code' auth method * - * @param username + * @param username * @param code - * @param options Login options + * @param options Login options */ loginWithCode(username: string, code: string, options?: LoginOptions): void; /** * Login into application using 'onetimekey' auth method * - * @param username + * @param username * @param hash - * @param options Login options + * @param options Login options */ loginWithOneTimeKey(username: string, hash: string, options?: LoginOptions): void; /** @@ -1700,7 +1700,7 @@ declare namespace VoxImplant { setPresenceStatus(status: UserStatuses, msg: string): void; /** * Set background color of flash app (only for Flash mode) - * + * * @param color Color in web format (i.e. #000000 for black) */ setSwfColor(color: string): void; @@ -1720,7 +1720,7 @@ declare namespace VoxImplant { setVideoSettings(settings: VideoSettings | FlashVideoSettings, successCallback?: () => any, failedCallback?: () => any): void; /** * Show flash settings panel - * + * * @param panel Settings type - default/microphone/camera/etc as described in SecurityPanel class */ showFlashSettingsPanel(panel?: string): void; @@ -1782,18 +1782,18 @@ declare namespace VoxImplant { * @param eventName Event name * @param eventHandler Handler function. A single parameter is passed - object with the event information */ - addEventListener(eventName: VoxImplant.CallEvents, eventHandler: (eventObject: VoxImplantCallEvent) => any): void; + addEventListener(eventName: VoxImplant.CallEvents, eventHandler: (eventObject: VoxImplantCallEvent) => any): void; /** * Answer on incoming call * * @param customData Set custom string associated with call session. It can be later obtained from Call History using HTTP API - * @param extraHeaders Optional custom parameters (SIP headers) that should be sent after accepting incoming call. Parameter names must start with "X-" to be processed by application + * @param extraHeaders Optional custom parameters (SIP headers) that should be sent after accepting incoming call. Parameter names must start with "X-" to be processed by application */ answer(customData?: string, extraHeaders?: Object): void; /** * Reject incoming call * - * @param extraHeaders Optional custom parameters (SIP headers) that should be sent after accepting incoming call. Parameter names must start with "X-" to be processed by application + * @param extraHeaders Optional custom parameters (SIP headers) that should be sent after accepting incoming call. Parameter names must start with "X-" to be processed by application */ decline(extraHeaders?: Object): void; /** @@ -1944,7 +1944,7 @@ declare namespace VoxImplant { /** * Optional constraints object */ - optional?: Object; + optional?: Object; } /** @@ -2029,7 +2029,7 @@ declare namespace VoxImplant { * VoxImplant Web SDK lib version */ function version(): String; - + } declare module "voximplant-websdk" { diff --git a/vso-node-api/vso-node-api-tests.ts b/vso-node-api/vso-node-api-tests.ts index d362487cc4..b2c1880479 100644 --- a/vso-node-api/vso-node-api-tests.ts +++ b/vso-node-api/vso-node-api-tests.ts @@ -22,7 +22,7 @@ test_apis(); function test_apis() { var webapi: webapim.WebApi = new webapim.WebApi('http://serverfoobar.com', webapim.getBasicHandler('fooser', 'barssword')); - + var buildapi: buildm.IBuildApi = webapi.getBuildApi(); var qbuildapi: buildm.IQBuildApi = webapi.getQBuildApi(); var coreapi: corem.ICoreApi = webapi.getCoreApi(); @@ -43,14 +43,14 @@ function test_apis() { var qtfvcapi: tfvcm.IQTfvcApi = webapi.getQTfvcApi(); var witapi: workitemtrackingm.IWorkItemTrackingApi = webapi.getWorkItemTrackingApi(); var qwitapi: workitemtrackingm.IQWorkItemTrackingApi = webapi.getQWorkItemTrackingApi(); - + var apis: basem.ClientApiBase[] = [buildapi, coreapi, filecontainerapi, galleryapi, gitapi, taskapi, agentapi, testapi, tfvcapi, witapi]; var qapis: basem.QClientApiBase[] = [qbuildapi, qcoreapi, qfilecontainerapi, qgalleryapi, qgitapi, qtaskapi, qagentapi, qtestapi, qtfvcapi, qwitapi]; - + for(var api in apis) { console.log('API user agent name: ' + api.userAgent); } for(var qapi in qapis) { console.log('Q API user agent name: ' + qapi.api.userAgent); } -} \ No newline at end of file +} diff --git a/vue/vue-tests.ts b/vue/vue-tests.ts index 03c3e684f1..d16bc0104f 100644 --- a/vue/vue-tests.ts +++ b/vue/vue-tests.ts @@ -126,7 +126,7 @@ namespace TestInstanceProperty { namespace TestInscanceMethods { "use strict"; - + var vm = new Vue({el: '#app'}); vm.$watch('a.b.c', function(newVal: string, oldVal: number) {}); vm.$watch(function() {return this.a + this.b}, function(newVal: string, oldVal: string) {}); @@ -141,7 +141,7 @@ namespace TestInscanceMethods { s = vm.$interpolate('{{msg}} world!'); vm.$log(); vm.$log('item'); - + vm .$on('test', (msg: any) => {}) .$once('testOnce', (msg: any) => {}) @@ -149,13 +149,13 @@ namespace TestInscanceMethods { .$emit("event", 1, 2) .$dispatch("event", 1, 2, 3) .$broadcast("event", 1, 2, 3, 4) - + .$appendTo(document.createElement("div"), () => {}) .$before('#app', () => {}) .$after(document.getElementById('app')) .$remove(() => {}) .$nextTick(() => {}); - + vm .$mount('#app') .$destroy(false); @@ -163,7 +163,7 @@ namespace TestInscanceMethods { namespace TestVueUtil { "use strict"; - + var _ = Vue.util; var target = document.createElement('div'); var child = document.createElement('div'); diff --git a/vue/vue.d.ts b/vue/vue.d.ts index 650c8d98c4..2696e3247e 100644 --- a/vue/vue.d.ts +++ b/vue/vue.d.ts @@ -17,18 +17,18 @@ declare namespace vuejs { twoWay?: boolean; validator?(value: any): boolean; } - + interface ComputedOption { get(): any; set(value: any): void; } - + interface WatchOption { handler(val: any, oldVal: any): void; deep?: boolean; immidiate?: boolean; } - + interface DirectiveOption { bind?(): any; update?(newVal?: any, oldVal?: any): any; @@ -40,12 +40,12 @@ declare namespace vuejs { priority?: number; [key: string]: any; } - + interface FilterOption { read: Function; write: Function; } - + interface TransitionOption { css?: boolean; beforeEnter?(el: HTMLElement): void; @@ -58,7 +58,7 @@ declare namespace vuejs { leaveCancelled?(el: HTMLElement): void; stagger?(index: number): number; } - + interface ComponentOption { data?: {[key: string]: any } | Function; props?: string[] | { [key: string]: PropOption }; @@ -89,7 +89,7 @@ declare namespace vuejs { name?: string; [key: string]: any; } - + // instance/api/data.js interface $get { ( exp: string, asStatement?: boolean ): any; } interface $set { ( key: string | number, value: T ): T; } @@ -116,7 +116,7 @@ declare namespace vuejs { interface $mount { ( elementOrSelector?: ( HTMLElement | string ) ): V; } interface $destroy { (remove?: boolean): void; } interface $compile { (el: Element | DocumentFragment, host?: Vue): Function; } - + interface Vue { $data?: any; $el?: HTMLElement; @@ -126,7 +126,7 @@ declare namespace vuejs { $children?: Vue[]; $refs?: Object; $els?: Object; - + $get?: $get; $set?: $set; $delete?: $delete; @@ -148,10 +148,10 @@ declare namespace vuejs { $mount?: $mount; $destroy?: $destroy; $compile?: $compile; - + _init(options?: ComponentOption): void; } - + interface VueConfig { debug: boolean; delimiters: [string, string]; @@ -160,7 +160,7 @@ declare namespace vuejs { async: boolean; convertAllProperties: boolean; } - + interface VueUtil { // util/lang.js set(obj: Object, key: string, value: any): void; @@ -231,7 +231,7 @@ declare namespace vuejs { // observer/index.js defineReactive(obj: Object, key: string, val: any): void; } - + // instance/api/global.js interface VueStatic { new(options?: ComponentOption): Vue; @@ -241,13 +241,13 @@ declare namespace vuejs { set(object: Object, key: string, value: any): void; delete(object: Object, key: string): void; nextTick(callback: Function): any; - + cid: number; - + extend(options?: ComponentOption): VueStatic; use(callback: Function | {install: Function, [key: string]: any}, option?: Object): VueStatic; mixin(mixin: Object): void; - + directive(id: string, definition: T): T; directive(id: string): any; elementDirective(id: string, definition: T): T; diff --git a/wake_on_lan/wake_on_lan.d.ts b/wake_on_lan/wake_on_lan.d.ts index 97e4a7177b..52a274607e 100644 --- a/wake_on_lan/wake_on_lan.d.ts +++ b/wake_on_lan/wake_on_lan.d.ts @@ -8,30 +8,30 @@ declare module wol { export interface WakeOptions { - + /** * The ip address to which the packet is send (default: 255.255.255.255) */ address?:string; - + /** * Number of packets to send (default: 3) */ num_packets?:number; - + /** * The interval between packets (default: 100ms) */ interval?:number; - + /** * The port to send to (default: 9) */ port?:number; } - + type ErrorCallback = (Error:any) => void; - + export interface Wol { /** * Send a sequence of Wake-on-LAN magic packets to the given MAC address. @@ -39,7 +39,7 @@ declare module wol { * @param {string} macAddress the mac address of the target device */ wake(macAddress:string):void; - + /** * Send a sequence of Wake-on-LAN magic packets to the given MAC address. * @@ -47,7 +47,7 @@ declare module wol { * @param {ErrorCallback} callback is called when all packets have been sent or an error occurs. */ wake(macAddress:string, callback:ErrorCallback):void; - + /** * Send a sequence of Wake-on-LAN magic packets to the given MAC address. * @@ -56,10 +56,10 @@ declare module wol { * @param {ErrorCallback} callback is called when all packets have been sent or an error occurs. */ wake(macAddress:string, opts:WakeOptions, callback?:Function):void; - + /** * Creates a buffer with a magic packet for the given MAC address. - * + * * @param {string} macAddress mac address of the target device * @return {Buffer} the magic packet */ diff --git a/webaudioapi/waa.d.ts b/webaudioapi/waa.d.ts index 80823700a7..fdda43005f 100644 --- a/webaudioapi/waa.d.ts +++ b/webaudioapi/waa.d.ts @@ -185,12 +185,12 @@ interface AudioContext { } interface MediaStreamAudioSourceNode extends AudioNode { - + } interface AudioBuffer { copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void; - + copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void; } diff --git a/webfontloader/webfontloader.d.ts b/webfontloader/webfontloader.d.ts index bea108ec17..9e10d54b52 100644 --- a/webfontloader/webfontloader.d.ts +++ b/webfontloader/webfontloader.d.ts @@ -24,10 +24,10 @@ declare module WebFont { fontactive?(familyName:string, fvd:string):void; /** This event is triggered if the font can't be loaded. */ fontinactive?(familyName:string, fvd:string):void; - + /** Child window or iframes to manage fonts for */ context?:Array; - + custom?:Custom; google?:Google; typekit?:Typekit; @@ -35,7 +35,7 @@ declare module WebFont { monotype?:Monotype; } export interface Google { - families:Array; + families:Array; text?: string; } export interface Typekit { @@ -53,7 +53,7 @@ declare module WebFont { projectId?:string; version?:number; } - + } declare module "webfontloader" { export = WebFont; diff --git a/websql/websql-tests.ts b/websql/websql-tests.ts index 131883c243..5cf0300548 100644 --- a/websql/websql-tests.ts +++ b/websql/websql-tests.ts @@ -207,7 +207,7 @@ interface Results { var prop = props[i]; args.push(record[prop]); } - + execSqlStatements(dbState.transaction, [sqlStatement], callback); } diff --git a/winjs/winjs-2.1.d.ts b/winjs/winjs-2.1.d.ts index 5c8f53641a..cfa75f3630 100644 --- a/winjs/winjs-2.1.d.ts +++ b/winjs/winjs-2.1.d.ts @@ -4,16 +4,16 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /* ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - +License at http://www.apache.org/licenses/LICENSE-2.0 + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ @@ -394,7 +394,7 @@ declare module WinJS.Binding { /** * Creates a List object. - * @constructor + * @constructor * @param list The array containing the elements to initalize the list. * @param options You can set two Boolean options: binding and proxy. If options.binding is true, the list contains the result of calling as on the element values. If options.proxy is true, the list specified as the first parameter is used as the storage for the List. This option should be used with care, because uncoordinated edits to the data storage may result in errors. **/ @@ -954,7 +954,7 @@ declare module WinJS.Binding { /** * Creates a template that provides a reusable declarative binding element. - * @constructor + * @constructor * @param element The DOM element to convert to a template. * @param options If this parameter is supplied, the template is loaded from the URI and the content of the element parameter is ignored. You can add the following options: href. **/ @@ -1217,7 +1217,7 @@ declare module WinJS { /** * Creates an Error object with the specified name and message properties. - * @constructor + * @constructor * @param name The name of this error. The name is meant to be consumed programmatically and should not be localized. * @param message The message for this error. The message is meant to be consumed by humans and should be localized. **/ @@ -1249,7 +1249,7 @@ declare module WinJS { /** * A promise provides a mechanism to schedule work to be done on a value that has not yet been computed. It is a convenient abstraction for managing interactions with asynchronous APIs. For more information about asynchronous programming, see Asynchronous programming. For more information about promises in JavaScript, see Asynchronous programming in JavaScript. For more information about using promises, see the WinJS Promise sample. - * @constructor + * @constructor * @param init The function that is called during construction of the Promise that contains the implementation of the operation that the Promise will represent. This can be synchronous or asynchronous, depending on the nature of the operation. Note that placing code within this function does not automatically run it asynchronously; that must be done explicitly with other asynchronous APIs such as setImmediate, setTimeout, requestAnimationFrame, and the Windows Runtime asynchronous APIs. The init function is given three arguments: completeDispatch, errorDispatch, progressDispatch. This parameter is optional. * @param onCancel The function to call if a consumer of this promise wants to cancel its undone work. Promises are not required to support cancellation. **/ @@ -3634,7 +3634,7 @@ declare module WinJS.UI { /** * Creates a new AppBar object. - * @constructor + * @constructor * @param element The DOM element that will host the control. * @param options The set of properties and values to apply to the new AppBar. **/ @@ -3744,7 +3744,7 @@ declare module WinJS.UI { //#region Properties /** - * Gets or sets how the app bar is displayed when hidden is true. + * Gets or sets how the app bar is displayed when hidden is true. **/ closedDisplayMode: string; @@ -3795,7 +3795,7 @@ declare module WinJS.UI { /** * Creates a new AppBarCommand object. - * @constructor + * @constructor * @param element The DOM element that will host the control. * @param options The set of properties and values to apply to the new AppBarCommand. **/ @@ -3953,7 +3953,7 @@ declare module WinJS.UI { /** * Creates a new FlipView. - * @constructor + * @constructor * @param element The DOM element that hosts the control. * @param options An object that contains one or more property/value pairs to apply to the new control. Each property corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the pageselected event, add a property named "onpageselected" and set its value to the event handler. **/ @@ -4095,7 +4095,7 @@ declare module WinJS.UI { /** * Creates a new GridLayout object. - * @constructor + * @constructor * @param options The set of properties and values to apply to the new GridLayout. **/ constructor(options?: any); @@ -4106,15 +4106,15 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param beginScrollPosition - * @param wholeItem + * @param beginScrollPosition + * @param wholeItem **/ calculateFirstVisible(beginScrollPosition: number, wholeItem: boolean): void; /** * This method is no longer supported. - * @param endScrollPosition - * @param wholeItem + * @param endScrollPosition + * @param wholeItem **/ calculateLastVisible(endScrollPosition: number, wholeItem: boolean): void; @@ -4148,22 +4148,22 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param itemIndex + * @param itemIndex **/ getItemPosition(itemIndex: number): void; /** * This method is no longer supported. - * @param itemIndex - * @param element - * @param keyPressed + * @param itemIndex + * @param element + * @param keyPressed **/ getKeyboardNavigatedItem(itemIndex: number, element: any, keyPressed: any): void; /** * This method is no longer supported. - * @param beginScrollPosition - * @param endScrollPosition + * @param beginScrollPosition + * @param endScrollPosition **/ getScrollbarRange(beginScrollPosition: number, endScrollPosition: number): void; @@ -4188,7 +4188,7 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param elements + * @param elements **/ itemsAdded(elements: any): void; @@ -4206,50 +4206,50 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param elements + * @param elements **/ itemsRemoved(elements: any): void; /** * This API supports the WinJS infrastructure and is not intended to be used directly from your code. - * @param tree - * @param changedRange - * @param modifiedItems - * @param modifiedGroups + * @param tree + * @param changedRange + * @param modifiedItems + * @param modifiedGroups **/ layout(tree: any, changedRange: any, modifiedItems: any, modifiedGroups: any): void; /** * This method is no longer supported. - * @param groupIndex + * @param groupIndex * @param element A DOM element. **/ layoutHeader(groupIndex: number, element: any): void; /** * This method is no longer supported. - * @param itemIndex + * @param itemIndex * @param element A DOM element. **/ layoutItem(itemIndex: number, element: any): void; /** * This method is no longer supported. - * @param element + * @param element **/ prepareHeader(element: HTMLElement): void; /** * This method is no longer supported. - * @param itemIndex + * @param itemIndex * @param element A DOM element. **/ prepareItem(itemIndex: number, element: any): void; /** * This method is no longer supported. - * @param item - * @param newItem + * @param item + * @param newItem **/ releaseItem(item: any, newItem: any): void; @@ -4260,7 +4260,7 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param layoutSite + * @param layoutSite **/ setSite(layoutSite: any): void; @@ -4271,8 +4271,8 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param beginScrollPosition - * @param endScrollPositionScrollPosition + * @param beginScrollPosition + * @param endScrollPositionScrollPosition **/ startLayout(beginScrollPosition: number, endScrollPositionScrollPosition: number): void; @@ -4283,7 +4283,7 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param count + * @param count **/ updateBackdrop(count: number): void; @@ -4371,7 +4371,7 @@ declare module WinJS.UI { /** * Creates a new ItemContainer. - * @constructor + * @constructor * @param element The DOM element hosts the new ItemContainer. For the ItemContainer to be accessible, this element must have its role attribute set to "list" or "listbox". If tapBehavior is set to none and selectionDisabled is true, then use the "list" role; otherwise, use the "listbox" role. * @param options An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events. **/ @@ -4489,7 +4489,7 @@ declare module WinJS.UI { /** * Creates a new ListLayout. - * @constructor + * @constructor * @param options An object that contains one or more property/value pairs to apply to the new ListLayout. Each property of the options object corresponds to one of the object's properties or events. Event names must begin with "on". **/ constructor(options?: any); @@ -4500,15 +4500,15 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param beginScrollPosition - * @param wholeItem + * @param beginScrollPosition + * @param wholeItem **/ calculateFirstVisible(beginScrollPosition: number, wholeItem: boolean): void; /** * This method is no longer supported. - * @param endScrollPosition - * @param wholeItem + * @param endScrollPosition + * @param wholeItem **/ calculateLastVisible(endScrollPosition: number, wholeItem: boolean): void; @@ -4542,22 +4542,22 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param itemIndex + * @param itemIndex **/ getItemPosition(itemIndex: number): void; /** * This method is no longer supported. - * @param itemIndex - * @param element - * @param keyPressed + * @param itemIndex + * @param element + * @param keyPressed **/ getKeyboardNavigatedItem(itemIndex: number, element: HTMLElement, keyPressed: any): void; /** * This method is no longer supported. - * @param beginScrollPosition - * @param endScrollPosition + * @param beginScrollPosition + * @param endScrollPosition **/ getScrollbarRange(beginScrollPosition: number, endScrollPosition: number): void; @@ -4580,14 +4580,14 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param elements + * @param elements **/ itemsAdded(elements: any): void; /** * This API supports the WinJS infrastructure and is not intended to be used directly from your code. - * @param firstPixel - * @param lastPixel + * @param firstPixel + * @param lastPixel **/ itemsFromRange(firstPixel: number, lastPixel: number): void; @@ -4598,50 +4598,50 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param elements + * @param elements **/ itemsRemoved(elements: any): void; /** * This API supports the WinJS infrastructure and is not intended to be used directly from your code. - * @param tree - * @param changedRange - * @param modifiedItems - * @param modifiedGroups + * @param tree + * @param changedRange + * @param modifiedItems + * @param modifiedGroups **/ layout(tree: any, changedRange: any, modifiedItems: any, modifiedGroups: any): void; /** * This method is no longer supported. - * @param groupIndex + * @param groupIndex * @param element A DOM element. **/ layoutHeader(groupIndex: number, element: any): void; /** * This method is no longer supported. - * @param itemIndex + * @param itemIndex * @param element A DOM element. **/ layoutItem(itemIndex: number, element: any): void; /** * This method is no longer supported. - * @param element + * @param element **/ prepareHeader(element: HTMLElement): void; /** * This method is no longer supported. - * @param itemIndex + * @param itemIndex * @param element A DOM element. **/ prepareItem(itemIndex: number, element: any): void; /** * This method is no longer supported. - * @param item - * @param newItem + * @param item + * @param newItem **/ releaseItem(item: any, newItem: any): void; @@ -4652,7 +4652,7 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param layoutSite + * @param layoutSite **/ setSite(layoutSite: any): void; @@ -4663,8 +4663,8 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param beginScrollPosition - * @param endScrollPositionScrollPosition + * @param beginScrollPosition + * @param endScrollPositionScrollPosition **/ startLayout(beginScrollPosition: number, endScrollPositionScrollPosition: number): void; @@ -4675,7 +4675,7 @@ declare module WinJS.UI { /** * This method is no longer supported. - * @param count + * @param count **/ updateBackdrop(count: number): void; @@ -4735,7 +4735,7 @@ declare module WinJS.UI { /** * Creates a new ListView. - * @constructor + * @constructor * @param element The DOM element that hosts the ListView control. * @param options An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the selectionchanged event, add a property named "onselectionchanged" to the options object and set its value to the event handler. **/ @@ -4996,7 +4996,7 @@ declare module WinJS.UI { /** * Creates a new Pivot. - * @constructor + * @constructor * @param element The DOM element hosts the new Pivot. * @param options An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the cancel event, add a property named "oncancel" to the options object and set its value to the event handler. **/ @@ -5102,7 +5102,7 @@ declare module WinJS.UI { /** * Creates a new PivotItem. - * @constructor + * @constructor * @param element The DOM element hosts the new PivotItem. * @param options An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the cancel event, add a property named "oncancel" to the options object and set its value to the event handler. **/ @@ -5147,7 +5147,7 @@ declare module WinJS.UI { /** * Creates a new Repeater control. - * @constructor + * @constructor * @param elemnt The DOM element that will host the new control. The Repeater will create an element if this value is null. * @param options An object that contains one or more property/value pairs to apply to the new Repeater. Each property of the options object corresponds to one of the object's properties or events. Event names must begin with "on". **/ @@ -5299,7 +5299,7 @@ declare module WinJS.UI { /** * Creates a new SemanticZoom. - * @constructor + * @constructor * @param element The DOM element that hosts the SemanticZoom. * @param options An object that contains one or more property/value pairs to apply to the new control. This object can contain these properties: initiallyZoomedOut Boolean, zoomFactor 0.2–0.85. **/ @@ -5424,7 +5424,7 @@ declare module WinJS.UI { /** * Creates a new TabContainer. - * @constructor + * @constructor * @param element The DOM element that hosts the TabContainer control. * @param options An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties. **/ @@ -5465,7 +5465,7 @@ declare module WinJS.UI { /** * Creates a new ToggleSwitch. - * @constructor + * @constructor * @param element The DOM that hosts the control. * @param options An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the change event, add a property named "onchange" to the options object and set its value to the event handler. **/ @@ -5638,7 +5638,7 @@ declare module WinJS.UI { /** * Initializes the VirtualizedDataSource base class of a custom data source. - * @constructor + * @constructor * @param listDataAdapter The object that supplies data to the VirtualizedDataSource. * @param options An object that can contain properties that specify additional options for the VirtualizedDataSource. It supports these properties: cacheSize. **/ @@ -6830,7 +6830,7 @@ declare module WinJS.Utilities { /** * Indicates whether the app is running on Windows Phone. - **/ + **/ var isPhone: boolean; //#endregion Properties diff --git a/winrt/winrt-uwp.d.ts b/winrt/winrt-uwp.d.ts index e7216e732a..4de542180c 100644 --- a/winrt/winrt-uwp.d.ts +++ b/winrt/winrt-uwp.d.ts @@ -34,7 +34,7 @@ declare namespace Windows.Foundation { type IPromiseWithIAsyncActionWithProgress = IPromiseWithOperation>; type IPromiseWithIAsyncOperation = IPromiseWithOperation>; type IPromiseWithIAsyncOperationWithProgress = IPromiseWithOperation>; - + namespace Collections { interface IVector extends Array { indexOf(value: T, ...extra: any[]): { index: number; returnValue: boolean; } /* hack */ @@ -1015,7 +1015,7 @@ declare namespace Windows { */ getAppointmentAsync(localId: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** - * + * * @param localId The LocalId of the appointment to be retrieved. * @param prefetchProperties A list of names of the properties for which data should be included when the appointment is retrieved. * @return An asynchronous operation that returns Appointment on successful completion. @@ -2794,19 +2794,19 @@ declare namespace Windows { /** * Deletes entries in the store. * @param callHistoryEntries The entries to delete. - * @return + * @return */ deleteEntriesAsync(callHistoryEntries: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** * Delete an entry from the store. * @param callHistoryEntry The entry to delete. - * @return + * @return */ deleteEntryAsync(callHistoryEntry: Windows.ApplicationModel.Calls.PhoneCallHistoryEntry): any; /* unmapped return type */ /** * Gets an entry from the store based on the entry id. * @param callHistoryEntryId The PhoneCallHistoryEntryt.Id of the relevant entry. - * @return + * @return */ getEntryAsync(callHistoryEntryId: string): any; /* unmapped return type */ /** @@ -2833,31 +2833,31 @@ declare namespace Windows { getUnseenCountAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Update all the entries to indicate they have all been seen by the user. - * @return + * @return */ markAllAsSeenAsync(): any; /* unmapped return type */ /** * Updates entries to indicate they have been seen by the user. * @param callHistoryEntries The entries to mark as seen. This updates the PhoneCallHistoryEntry.IsSeen property. - * @return + * @return */ markEntriesAsSeenAsync(callHistoryEntries: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** * Updates an entry to indicate it has been seen. * @param callHistoryEntry The entry to update. - * @return + * @return */ markEntryAsSeenAsync(callHistoryEntry: Windows.ApplicationModel.Calls.PhoneCallHistoryEntry): any; /* unmapped return type */ /** * Marks all entries from the specified sources as seen. * @param sourceIds The list of source identifiers to mark as seen. Only entries that match PhoneCallHistoryEntry.SourceId will be updated. - * @return + * @return */ markSourcesAsSeenAsync(sourceIds: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** * Saves an entry to the store. * @param callHistoryEntry The entry to save. - * @return + * @return */ saveEntryAsync(callHistoryEntry: Windows.ApplicationModel.Calls.PhoneCallHistoryEntry): any; /* unmapped return type */ } @@ -5373,7 +5373,7 @@ declare namespace Windows { size: number; /** * Divides the object into two views - * @return + * @return */ split(): { /** The first half of the object. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the object. */ second: Windows.Foundation.Collections.IMapView; }; /** Gets the source app's logo. */ @@ -7341,13 +7341,13 @@ declare namespace Windows { /** * Returns the ResourceCandidate objects that start at the specified index in the set. * @param startIndex The zero-based index of the start of the ResourceCandidate objects in the set to return. - * @return + * @return */ getMany(startIndex: number): { /** The ResourceCandidate objects in the set that start at startIndex. */ items: Windows.ApplicationModel.Resources.Core.ResourceCandidate; /** The number of ResourceCandidate objects returned. */ returnValue: number; }; /** * Returns the index of a specified ResourceCandidate in the set. * @param value The ResourceCandidate to find in the set. - * @return + * @return */ indexOf(value: Windows.ApplicationModel.Resources.Core.ResourceCandidate): { /** The zero-based index of the ResourceCandidate , if the item is found. The method returns zero if the item is not found. */ index: number; /** A Boolean that is TRUE if the ResourceCandidate is found, otherwise FALSE if the item is not found. */ returnValue: boolean; }; /** Gets the number of ResourceCandidate objects in the set. */ @@ -7433,13 +7433,13 @@ declare namespace Windows { /** * Returns the ResourceContext language qualifiers that start at the specified index in the set. * @param startIndex The zero-based index of the start of the ResourceContext language qualifiers in the set to return. - * @return + * @return */ getMany(startIndex: number): { /** The ResourceContext language qualifiers in the set that start at startIndex. */ items: string[]; /** The number of ResourceContext language qualifiers returned. */ returnValue: number; }; /** * Returns the index of a specified ResourceContext language qualifier in the set. * @param value The ResourceContext language qualifier to find in the set. - * @return + * @return */ indexOf(value: string): { /** The zero-based index of the ResourceContext language qualifier, if the item is found. The method returns zero if the item is not found. */ index: number; /** A Boolean that is TRUE if the ResourceContext language qualifier is found; otherwise, FALSE. */ returnValue: boolean; }; /** Gets the number of ResourceContext language qualifiers in the set. */ @@ -7530,7 +7530,7 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return + * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; /** Gets a URI that can be used to refer to this ResourceMap . */ @@ -7542,7 +7542,7 @@ declare namespace Windows { current: Windows.Foundation.Collections.IKeyValuePair; /** * Returns all the items in the ResourceMap . - * @return + * @return */ getMany(): { /** The items in the map. */ items: Windows.Foundation.Collections.IKeyValuePair; /** The number of items in the map. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item, or whether the iterator is at the end of the ResourceMap . */ @@ -7576,7 +7576,7 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return + * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; } @@ -7586,7 +7586,7 @@ declare namespace Windows { current: Windows.Foundation.Collections.IKeyValuePair; /** * Returns all the items in the ResourceMapMapView . - * @return + * @return */ getMany(): { /** The items in the map view. */ items: Windows.Foundation.Collections.IKeyValuePair; /** The number of items in the map view. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item, or whether the iterator is at the end of the ResourceMapMapView . */ @@ -7633,7 +7633,7 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return + * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; } @@ -7707,13 +7707,13 @@ declare namespace Windows { /** * Returns the ResourceQualifier objects that start at the specified index in the view. * @param startIndex The zero-based index of the start of the objects in the view to return. - * @return + * @return */ getMany(startIndex: number): { /** The objects in the view that start at startIndex. */ items: Windows.ApplicationModel.Resources.Core.ResourceQualifier; /** The number of objects returned. */ returnValue: number; }; /** * Returns the index of a specified ResourceQualifier in the view. * @param value The ResourceQualifier to find in the set. - * @return + * @return */ indexOf(value: Windows.ApplicationModel.Resources.Core.ResourceQualifier): { /** The zero-based index of the object, if found. The method returns zero if the object is not found. */ index: number; /** A Boolean that is TRUE if the object is found, otherwise FALSE if the object is not found. */ returnValue: boolean; }; /** Gets the number of ResourceQualifier objects in the view. */ @@ -9963,7 +9963,7 @@ declare namespace Windows { /** * Returns the high and low surrogate pair values for the specified supplementary Unicode character. * @param codepoint A Unicode character. This must be in the proper range: 0 <= codepoint <= 0x10FFFF. - * @return + * @return */ static getSurrogatePairFromCodepoint(codepoint: number): { /** The high surrogate value returned. */ highSurrogate: string; /** The low surrogate value returned. */ lowSurrogate: string; }; /** @@ -11592,7 +11592,7 @@ declare namespace Windows { /** * Returns the items that start at the specified index of the vector view. * @param startIndex The zero-based index of the start of the items in the vector to return. - * @return + * @return */ getMany(startIndex: number): { /** The items in the vector view that start at startIndex. */ items: Windows.Data.Xml.Dom.IXmlNode; /** The number of items returned. */ returnValue: number; }; /** @@ -11611,7 +11611,7 @@ declare namespace Windows { /** * Returns the index of a specified item in the vector view. * @param value The item to find in the vector view. - * @return + * @return */ indexOf(value: Windows.Data.Xml.Dom.IXmlNode): { /** The zero-based index of the item if found. Zero is returned if the item is not found. */ index: number; /** TRUE if the item is found; otherwise, FALSE if it is not found. */ returnValue: boolean; }; /** @@ -11668,13 +11668,13 @@ declare namespace Windows { /** * Returns the items that start at the specified index of the vector view. * @param startIndex The zero-based index of the start of the items in the vector to return. - * @return + * @return */ getMany(startIndex: number): { /** The items in the vector view that start at startIndex. */ items: Windows.Data.Xml.Dom.IXmlNode; /** The number of items returned. */ returnValue: number; }; /** * Returns the index of a specified item in the vector. * @param value The item to find in the vector. - * @return + * @return */ indexOf(value: Windows.Data.Xml.Dom.IXmlNode): { /** The zero-based index of the item if found. Zero is returned if the item is not found. */ index: number; /** TRUE if the item is found; otherwise, FALSE if the item is not found. */ returnValue: boolean; }; /** @@ -13155,7 +13155,7 @@ declare namespace Windows { /** Provides functionality to determine the Bluetooth Low Energy (LE) Appearance information for a device. */ abstract class BluetoothLEAppearance { /** - * + * * @param appearanceCategory The Bluetooth LE appearance category. See BluetoothLEAppearanceSubcategories . * @param appearanceSubCategory The Bluetooth LE appearance subcategory. See BluetoothLEAppearanceSubcategories . * @return The Bluetooth LE appearance object that was created from the appearance category and subcategory. @@ -14586,13 +14586,13 @@ declare namespace Windows { /** * Gets a range of DeviceInformation objects. * @param startIndex The index at which to start retrieving DeviceInformation objects. - * @return + * @return */ getMany(startIndex: number): { /** The array of DeviceInformation objects starting at the index specified by startIndex. */ items: Windows.Devices.Enumeration.DeviceInformation; /** The number of DeviceInformation objects returned. */ returnValue: number; }; /** * Returns the index of the specified DeviceInformation object in the collection. * @param value The DeviceInformation object in the collection. - * @return + * @return */ indexOf(value: Windows.Devices.Enumeration.DeviceInformation): { /** The index. */ index: number; /** true if the method succeeded; otherwise, false. */ returnValue: boolean; }; /** The number of DeviceInformation objects in the collection. */ @@ -15136,13 +15136,13 @@ declare namespace Windows { /** * Retrieves multiple elements in a single pass through the iterator. * @param startIndex The index from which to start retrieval. - * @return + * @return */ getMany(startIndex: number): { /** Provides the destination for the result. Size the initial array size as a "capacity" in order to specify how many results should be retrieved. */ items: Windows.Devices.Enumeration.Pnp.PnpObject; /** The number of items retrieved. */ returnValue: number; }; /** * Retrieves the index of the specified item. * @param value The value to find in the collection. - * @return + * @return */ indexOf(value: Windows.Devices.Enumeration.Pnp.PnpObject): { /** The index of the item to find, if found. */ index: number; /** True if an item with the specified value was found; otherwise, False. */ returnValue: boolean; }; /** Returns the number of items in the collection. */ @@ -15759,7 +15759,7 @@ declare namespace Windows { * Opens the specified general-purpose I/O (GPIO) pin in the specified mode, and gets a status value that you can use to handle a failure to open the pin programmatically. * @param pinNumber The pin number of the GPIO pin that you want to open. Some pins may not be available in user mode. For information about how the pin numbers correspond to physical pins, see the documentation for your circuit board. * @param sharingMode The mode in which you want to open the GPIO pin, which determines whether other connections to the pin can be opened while you have the pin open. - * @return + * @return */ tryOpenPin(pinNumber: number, sharingMode: Windows.Devices.Gpio.GpioSharingMode): { /** The opened GPIO pin if the return value is true; otherwise null. */ pin: Windows.Devices.Gpio.GpioPin; /** An enumeration value that indicates either that the attempt to open the GPIO pin succeeded, or the reason that the attempt to open the GPIO pin failed. */ openStatus: Windows.Devices.Gpio.GpioOpenStatus; /** True if the method successfully opened the pin; otherwise false. */ returnValue: boolean; }; } @@ -17214,7 +17214,7 @@ declare namespace Windows { /** * This method returns the transform from the color frame source to the target entity and sets hasResult to true, if a correlation exists. If a correlation does not exist, hasResult is set to false and result is not modified. * @param targetId The unique ID of the target entity. - * @return + * @return */ tryGetTransformTo(targetId: string): { /** If a correlation exists, this will be set to a 4x4 transform matrix that changes basis from the color frame source coordinate system to the target entity coordinate system. */ result: Windows.Foundation.Numerics.Matrix4x4; /** Returns true if a correlation exists, otherwise false. */ returnValue: boolean; }; /** @@ -17289,7 +17289,7 @@ declare namespace Windows { /** * Unprojects all pixels in an image from camera image space out into the coordinate frame of the camera device, using the corresponding depth values from a correlated depth camera. * @param depthFrame The depth frame containing the depth value to use when projecting the points into camera space. The coordinates of each pixel in the image will be mapped from camera image space to depth image space, and then used to look up the depth in this depth frame. - * @return + * @return */ unprojectAllPixelsAtCorrelatedDepthAsync(depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** Returns a set of coordinates, relative to the coordinate system of the camera device and with correlated depth values. */ results: Windows.Foundation.Numerics.Vector3; /** This method returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; /** @@ -17310,7 +17310,7 @@ declare namespace Windows { * Unprojects a region of pixels in an image from camera image space out into the coordinate frame of the camera device, using the corresponding depth values from a correlated depth camera. * @param region The region of pixels to project from camera image space out into the coordinate frame of the camera device. * @param depthFrame The depth frame containing the depth value to use when projecting the points into camera space. The pixelCoordinates will be mapped from camera image space to depth image space, and then used to look up the depth in depthFrame. - * @return + * @return */ unprojectRegionPixelsAtCorrelatedDepthAsync(region: Windows.Foundation.Rect, depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** A set of coordinates, relative to the coordinate system of the camera device and with correlated depth values. */ results: Windows.Foundation.Numerics.Vector3; /** This method returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; } @@ -17319,7 +17319,7 @@ declare namespace Windows { /** * Maps all pixels in an image from camera image space to depth image space. * @param depthFrame The depth frame to map the pixels to. - * @return + * @return */ mapAllPixelsToTargetAsync(depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** Returns the pixel coordinates, mapped to depth image space. */ targetCoordinates: Windows.Foundation.Point; /** This function returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; /** @@ -17340,7 +17340,7 @@ declare namespace Windows { * Maps a region of pixels from camera image space to depth image space. * @param region The region of pixels to map from camera image space to depth image space. * @param depthFrame The depth frame to map the region of pixels to. - * @return + * @return */ mapRegionOfPixelsToTargetAsync(region: Windows.Foundation.Rect, depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** The pixel coordinates, mapped to depth image space. */ targetCoordinates: Windows.Foundation.Point; /** This function returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; } @@ -17483,7 +17483,7 @@ declare namespace Windows { /** * Gets the transform from the depth frame source to the target entity and sets hasResult to true, if a correlation exists. If a correlation does not exist, hasResult is set to false and result is not modified. * @param targetId The unique ID of the target entity. - * @return + * @return */ tryGetTransformTo(targetId: string): { /** If a correlation exists, this will be set to a 4x4 transform matrix that changes basis from the depth frame source coordinate system to the target entity coordinate system. */ result: Windows.Foundation.Numerics.Matrix4x4; /** True if a correlation exists, otherwise false. */ returnValue: boolean; }; /** @@ -17714,7 +17714,7 @@ declare namespace Windows { /** * Gets the transform from the infrared frame source to the target entity and sets hasResult to true, if a correlation exists. If a correlation does not exist, hasResult is set to false and result is not modified. * @param targetId The unique ID of the target entity. - * @return + * @return */ tryGetTransformTo(targetId: string): { /** If a correlation exists, this will be set to a 4x4 transform matrix that changes basis from the infrared frame source coordinate system to the target entity coordinate system. */ result: Windows.Foundation.Numerics.Matrix4x4; /** True if a correlation exists, otherwise false. */ returnValue: boolean; }; /** @@ -18646,7 +18646,7 @@ declare namespace Windows { /** * Puts the device into an authenticated state. * @param responseToken A buffer containing the response token generated from the challenge token retrieved from a previous call to the RetrieveDeviceAuthenticationDataAsync method. - * @return + * @return */ authenticateDeviceAsync(responseToken: number[]): any; /* unmapped return type */ /** Releases the exclusive claim to the magnetic strip reader. */ @@ -18656,7 +18656,7 @@ declare namespace Windows { /** * Puts the device into an unauthenticated state. * @param responseToken A buffer containing the response token generated from the challenge token retrieved from a previous call to the RetrieveDeviceAuthenticationDataAsync method. - * @return + * @return */ deAuthenticateDeviceAsync(responseToken: number[]): any; /* unmapped return type */ /** Gets the DeviceInformation.Id of the claimed magnetic stripe reader. */ @@ -18725,7 +18725,7 @@ declare namespace Windows { * Provides a new encryption key to the device. * @param key The HEX-ASCII or base64-encoded value for the new key. * @param keyName The name used to identify the key. - * @return + * @return */ updateKeyAsync(key: string, keyName: string): any; /* unmapped return type */ /** @@ -22978,7 +22978,7 @@ declare namespace Windows { /** * Retrieves the first 9 bytes of a USB configuration descriptor in a UsbConfigurationDescriptor object that is contained in a UsbDescriptor object. * @param descriptor The UsbDescriptor object to parse. - * @return + * @return */ static tryParse(descriptor: Windows.Devices.Usb.UsbDescriptor): { /** Receives a UsbConfigurationDescriptor object. */ parsed: Windows.Devices.Usb.UsbConfigurationDescriptor; /** True, if a UsbConfigurationDescriptor object was found in the specified UsbDescriptor object. Otherwise, false. */ returnValue: boolean; }; /** Gets the bConfigurationValue field of a USB configuration descriptor. The value is the number that identifies the configuration. */ @@ -23165,7 +23165,7 @@ declare namespace Windows { /** * Retrieves the USB endpoint descriptor in a UsbEndpointDescriptor object that is contained in a UsbDescriptor object. * @param descriptor The UsbDescriptor object to parse. - * @return + * @return */ static tryParse(descriptor: Windows.Devices.Usb.UsbDescriptor): { /** Receives a UsbEndpointDescriptor object. */ parsed: Windows.Devices.Usb.UsbEndpointDescriptor; /** True, if the specified UsbDescriptor object is a USB endpoint descriptor. Otherwise, false. */ returnValue: boolean; }; /** Gets an object that represents the endpoint descriptor for the USB bulk IN endpoint. */ @@ -23222,7 +23222,7 @@ declare namespace Windows { /** * Retrieves information about the alternate setting in a UsbInterfaceDescriptor object that is contained in a UsbDescriptor object. * @param descriptor The UsbDescriptor object to parse. - * @return + * @return */ static tryParse(descriptor: Windows.Devices.Usb.UsbDescriptor): { /** Receives a UsbInterfaceDescriptor object. */ parsed: Windows.Devices.Usb.UsbInterfaceDescriptor; /** True, if the specified UsbDescriptor object is USB interface descriptor. Otherwise, false. */ returnValue: boolean; }; /** Gets the bAlternateSetting field of the USB interface descriptor. The value is a number that identifies the alternate setting defined by the interface. */ @@ -24238,13 +24238,13 @@ declare namespace Windows { /** * Retrieves the items that start at the specified index in the vector view. * @param startIndex The zero-based index of the start of the items in the vector view. - * @return + * @return */ getMany(startIndex: number): { /** The items that start at startIndex in the vector view. */ items: T; /** The number of items retrieved. */ returnValue: number; }; /** * Retrieves the index of a specified item in the vector view. * @param value The item to find in the vector view. - * @return + * @return */ indexOf(value: T): { /** If the item is found, this is the zero-based index of the item; otherwise, this parameter is 0. */ index: number; /** true if the item is found; otherwise, false. */ returnValue: boolean; }; /** Gets the number of items in the vector view. */ @@ -24268,7 +24268,7 @@ declare namespace Windows { /** * Retrieves the items that start at the specified index in the vector. * @param startIndex The zero-based index of the start of the items in the vector. - * @return + * @return */ getMany(startIndex: number): { /** The items that start at startIndex in the vector. */ items: T; /** The number of items retrieved. */ returnValue: number; }; /** @@ -24279,7 +24279,7 @@ declare namespace Windows { /** * Retrieves the index of a specified item in the vector. * @param value The item to find in the vector. - * @return + * @return */ indexOf(value: T): { /** If the item is found, this is the zero-based index of the item; otherwise, this parameter is 0. */ index: number; /** true if the item is found; otherwise, false. */ returnValue: boolean; }; /** @@ -24333,7 +24333,7 @@ declare namespace Windows { lookup(key: K): V; /** * Splits the map view into two views. - * @return + * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; /** Gets the number of elements in the map. */ @@ -24381,7 +24381,7 @@ declare namespace Windows { interface IIterator { /** * Retrieves all items in the collection. - * @return + * @return */ getMany(): { /** The items in the collection. */ items: T; /** The number of items in the collection. */ returnValue: number; }; /** @@ -26400,13 +26400,13 @@ declare namespace Windows { /** * Gets name-value pairs starting at the specified index in the current URL query string. * @param startIndex The index to start getting name-value pairs at. - * @return + * @return */ getMany(startIndex: number): { /** The name-value pairs. */ items: Windows.Foundation.IWwwFormUrlDecoderEntry; /** The number of name-value pairs in items. */ returnValue: number; }; /** * Gets a value indicating whether the specified IWwwFormUrlDecoderEntry is at the specified index in the current URL query string. * @param value The name-value pair to get the index of. - * @return + * @return */ indexOf(value: Windows.Foundation.IWwwFormUrlDecoderEntry): { /** The position in value. */ index: number; /** true if value is at the position specified by index; otherwise, false. */ returnValue: boolean; }; /** Gets the number of the name-value pairs in the current URL query string. */ @@ -27377,13 +27377,13 @@ declare namespace Windows { /** * Returns the CharacterGrouping objects that start at the specified index in the set of character groups. * @param startIndex The zero-based index of the start of the CharacterGrouping objects in the set to return. - * @return + * @return */ getMany(startIndex: number): { /** The CharacterGrouping objects in the set that start at startIndex. */ items: Windows.Globalization.Collation.CharacterGrouping; /** The number of objects returned. */ returnValue: number; }; /** * Returns the index of a specified CharacterGrouping object in the set of character groups. * @param value The CharacterGrouping object to find in the set. - * @return + * @return */ indexOf(value: Windows.Globalization.Collation.CharacterGrouping): { /** The zero-based index of the CharacterGrouping object, if found. The method returns zero if the object is not found. */ index: number; /** True if the object is found, otherwise false. */ returnValue: boolean; }; /** @@ -28981,7 +28981,7 @@ declare namespace Windows { static autoRotationPreferences: Windows.Graphics.Display.DisplayOrientations; static currentOrientation: Windows.Graphics.Display.DisplayOrientations; /** - * + * * @return Object that manages the asynchronous retrieval of the color profile. */ static getColorProfileAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; @@ -35911,12 +35911,12 @@ declare namespace Windows { capabilities: Windows.Media.Devices.MediaDeviceControlCapabilities; /** * Indicates whether automatic adjustment of the camera setting is enabled. - * @return + * @return */ tryGetAuto(): { /** True if automatic adjustment is enabled; false otherwise. */ value: boolean; /** Returns true if the method succeeds, or false otherwise. */ returnValue: boolean; }; /** * Gets the value of the camera setting. - * @return + * @return */ tryGetValue(): { /** The current value of the setting. The units depend on the setting. */ value: number; /** Returns true if the method succeeds, or false otherwise. */ returnValue: boolean; }; /** @@ -36180,7 +36180,7 @@ declare namespace Windows { torchControl: Windows.Media.Devices.TorchControl; /** * Gets the local power line frequency. - * @return + * @return */ tryGetPowerlineFrequency(): { /** The power line frequency. */ value: Windows.Media.Capture.PowerlineFrequency; /** Returns true if the method succeeded, or false otherwise. */ returnValue: boolean; }; /** @@ -38634,13 +38634,13 @@ declare namespace Windows { /** * Retrieves the audio tracks that start at the specified index in the list. * @param startIndex The zero-based index of the start of the audio tracks in the list. - * @return + * @return */ getMany(startIndex: number): { /** The audio tracks that start at startIndex in the list. */ items: Windows.Media.Core.AudioTrack; /** The number of audio tracks retrieved. */ returnValue: number; }; /** * Retrieves the index of a specified audio track in the list. * @param value The audio track to find in the vector view. - * @return + * @return */ indexOf(value: Windows.Media.Core.AudioTrack): { /** If the audio track is found, this is the zero-based index of the audio track; otherwise, this parameter is 0. */ index: number; /** True if the audio track is found; otherwise, false. */ returnValue: boolean; }; /** Occurs when the index of the currently selected audio track changes. */ @@ -38793,7 +38793,7 @@ declare namespace Windows { /** * Retrieves the timed metadata tracks that start at the specified index in the list. * @param startIndex The zero-based index of the start of the timed metadata tracks in the list. - * @return + * @return */ getMany(startIndex: number): { /** The timed metadata tracks that start at startIndex in the list. */ items: Windows.Media.Core.TimedMetadataTrack; /** The number of timed metadata tracks retrieved. */ returnValue: number; }; /** @@ -38805,7 +38805,7 @@ declare namespace Windows { /** * Retrieves the index of a specified timed metadata track in the list. * @param value The timed metadata track to find in the vector view. - * @return + * @return */ indexOf(value: Windows.Media.Core.TimedMetadataTrack): { /** If the timed metadata track is found, this is the zero-based index of the audio track; otherwise, this parameter is 0. */ index: number; /** True if the timed metadata track is found; otherwise, false. */ returnValue: boolean; }; /** Occurs when the presentation mode of the MediaPlaybackTimedMetadataTrackList changes. */ @@ -38841,13 +38841,13 @@ declare namespace Windows { /** * Retrieves the video tracks that start at the specified index in the list. * @param startIndex The zero-based index of the start of the video tracks in the list. - * @return + * @return */ getMany(startIndex: number): { /** The video tracks that start at startIndex in the list. */ items: Windows.Media.Core.VideoTrack; /** The number of video tracks retrieved. */ returnValue: number; }; /** * Retrieves the index of a specified video track in the list. * @param value The video track to find in the vector view. - * @return + * @return */ indexOf(value: Windows.Media.Core.VideoTrack): { /** If the video track is found, this is the zero-based index of the audio track; otherwise, this parameter is 0. */ index: number; /** True if the video track is found; otherwise, false. */ returnValue: boolean; }; /** Occurs when the index of the currently selected video track changes. */ @@ -39667,7 +39667,7 @@ declare namespace Windows { current: Windows.Media.Protection.PlayReady.IPlayReadyDomain; /** * Retrieves all items in the PlayReady domain collection. - * @return + * @return */ getMany(): { /** The items in the collection. */ items: Windows.Media.Protection.PlayReady.IPlayReadyDomain; /** The number of items in the collection. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item or the iterator is at the end of the PlayReady domain collection. */ @@ -39918,7 +39918,7 @@ declare namespace Windows { current: Windows.Media.Protection.PlayReady.IPlayReadyLicense; /** * Retrieves all items in the PlayReady license collection. - * @return + * @return */ getMany(): { /** The items in the collection. */ items: Windows.Media.Protection.PlayReady.IPlayReadyLicense; /** The number of items in the collection. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item or the iterator is at the end of the PlayReady license collection. */ @@ -40049,7 +40049,7 @@ declare namespace Windows { current: Windows.Media.Protection.PlayReady.IPlayReadySecureStopServiceRequest; /** * Retrieves all items in the PlayReady secure stop collection. - * @return + * @return */ getMany(): { /** The items in the collection. */ items: Windows.Media.Protection.PlayReady.IPlayReadySecureStopServiceRequest; /** The number of items in the collection. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item or the iterator is at the end of the PlayReady secure stop collection. */ @@ -40247,7 +40247,7 @@ declare namespace Windows { /** * Retrieves the stream type (audio or video) and stream identifier of the media stream descriptor. * @param descriptor The media stream from which this method gets information. - * @return + * @return */ getStreamInformation(descriptor: Windows.Media.Core.IMediaStreamDescriptor): { /** The type of the media stream. This type can be either Audio or Video. */ streamType: Windows.Media.Protection.PlayReady.NDMediaStreamType; /** The stream identifier for the media stream. */ returnValue: number; }; /** @@ -41615,7 +41615,7 @@ declare namespace Windows { */ static getCurrentDownloadsForTransferGroupAsync(group: Windows.Networking.BackgroundTransfer.BackgroundTransferGroup): Windows.Foundation.IPromiseWithIAsyncOperation>; /** - * + * * @param operations The download operation to run unconstrained. * @return Indicates if the operations will run unconstrained. */ @@ -41815,7 +41815,7 @@ declare namespace Windows { */ static getCurrentUploadsForTransferGroupAsync(group: Windows.Networking.BackgroundTransfer.BackgroundTransferGroup): Windows.Foundation.IPromiseWithIAsyncOperation>; /** - * + * * @param operations The upload operation to run unconstrained. * @return Indicates if the operations will run unconstrained. */ @@ -42740,7 +42740,7 @@ declare namespace Windows { /** * Gets the context of an authentication attempt. * @param evenToken The event token retrieved from the network operator hotspot authentication event . The token is a GUID in string format. - * @return + * @return */ static tryGetAuthenticationContext(evenToken: string): { /** The network operator hotspot authentication context. */ context: Windows.Networking.NetworkOperators.HotspotAuthenticationContext; /** If true, the authentication context was retrieved. The authentication context can only be retrieved if the calling application matches the application ID specified in the hotspot profile of the underlying WLAN connection and if the authentication hasn’t be completed by the corresponding context already or timed out. */ returnValue: boolean; }; /** @@ -44213,13 +44213,13 @@ declare namespace Windows { /** * Gets multiple DnssdServiceInstance objects from a DNS-SD service instance collection. * @param startIndex Index of the first collection item to be retrieved. - * @return + * @return */ getMany(startIndex: number): { /** The retrieved DnssdServiceInstance objects. */ items: Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance; /** The number of items in items. */ returnValue: number; }; /** * Gets a value indicating whether a given DnssdServiceInstance is at the specified index in this service instance collection. * @param value The DnssdServiceInstance to get the index of. - * @return + * @return */ indexOf(value: Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance): { /** The index, if the DnssdServiceInstance is found. */ index: number; /** true if value is found at index, false otherwise. */ returnValue: boolean; }; /** Gets the number of items in the collection */ @@ -45215,7 +45215,7 @@ declare namespace Windows { getSnapshotAsBuffer(): Windows.Storage.Streams.IBuffer; /** * This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. - * @return + * @return */ getSnapshotAsBytes(): { /** This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. */ buffer: number[]; /** This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. */ bytesWritten: number; }; /** This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. */ @@ -46574,31 +46574,31 @@ declare namespace Windows { clear(): void; /** * This method is reserved for internal use and is not intended to be used in your code. - * @return + * @return */ first(): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. - * @return + * @return */ getView(): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. * @param key Reserved. - * @return + * @return */ hasKey(key: string): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. * @param key Reserved. * @param value Reserved. - * @return + * @return */ insert(key: string, value: any): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. * @param key Reserved. - * @return + * @return */ lookup(key: string): any; /* unmapped return type */ /** This method is reserved for internal use and is not intended to be used in your code. */ @@ -48977,13 +48977,13 @@ declare namespace Windows { /** * Retrieves the storage items that start at the specified index in the access list or most recently used (MRU) list. * @param startIndex The zero-based index of the start of the items in the collection to retrieve. - * @return + * @return */ getMany(startIndex: number): { /** The items in the collection that start at startIndex. */ items: Windows.Storage.AccessCache.AccessListEntry; /** The number of items retrieved. */ returnValue: number; }; /** * Retrieves the index of the specified storage item in the access list or most recently used (MRU) list. * @param value The storage item. - * @return + * @return */ indexOf(value: Windows.Storage.AccessCache.AccessListEntry): { /** The zero-based index of the storage item. */ index: number; /** True if the specified storage item exists in the list; otherwise false. */ returnValue: boolean; }; /** Gets the number of storage items in the access list or most recently used (MRU) list. */ @@ -50948,7 +50948,7 @@ declare namespace Windows { /** * Retrieves the file name extensions that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the file name extensions in the collection to retrieve. - * @return + * @return */ getMany(startIndex: number): { /** The file name extensions in the collection that start at startIndex. */ items: string[]; /** The number of items retrieved. */ returnValue: number; }; /** @@ -50959,7 +50959,7 @@ declare namespace Windows { /** * Retrieves the index of a specified file name extension in the collection. * @param value The file name extension to find in the collection. - * @return + * @return */ indexOf(value: string): { /** The zero-based index of the file name extension if found. This parameter is set to zero if the file name extension is not found. */ index: number; /** True if the file name extension is found; otherwise FALSE. */ returnValue: boolean; }; /** @@ -51086,13 +51086,13 @@ declare namespace Windows { /** * Retrieves the StorageFile objects that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the objects in the collection to return. - * @return + * @return */ getMany(startIndex: number): { /** The items in the collection that start at startIndex. */ items: Windows.Storage.StorageFile; /** The number of items returned. */ returnValue: number; }; /** * Retrieves the index of a specified StorageFile object in the collection. * @param value The object to find in the collection. - * @return + * @return */ indexOf(value: Windows.Storage.StorageFile): { /** The zero-based index of the object if found. Zero is returned if the object is not found. */ index: number; /** True if the object is found; otherwise false. */ returnValue: boolean; }; /** Gets the number of StorageFile objects in the collection. */ @@ -51528,7 +51528,7 @@ declare namespace Windows { /** * Adds app-defined items with properties and content to the system index. * @param indexableContent The content properties to index. - * @return + * @return */ addAsync(indexableContent: Windows.Storage.Search.IIndexableContent): any; /* unmapped return type */ /** @@ -51557,19 +51557,19 @@ declare namespace Windows { createQuery(searchFilter: string, propertiesToRetrieve: Windows.Foundation.Collections.IIterable): Windows.Storage.Search.ContentIndexerQuery; /** * Removes all app-defined items from the ContentIndexer . - * @return + * @return */ deleteAllAsync(): any; /* unmapped return type */ /** * Removes the specified app-defined item from the ContentIndexer . * @param contentId The identifier of the item to remove. - * @return + * @return */ deleteAsync(contentId: string): any; /* unmapped return type */ /** * Removes the specified app-defined items from the ContentIndexer . * @param contentIds The identifier of the item to remove. - * @return + * @return */ deleteMultipleAsync(contentIds: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** @@ -51584,7 +51584,7 @@ declare namespace Windows { /** * Updates app content and properties in the ContentIndexer . * @param indexableContent The content properties to update. - * @return + * @return */ updateAsync(indexableContent: Windows.Storage.Search.IIndexableContent): any; /* unmapped return type */ } @@ -51753,7 +51753,7 @@ declare namespace Windows { /** * Retrieves the sort entries that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the sort entries in the collection to retrieve. - * @return + * @return */ getMany(startIndex: number): { /** The sort entries in the collection that start at startIndex. */ items: Windows.Storage.Search.SortEntry; /** The number of items retrieved. */ returnValue: number; }; /** @@ -51764,7 +51764,7 @@ declare namespace Windows { /** * Retrieves the index of a specified sort entry in the collection. * @param value The sort entry to find in the collection. - * @return + * @return */ indexOf(value: Windows.Storage.Search.SortEntry): { /** The zero-based index of the sort entry, if found. This parameter is set to zero if the sort entry is not found. */ index: number; /** True if the sort entry is found; otherwise false. */ returnValue: boolean; }; /** @@ -54528,7 +54528,7 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return + * @return */ split(): { /** The first part of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second part of the original map. */ second: Windows.Foundation.Collections.IMapView; }; } @@ -56944,7 +56944,7 @@ declare namespace Windows { /** * Attempts to perform the transformation on the specified input point. * @param inPoint The original input point. - * @return + * @return */ tryTransform(inPoint: Windows.Foundation.Point): { /** The transformed input point. */ outPoint: Windows.Foundation.Point; /** True if inPoint was transformed successfully; otherwise, false. */ returnValue: boolean; }; /** Gets the inverse of the specified transformation. */ @@ -60914,7 +60914,7 @@ declare namespace Windows { /** * Retrieves the HttpNameValueHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpNameValueHeaderValue items in the HttpCacheDirectiveHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpNameValueHeaderValue items that start at startIndex in the HttpCacheDirectiveHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpNameValueHeaderValue; /** The number of HttpNameValueHeaderValue items retrieved. */ returnValue: number; }; /** @@ -60925,7 +60925,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpNameValueHeaderValue in the collection. * @param value The HttpNameValueHeaderValue to find in the HttpCacheDirectiveHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpNameValueHeaderValue): { /** The index of the HttpNameValueHeaderValue in the HttpCacheDirectiveHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -60998,7 +60998,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpChallengeHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpChallengeHeaderValue version of the string. */ challengeHeaderValue: Windows.Web.Http.Headers.HttpChallengeHeaderValue; /** true if input is valid HttpChallengeHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61042,7 +61042,7 @@ declare namespace Windows { /** * Retrieves the HttpChallengeHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpChallengeHeaderValue items in the HttpChallengeHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpChallengeHeaderValue items that start at startIndex in the HttpChallengeHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpChallengeHeaderValue; /** The number of HttpChallengeHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61053,7 +61053,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpChallengeHeaderValue in the collection. * @param value The HttpChallengeHeaderValue to find in the HttpChallengeHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpChallengeHeaderValue): { /** The index of the HttpChallengeHeaderValue in the HttpChallengeHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61118,7 +61118,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpConnectionOptionHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpConnectionOptionHeaderValue version of the string. */ connectionOptionHeaderValue: Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue; /** true if input is valid HttpConnectionOptionHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61152,7 +61152,7 @@ declare namespace Windows { /** * Retrieves the HttpConnectionOptionHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpConnectionOptionHeaderValue items in the HttpConnectionOptionHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpConnectionOptionHeaderValue items that start at startIndex in the HttpConnectionOptionHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue; /** The number of HttpConnectionOptionHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61163,7 +61163,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpConnectionOptionHeaderValue in the collection. * @param value The HttpConnectionOptionHeaderValue to find in the HttpConnectionOptionHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue): { /** The index of the HttpConnectionOptionHeaderValue in the HttpConnectionOptionHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61228,7 +61228,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentCodingHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpContentCodingHeaderValue version of the string. */ contentCodingHeaderValue: Windows.Web.Http.Headers.HttpContentCodingHeaderValue; /** true if input is valid HttpContentCodingHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61262,7 +61262,7 @@ declare namespace Windows { /** * Retrieves the HttpContentCodingHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpContentCodingHeaderValue items in the HttpContentCodingHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpContentCodingHeaderValue items that start at startIndex in the HttpContentCodingHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpContentCodingHeaderValue; /** The number of HttpContentCodingHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61273,7 +61273,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpContentCodingHeaderValue in the collection. * @param value The HttpContentCodingHeaderValue to find in the HttpContentCodingHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpContentCodingHeaderValue): { /** The index of the HttpContentCodingHeaderValue in the HttpContentCodingHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61338,7 +61338,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentCodingWithQualityHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpContentCodingWithQualityHeaderValue version of the string. */ contentCodingWithQualityHeaderValue: Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue; /** true if input is valid HttpContentCodingWithQualityHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61380,7 +61380,7 @@ declare namespace Windows { /** * Retrieves the HttpContentCodingWithQualityHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpContentCodingWithQualityHeaderValue items in the HttpContentCodingWithQualityHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpContentCodingWithQualityHeaderValue items that start at startIndex in the HttpContentCodingWithQualityHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue; /** The number of HttpContentCodingWithQualityHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61391,7 +61391,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpContentCodingWithQualityHeaderValue in the collection. * @param value The HttpContentCodingWithQualityHeaderValue to find in the HttpContentCodingWithQualityHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue): { /** The index of the HttpContentCodingWithQualityHeaderValue in the HttpContentCodingWithQualityHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61456,7 +61456,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentDispositionHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpContentDispositionHeaderValue version of the string. */ contentDispositionHeaderValue: Windows.Web.Http.Headers.HttpContentDispositionHeaderValue; /** true if input is valid HttpContentDispositionHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61570,7 +61570,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentRangeHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpContentRangeHeaderValue version of the string. */ contentRangeHeaderValue: Windows.Web.Http.Headers.HttpContentRangeHeaderValue; /** true if input is valid HttpContentRangeHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61611,7 +61611,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpCookiePairHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpCookiePairHeaderValue version of the string. */ cookiePairHeaderValue: Windows.Web.Http.Headers.HttpCookiePairHeaderValue; /** true if input is valid HttpCookiePairHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61653,7 +61653,7 @@ declare namespace Windows { /** * Retrieves the HttpCookiePairHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpCookiePairHeaderValue items in the HttpCookiePairHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpCookiePairHeaderValue items that start at startIndex in the HttpCookiePairHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpCookiePairHeaderValue; /** The number of HttpCookiePairHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61664,7 +61664,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpCookiePairHeaderValue in the collection. * @param value The HttpCookiePairHeaderValue to find in the HttpCookiePairHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpCookiePairHeaderValue): { /** The index of the HttpCookiePairHeaderValue in the HttpCookiePairHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61729,7 +61729,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpCredentialsHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpCredentialsHeaderValue version of the string. */ credentialsHeaderValue: Windows.Web.Http.Headers.HttpCredentialsHeaderValue; /** true if input is valid HttpCredentialsHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61761,7 +61761,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpDateOrDeltaHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpDateOrDeltaHeaderValue version of the string. */ dateOrDeltaHeaderValue: Windows.Web.Http.Headers.HttpDateOrDeltaHeaderValue; /** true if input is valid HttpDateOrDeltaHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** Gets the value of the HTTP-date information used in the Retry-After HTTP header. */ @@ -61780,7 +61780,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpCredentialsHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpExpectationHeaderValue version of the string. */ expectationHeaderValue: Windows.Web.Http.Headers.HttpExpectationHeaderValue; /** true if input is valid HttpExpectationHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61824,7 +61824,7 @@ declare namespace Windows { /** * Retrieves the HttpExpectationHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpExpectationHeaderValue items in the HttpExpectationHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpExpectationHeaderValue items that start at startIndex in the HttpExpectationHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpExpectationHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -61835,7 +61835,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpExpectationHeaderValue in the collection. * @param value The HttpExpectationHeaderValue to find in the HttpExpectationHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpExpectationHeaderValue): { /** The index of the HttpExpectationHeaderValue in the HttpExpectationHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61912,7 +61912,7 @@ declare namespace Windows { /** * Retrieves the Language items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the Language items in the HttpLanguageHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of Language items that start at startIndex in the HttpLanguageHeaderValueCollection . */ items: Windows.Globalization.Language; /** The number of items retrieved. */ returnValue: number; }; /** @@ -61923,7 +61923,7 @@ declare namespace Windows { /** * Retrieves the index of a Language in the collection. * @param value The item to find in the HttpLanguageHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Globalization.Language): { /** The index of the Language item in the HttpLanguageHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61988,7 +61988,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpLanguageRangeWithQualityHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpLanguageRangeWithQualityHeaderValue version of the string. */ languageRangeWithQualityHeaderValue: Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValue; /** true if input is valid HttpLanguageRangeWithQualityHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62030,7 +62030,7 @@ declare namespace Windows { /** * Retrieves the HttpLanguageRangeWithQualityHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpLanguageRangeWithQualityHeaderValue items in the HttpLanguageRangeWithQualityHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpLanguageRangeWithQualityHeaderValue items that start at startIndex in the HttpLanguageRangeWithQualityHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62041,7 +62041,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpLanguageRangeWithQualityHeaderValue in the collection. * @param value The HttpLanguageRangeWithQualityHeaderValue to find in the HttpLanguageRangeWithQualityHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValue): { /** The index of the HttpLanguageRangeWithQualityHeaderValue in the HttpLanguageRangeWithQualityHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62106,7 +62106,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpMediaTypeHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpMediaTypeHeaderValue version of the string. */ mediaTypeHeaderValue: Windows.Web.Http.Headers.HttpMediaTypeHeaderValue; /** true if input is valid HttpMediaTypeHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62132,7 +62132,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpMediaTypeWithQualityHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpMediaTypeWithQualityHeaderValue version of the string. */ mediaTypeWithQualityHeaderValue: Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValue; /** true if input is valid HttpMediaTypeWithQualityHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62178,7 +62178,7 @@ declare namespace Windows { /** * Retrieves the HttpMediaTypeWithQualityHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpMediaTypeWithQualityHeaderValue items in the HttpMediaTypeWithQualityHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpMediaTypeWithQualityHeaderValue items that start at startIndex in the HttpMediaTypeWithQualityHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62189,7 +62189,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpMediaTypeWithQualityHeaderValue in the collection. * @param value The HttpMediaTypeWithQualityHeaderValue to find in the HttpMediaTypeWithQualityHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValue): { /** The index of the HttpMediaTypeWithQualityHeaderValue in the HttpMediaTypeWithQualityHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62266,7 +62266,7 @@ declare namespace Windows { /** * Retrieves the HttpMethod items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpMethod items in the HttpMethodHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpMethod items that start at startIndex in the HttpMethodHeaderValueCollection . */ items: Windows.Web.Http.HttpMethod; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62277,7 +62277,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpMethod in the collection. * @param value The HttpMethod to find in the HttpMethodHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.HttpMethod): { /** The index of the HttpMethod in the HttpMethodHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62342,7 +62342,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpNameValueHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpNameValueHeaderValue version of the string. */ nameValueHeaderValue: Windows.Web.Http.Headers.HttpNameValueHeaderValue; /** true if input is valid HttpNameValueHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62372,7 +62372,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpProductHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpProductHeaderValue version of the string. */ productHeaderValue: Windows.Web.Http.Headers.HttpProductHeaderValue; /** true if input is valid HttpProductHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62402,7 +62402,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpProductInfoHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpProductInfoHeaderValue version of the string. */ productInfoHeaderValue: Windows.Web.Http.Headers.HttpProductInfoHeaderValue; /** true if input is valid HttpProductInfoHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62444,7 +62444,7 @@ declare namespace Windows { /** * Retrieves the HttpProductInfoHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpProductInfoHeaderValue items in the HttpProductInfoHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpProductInfoHeaderValue items that start at startIndex in the HttpProductInfoHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpProductInfoHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62461,7 +62461,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpProductInfoHeaderValue in the collection. * @param value The HttpProductInfoHeaderValue to find in the HttpProductInfoHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpProductInfoHeaderValue): { /** The index of the HttpProductInfoHeaderValue in the HttpProductInfoHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62696,7 +62696,7 @@ declare namespace Windows { /** * Determines whether a string is valid HttpTransferCodingHeaderValue information. * @param input The string to validate. - * @return + * @return */ static tryParse(input: string): { /** The HttpTransferCodingHeaderValue version of the string. */ transferCodingHeaderValue: Windows.Web.Http.Headers.HttpTransferCodingHeaderValue; /** true if input is valid HttpTransferCodingHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62732,7 +62732,7 @@ declare namespace Windows { /** * Retrieves the HttpTransferCodingHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpTransferCodingHeaderValue items in the HttpTransferCodingHeaderValueCollection . - * @return + * @return */ getMany(startIndex: number): { /** An array of HttpTransferCodingHeaderValue items that start at startIndex in the HttpTransferCodingHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpTransferCodingHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62755,7 +62755,7 @@ declare namespace Windows { /** * Retrieves the index of an HttpTransferCodingHeaderValue in the collection. * @param value The HttpTransferCodingHeaderValue to find in the HttpTransferCodingHeaderValueCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.Headers.HttpTransferCodingHeaderValue): { /** The index of the HttpTransferCodingHeaderValue in the HttpTransferCodingHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62844,7 +62844,7 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Computes the HttpBufferContent length in bytes. - * @return + * @return */ tryComputeLength(): { /** The length in bytes of the HttpBufferContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -62979,13 +62979,13 @@ declare namespace Windows { /** * Retrieves the HttpCookie items that start at the specified index in the HttpCookieCollection . * @param startIndex The zero-based index of the start of the HttpCookie items in the HttpCookieCollection . - * @return + * @return */ getMany(startIndex: number): { /** The HttpCookie items that start at startIndex in the HttpCookieCollection . */ items: Windows.Web.Http.HttpCookie; /** The number of HttpCookie items retrieved. */ returnValue: number; }; /** * Retrieves the index of an HttpCookie in the HttpCookieCollection . * @param value The HttpCookie to find in the HttpCookieCollection . - * @return + * @return */ indexOf(value: Windows.Web.Http.HttpCookie): { /** The index of the HttpCookie in the HttpCookieCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** Gets the number of cookies in the HttpCookieCollection . */ @@ -63053,7 +63053,7 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Computes the HttpFormUrlEncodedContent length in bytes. - * @return + * @return */ tryComputeLength(): { /** The length in bytes of the HttpFormUrlEncodedContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63138,7 +63138,7 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Determines whether the HttpMultipartContent has a valid length in bytes. - * @return + * @return */ tryComputeLength(): { /** The length in bytes of the HttpMultipartContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63206,7 +63206,7 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Determines whether the HttpMultipartFormDataContent has a valid length in bytes. - * @return + * @return */ tryComputeLength(): { /** The length in bytes of the HttpMultipartFormDataContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63458,7 +63458,7 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Determines whether the HttpStreamContent has a valid length in bytes. - * @return + * @return */ tryComputeLength(): { /** The length in bytes of the HttpStreamContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63514,7 +63514,7 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Compute the HttpStringContent length in bytes. - * @return + * @return */ tryComputeLength(): { /** The length in bytes of the HttpStringContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63585,7 +63585,7 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IAsyncOperationWithProgress; /** * Determines whether the HTTP content has a valid length in bytes. - * @return + * @return */ tryComputeLength(): { /** The length in bytes of the HTTP content. */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** diff --git a/winrt/winrt.d.ts b/winrt/winrt.d.ts index 63b438fb42..687d7f83d4 100644 --- a/winrt/winrt.d.ts +++ b/winrt/winrt.d.ts @@ -4,16 +4,16 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /* ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - +License at http://www.apache.org/licenses/LICENSE-2.0 + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ @@ -11606,12 +11606,12 @@ declare module Windows { * Gets the window (app view) for the current app. **/ static getForCurrentView(): ApplicationView; - + /** * Attempts to unsnap a previously snapped app. This call will only succeed when the app is running in the foreground. **/ static tryUnsnap(): boolean; - + /** * Gets the state of the current app view. **/ @@ -11661,7 +11661,7 @@ declare module Windows { * Gets whether the current window (app view) is adjacent to the left edge of the screen. **/ adjacentToLeftDisplayEdge: number; - + /** * Gets the title bar of the app. **/ @@ -14857,4 +14857,4 @@ declare module Windows.UI.ViewManagement { **/ inactiveForegroundColor: Color; } -} \ No newline at end of file +} diff --git a/winston/winston.d.ts b/winston/winston.d.ts index 5fecf42018..aa7b0c7cf7 100644 --- a/winston/winston.d.ts +++ b/winston/winston.d.ts @@ -47,7 +47,7 @@ declare module "winston" { export function setLevels(target: any): any; export function cli(): LoggerInstance; export function addRewriter(rewriter: MetadataRewriter): void; - + export interface MetadataRewriter { (level: string, msg: string, meta: any): any; } diff --git a/wiredep/wiredep.d.ts b/wiredep/wiredep.d.ts index ec256b47b8..6807c79d2c 100644 --- a/wiredep/wiredep.d.ts +++ b/wiredep/wiredep.d.ts @@ -1,372 +1,372 @@ -// Type definitions for Wiredep v3.0.x -// Project: https://github.com/taptapship/wiredep -// Definitions by: Abraão Alves -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -/// - -declare module 'wiredep' { - - interface PathFiles{ - [type: string]: string[]; - } - - /** - * @return {PathFiles} paths to your files by extension - * @example: - * { - * js: [ - * 'paths/to/your/js/files.js', - * 'in/their/order/of/dependency.js' - * ], - * css: [ - * 'paths/to/your/css/files.css' - * ], - * // etc. - * } - */ - function Wiredep(config: WiredepParams): PathFiles; - - module Wiredep { - export function stream(config: WiredepParams): NodeJS.ReadWriteStream; - } - - - interface WiredepParams { - src?: string | string[]; - /** - * the directory of your Bower packages. - * Default: '.bowerrc'.directory || bower_components - */ - directory?: string; - /** - * your bower.json file contents. - * Default: require('./bower.json') - */ - bowerJson?: string; - - - // ----- Advanced Configuration ----- - // All of the below settings are for advanced configuration, to - // give your project support for additional file types and more - // control. - // - // Out of the box, wiredep will handle HTML files just fine for - // JavaScript and CSS injection. - - /** - * path to where we are pretending to be - */ - cwd?: string; - /** - * Default: true - */ - dependencies?: boolean; - /** - * Default: false - */ - devDependencies?: boolean; - /** - * Default: false - */ - includeSelf?: boolean; - /** - * @example: - * [ /jquery/, 'bower_components/modernizr/modernizr.js' ] - */ - exclude?: Array; - - /** - * string or regexp to ignore from the injected filepath - * @example: - * [ /jquery/, 'bower_components/modernizr/modernizr.js' ] - */ - ignorePath?: string | RegExp; - - /** - * This inline object offers another way to define your overrides if - * modifying your project's `bower.json` isn't an option. - */ - overrides?: Object; - - /** - * If not overridden, an error will throw - * - * err.code can be: - * - "PKG_NOT_INSTALLED" (a Bower package was not found) - * - "BOWER_COMPONENTS_MISSING" (cannot find the `bower_components` directory) - */ - onError?: (err: Error) => void; - - /** - * @param {string} filePath name of file that was updated - */ - onFileUpdated?: (filePath: string) => void; - - /** - * @param {FileObject} fileObject - */ - onPathInjected?: (fileObject: FileObject) => void; - - /** - * @param {string} pkg name of bower package without main - */ - onMainNotFound?: (pkg: string) => void; - - fileTypes? : FileTypes; - } - - interface FileObject { - /** - * type of wiredep block ('js', 'css', etc) - */ - block: string; - /** - * name of file that was updated - */ - file: string; - /** - * path to file that was injected - */ - path: string - } - - interface FileTypes { - fileExtension: { - /** - * match the beginning-to-end of a bower block in this type of file - */ - block: RegExp; - detect: { - /** - * match the way this type of file is included - */ - typeOfBowerFile: RegExp; - }; - replace: { - /** - * - */ - typeOfBowerFile: string; - /** - * @exemple: - * return '' - */ - anotherTypeOfBowerFile: (filePath: string) => string; - } - }; - - // defaults: - html: { - /** - * @example: - * /(([ \t]*))(\n|\r|.)*?()/gi - */ - block: RegExp; - - detect: { - /** - * @example: - * /' - */ - js: string; - /** - * @example: - * '' - */ - css: string; - }; - }; - - jade: { - /** - * @example: - * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi - */ - block: RegExp; - detect: { - /** - * @example: - * /script\(.*src=['"]([^'"]+)/gi - */ - js: RegExp; - /** - * @example: - * /link\(.*href=['"]([^'"]+)/gi - */ - css: RegExp; - }; - - replace: { - /** - * @example: - * 'script(src=\'{{filePath}}\')' - */ - js: string; - /** - * @example: - * 'link(rel=\'stylesheet\', href=\'{{filePath}}\')' - */ - css: string; - } - }; - - less: { - /** - * @example: - * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi - */ - block: RegExp; - detect: { - /** - * @example: - * /@import\s['"](.+css)['"]/gi - */ - css: RegExp; - /** - * @example: - * /@import\s['"](.+less)['"]/gi - */ - less: RegExp - }; - - replace: { - /** - * @example: - * '@import "{{filePath}}";' - */ - css: string; - /** - * @example: - * '@import "{{filePath}}";' - */ - less: string; - }; - }; - - scss: { - /** - * @example: - * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi - */ - block: RegExp; - detect: { - /** - * @example: - * /@import\s['"](.+css)['"]/gi - */ - css: RegExp; - /** - * @example: - * /@import\s['"](.+sass)['"]/gi - */ - sass: RegExp; - /** - * @example: - * /@import\s['"](.+scss)['"]/gi - */ - scss: RegExp; - }, - replace: { - /** - * @example: - * '@import "{{filePath}}";' - */ - css: string; - /** - * @example: - * '@import "{{filePath}}";' - */ - sass: string; - /** - * @example: - * '@import "{{filePath}}";' - */ - scss: string; - } - }; - - styl: { - /** - * @example: - * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi - */ - block: RegExp; - - detect: { - /** - * @example: - * /@import\s['"](.+css)['"]/gi - */ - css: RegExp; - /** - * @example: - * /@import\s['"](.+styl)['"]/gi - */ - styl: RegExp; - }; - replace: { - /** - * @example: - * '@import "{{filePath}}"' - */ - css: string; - /** - * @example: - * '@import "{{filePath}}"' - */ - styl: string; - }; - }; - - yaml: { - /** - * @example: - * /(([ \t]*)#\s*bower:*(\S*))(\n|\r|.)*?(#\s*endbower)/gi - */ - block: RegExp; - - detect: { - /** - * @example: - * /-\s(.+js)/gi - */ - js: RegExp; - /** - * @example: - * /-\s(.+css)/gi - */ - css: RegExp; - }; - - replace: { - /** - * @example: - * '- {{filePath}}' - */ - js: string; - /** - * @example: - * '- {{filePath}}' - */ - css: string; - }; - }; - } - - -export = Wiredep; -} \ No newline at end of file +// Type definitions for Wiredep v3.0.x +// Project: https://github.com/taptapship/wiredep +// Definitions by: Abraão Alves +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module 'wiredep' { + + interface PathFiles{ + [type: string]: string[]; + } + + /** + * @return {PathFiles} paths to your files by extension + * @example: + * { + * js: [ + * 'paths/to/your/js/files.js', + * 'in/their/order/of/dependency.js' + * ], + * css: [ + * 'paths/to/your/css/files.css' + * ], + * // etc. + * } + */ + function Wiredep(config: WiredepParams): PathFiles; + + module Wiredep { + export function stream(config: WiredepParams): NodeJS.ReadWriteStream; + } + + + interface WiredepParams { + src?: string | string[]; + /** + * the directory of your Bower packages. + * Default: '.bowerrc'.directory || bower_components + */ + directory?: string; + /** + * your bower.json file contents. + * Default: require('./bower.json') + */ + bowerJson?: string; + + + // ----- Advanced Configuration ----- + // All of the below settings are for advanced configuration, to + // give your project support for additional file types and more + // control. + // + // Out of the box, wiredep will handle HTML files just fine for + // JavaScript and CSS injection. + + /** + * path to where we are pretending to be + */ + cwd?: string; + /** + * Default: true + */ + dependencies?: boolean; + /** + * Default: false + */ + devDependencies?: boolean; + /** + * Default: false + */ + includeSelf?: boolean; + /** + * @example: + * [ /jquery/, 'bower_components/modernizr/modernizr.js' ] + */ + exclude?: Array; + + /** + * string or regexp to ignore from the injected filepath + * @example: + * [ /jquery/, 'bower_components/modernizr/modernizr.js' ] + */ + ignorePath?: string | RegExp; + + /** + * This inline object offers another way to define your overrides if + * modifying your project's `bower.json` isn't an option. + */ + overrides?: Object; + + /** + * If not overridden, an error will throw + * + * err.code can be: + * - "PKG_NOT_INSTALLED" (a Bower package was not found) + * - "BOWER_COMPONENTS_MISSING" (cannot find the `bower_components` directory) + */ + onError?: (err: Error) => void; + + /** + * @param {string} filePath name of file that was updated + */ + onFileUpdated?: (filePath: string) => void; + + /** + * @param {FileObject} fileObject + */ + onPathInjected?: (fileObject: FileObject) => void; + + /** + * @param {string} pkg name of bower package without main + */ + onMainNotFound?: (pkg: string) => void; + + fileTypes? : FileTypes; + } + + interface FileObject { + /** + * type of wiredep block ('js', 'css', etc) + */ + block: string; + /** + * name of file that was updated + */ + file: string; + /** + * path to file that was injected + */ + path: string + } + + interface FileTypes { + fileExtension: { + /** + * match the beginning-to-end of a bower block in this type of file + */ + block: RegExp; + detect: { + /** + * match the way this type of file is included + */ + typeOfBowerFile: RegExp; + }; + replace: { + /** + * + */ + typeOfBowerFile: string; + /** + * @exemple: + * return '' + */ + anotherTypeOfBowerFile: (filePath: string) => string; + } + }; + + // defaults: + html: { + /** + * @example: + * /(([ \t]*))(\n|\r|.)*?()/gi + */ + block: RegExp; + + detect: { + /** + * @example: + * /' + */ + js: string; + /** + * @example: + * '' + */ + css: string; + }; + }; + + jade: { + /** + * @example: + * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi + */ + block: RegExp; + detect: { + /** + * @example: + * /script\(.*src=['"]([^'"]+)/gi + */ + js: RegExp; + /** + * @example: + * /link\(.*href=['"]([^'"]+)/gi + */ + css: RegExp; + }; + + replace: { + /** + * @example: + * 'script(src=\'{{filePath}}\')' + */ + js: string; + /** + * @example: + * 'link(rel=\'stylesheet\', href=\'{{filePath}}\')' + */ + css: string; + } + }; + + less: { + /** + * @example: + * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi + */ + block: RegExp; + detect: { + /** + * @example: + * /@import\s['"](.+css)['"]/gi + */ + css: RegExp; + /** + * @example: + * /@import\s['"](.+less)['"]/gi + */ + less: RegExp + }; + + replace: { + /** + * @example: + * '@import "{{filePath}}";' + */ + css: string; + /** + * @example: + * '@import "{{filePath}}";' + */ + less: string; + }; + }; + + scss: { + /** + * @example: + * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi + */ + block: RegExp; + detect: { + /** + * @example: + * /@import\s['"](.+css)['"]/gi + */ + css: RegExp; + /** + * @example: + * /@import\s['"](.+sass)['"]/gi + */ + sass: RegExp; + /** + * @example: + * /@import\s['"](.+scss)['"]/gi + */ + scss: RegExp; + }, + replace: { + /** + * @example: + * '@import "{{filePath}}";' + */ + css: string; + /** + * @example: + * '@import "{{filePath}}";' + */ + sass: string; + /** + * @example: + * '@import "{{filePath}}";' + */ + scss: string; + } + }; + + styl: { + /** + * @example: + * /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi + */ + block: RegExp; + + detect: { + /** + * @example: + * /@import\s['"](.+css)['"]/gi + */ + css: RegExp; + /** + * @example: + * /@import\s['"](.+styl)['"]/gi + */ + styl: RegExp; + }; + replace: { + /** + * @example: + * '@import "{{filePath}}"' + */ + css: string; + /** + * @example: + * '@import "{{filePath}}"' + */ + styl: string; + }; + }; + + yaml: { + /** + * @example: + * /(([ \t]*)#\s*bower:*(\S*))(\n|\r|.)*?(#\s*endbower)/gi + */ + block: RegExp; + + detect: { + /** + * @example: + * /-\s(.+js)/gi + */ + js: RegExp; + /** + * @example: + * /-\s(.+css)/gi + */ + css: RegExp; + }; + + replace: { + /** + * @example: + * '- {{filePath}}' + */ + js: string; + /** + * @example: + * '- {{filePath}}' + */ + css: string; + }; + }; + } + + +export = Wiredep; +} diff --git a/wnumb/wnumb.d.ts b/wnumb/wnumb.d.ts index d3645768c8..4aad29b3a8 100644 --- a/wnumb/wnumb.d.ts +++ b/wnumb/wnumb.d.ts @@ -10,7 +10,7 @@ interface wNumbOptions { */ decimals?: number; /** - * The decimal separator. + * The decimal separator. * Defaults to '.' if thousand isn't already set to '.'. */ mark?: string; @@ -35,7 +35,7 @@ interface wNumbOptions { */ negativeBefore?: string; /**This is a powerful option to manually modify the slider output. - * + * *For example, to show a number in another currency: * function( value ){ * return value * 1.32; @@ -43,7 +43,7 @@ interface wNumbOptions { */ encoder?: (value: number) => number; /** - * Reverse the operations set in encoder. + * Reverse the operations set in encoder. * Use this option to undo modifications made while encoding the value. * function( value ){ * return value / 1.32; @@ -59,22 +59,22 @@ interface wNumbOptions { * Applied before all other formatting options are applied. */ undo?: (value: number) => number; -} +} interface wNumb { /** - * Create a wNumb - * + * Create a wNumb + * * @param options - the options */ (options?: wNumbOptions): wNumbInstance; } interface wNumbInstance { - - - + + + /** * format to string */ @@ -83,4 +83,4 @@ interface wNumbInstance { * get number from formatted string */ from(val: string): number; -} \ No newline at end of file +} diff --git a/wordcloud/wordcloud.d.ts b/wordcloud/wordcloud.d.ts index 61c7003a45..4b3e8b6697 100644 --- a/wordcloud/wordcloud.d.ts +++ b/wordcloud/wordcloud.d.ts @@ -8,21 +8,21 @@ declare function WordCloud(elements: HTMLElement | HTMLElement[], options: WordC declare namespace WordCloud { var isSupported: boolean; var miniumFontSize: number; - + interface Options { - /** - * List of words/text to paint on the canvas in a 2-d array, in the form of [word, size], - * e.g. [['foo', 12] , ['bar', 6]]. + /** + * List of words/text to paint on the canvas in a 2-d array, in the form of [word, size], + * e.g. [['foo', 12] , ['bar', 6]]. */ list?: Array | any[]; /** font to use. */ fontFamily?: string; /** font weight to use, e.g. normal, bold or 600 */ fontWeight?: string | number; - /** - * color of the text, can be any CSS color, or a callback(word, weight, fontSize, distance, theta) - * specifies different color for each item in the list. You may also specify colors with built-in - * keywords: random-dark and random-light. + /** + * color of the text, can be any CSS color, or a callback(word, weight, fontSize, distance, theta) + * specifies different color for each item in the list. You may also specify colors with built-in + * keywords: random-dark and random-light. */ color?: string | ((word: string, weight: string | number, fontSize: number, distance: number, theta: number) => string); /** minimum font size to draw on the canvas. */ @@ -33,73 +33,73 @@ declare namespace WordCloud { clearCanvas?: boolean; /** color of the background. */ backgroundColor?: string; - - /** - * size of the grid in pixels for marking the availability of the canvas — the larger the grid size, - * the bigger the gap between words. + + /** + * size of the grid in pixels for marking the availability of the canvas — the larger the grid size, + * the bigger the gap between words. */ gridSize?: number; /** origin of the “cloud” in [x, y]. */ origin?: [number, number]; - + /** visualize the grid by draw squares to mask the drawn areas. */ drawMask?: boolean; /** color of the mask squares. */ maskColor?: string; /** width of the gaps between mask squares. */ maskGapWidth?: number; - + /** Wait for x milliseconds before start drawn the next item using setTimeout. */ wait?: number; /** If the call with in the loop takes more than x milliseconds (and blocks the browser), abort immediately. */ abortThreshold?: number; /** callback function to call when abort. */ abort?: Function; - + /** If the word should rotate, the minimum rotation (in rad) the text should rotate. */ minRotation?: number; - /** - * If the word should rotate, the maximum rotation (in rad) the text should rotate. Set the two value equal - * to keep all text in one angle. + /** + * If the word should rotate, the maximum rotation (in rad) the text should rotate. Set the two value equal + * to keep all text in one angle. */ maxRotation?: number; - + /** Shuffle the points to draw so the result will be different each time for the same list and settings. */ shuffle?: boolean; /** Probability for the word to rotate. Set the number to 1 to always rotate. */ rotateRatio?: number; - - /** + + /** * The shape of the "cloud" to draw. Can be any polar equation represented as a callback function, or a * keyword present. Available presents are circle (default), cardioid (apple or heart shape curve, the most * known polar equation), diamond (alias of square), triangle-forward, triangle, (alias of triangle-upright, - * pentagon, and star. + * pentagon, and star. */ shape?: string | ((theta: number) => number); /** degree of "flatness" of the shape wordcloud2.js should draw. */ ellipticity?: number; - - /** + + /** * callback to call when the cursor enters or leaves a region occupied by a word. The callback will take * arugments callback(item, dimension, event), where event is the original mousemove event. This only will work - * on HTML5 canvas word clouds. + * on HTML5 canvas word clouds. */ hover?: EventCallback; - /** - * callback to call when the user clicks on a word. The callback will take arugments + /** + * callback to call when the user clicks on a word. The callback will take arugments * callback(item, dimension, event), where event is the original click event. This only will work on HTML5 - * canvas word clouds. + * canvas word clouds. */ click?: EventCallback; } - + interface Dimension { x: number; y: number; w: number; h: number; } - + type ListEntry = [string, number]; type EventCallback = (item: ListEntry, dimension: Dimension, event: MouseEvent) => void; -} \ No newline at end of file +} diff --git a/ws/ws.d.ts b/ws/ws.d.ts index 321e0ec966..a4adfaf5d8 100644 --- a/ws/ws.d.ts +++ b/ws/ws.d.ts @@ -76,7 +76,7 @@ declare module "ws" { on(event: 'pong', cb: (data: any, flags: {binary: boolean}) => void): WebSocket; on(event: 'open', cb: () => void): WebSocket; on(event: string, listener: () => void): WebSocket; - + addListener(event: 'error', cb: (err: Error) => void): WebSocket; addListener(event: 'close', cb: (code: number, message: string) => void): WebSocket; addListener(event: 'message', cb: (data: any, flags: {binary: boolean}) => void): WebSocket; @@ -119,7 +119,7 @@ declare module "ws" { on(event: 'headers', cb: (headers: string[]) => void): Server; on(event: 'connection', cb: (client: WebSocket) => void): Server; on(event: string, listener: () => void): Server; - + addListener(event: 'error', cb: (err: Error) => void): Server; addListener(event: 'headers', cb: (headers: string[]) => void): Server; addListener(event: 'connection', cb: (client: WebSocket) => void): Server; diff --git a/xpath/xpath.d.ts b/xpath/xpath.d.ts index c9a11f1888..f409ee578e 100644 --- a/xpath/xpath.d.ts +++ b/xpath/xpath.d.ts @@ -1,197 +1,197 @@ -// Type definitions for xpath v0.0.7 -// Project: https://github.com/goto100/xpath -// Definitions by: Andrew Bradley -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -// Some documentation prose is copied from the XPath documentation at https://developer.mozilla.org. - -declare module 'xpath' { - - // select1 can return any of: `Node`, `boolean`, `string`, `number`. - // select and selectWithResolver can return any of the above return types or `Array`. - // For this reason, their return types are `any`. - - interface SelectFn { - /** - * Evaluate an XPath expression against a DOM node. Returns the result as one of the following: - * * Array - * * Node - * * boolean - * * number - * * string - * @param xpathText - * @param contextNode - * @param single If true and the evaluation result is one or more Nodes, will return only the first Node instead of an Array - */ - (xpathText: string, contextNode: Node, single?: boolean): any; - } - - var select: SelectFn; - - /** - * Evaluate an xpath expression against a DOM node, returning the first result only. - * Equivalent to `select(xpathText, contextNode, true)` - * @param xpathText - * @param contextNode - */ - function select1(xpathText: string, contextNode: Node): any; - - /** - * Evaluate an XPath expression against a DOM node using a given namespace resolver. Returns the result as one of the following: - * * Array - * * Node - * * boolean - * * number - * * string - * @param xpathText - * @param contextNode - * @param resolver - * @param single If true and the evaluation result is one or more Nodes, will return only the first Node instead of an Array - */ - function selectWithResolver(xpathText: string, contextNode: Node, resolver: XPathNSResolver, single?: boolean): any; - - /** - * Evaluate an xpath expression against a DOM. - * @param xpathText xpath expression as a string. - * @param contextNode xpath expression is evaluated relative to this DOM node. - * @param resolver XML namespace resolver - * @param resultType - * @param result If non-null, xpath *may* reuse this XPathResult object instead of creating a new one. However, it is not required to do so. - * @return XPathResult object containing the result of the expression. - */ - function evaluate(xpathText: string, contextNode: Node, resolver: XPathNSResolver, resultType: number, result?: XPathResult): XPathResult; - - /** - * Creates a `select` function that uses the given namespace prefix to URI mappings when evaluating queries. - * @param namespaceMappings an object mapping namespace prefixes to namespace URIs. Each key is a prefix; each value is a URI. - * @return a function with the same signature as `xpath.select` - */ - function useNamespaces(namespaceMappings: NamespaceMap): typeof select; - interface NamespaceMap { - [namespacePrefix: string]: string; - } - - /** - * Compile an XPath expression into an XPathExpression which can be (repeatedly) evaluated against a DOM. - * @param xpathText XPath expression as a string - * @param namespaceURLMapper Namespace resolver - * @return compiled expression - */ - function createExpression(xpathText: string, namespaceURLMapper: XPathNSResolver): XPathExpression; - - /** - * Create an XPathNSResolver that resolves based on the information available in the context of a DOM node. - * @param node - */ - function createNSResolver(node: Node): XPathNSResolver; - - /** - * Result of evaluating an XPathExpression. - */ - class XPathResult { - /** - * A result set containing whatever type naturally results from evaluation of the expression. Note that if the result is a node-set then UNORDERED_NODE_ITERATOR_TYPE is always the resulting type. - */ - static ANY_TYPE: number; - /** - * A result containing a single number. This is useful for example, in an XPath expression using the count() function. - */ - static NUMBER_TYPE: number; - /** - * A result containing a single string. - */ - static STRING_TYPE: number; - /** - * A result containing a single boolean value. This is useful for example, in an XPath expression using the not() function. - */ - static BOOLEAN_TYPE: number; - /** - * A result node-set containing all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document. - */ - static UNORDERED_NODE_ITERATOR_TYPE: number; - /** - * A result node-set containing all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document. - */ - static ORDERED_NODE_ITERATOR_TYPE: number; - /** - * A result node-set containing snapshots of all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document. - */ - static UNORDERED_NODE_SNAPSHOT_TYPE: number; - /** - * A result node-set containing snapshots of all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document. - */ - static ORDERED_NODE_SNAPSHOT_TYPE: number; - /** - * A result node-set containing any single node that matches the expression. The node is not necessarily the first node in the document that matches the expression. - */ - static ANY_UNORDERED_NODE_TYPE: number; - /** - * A result node-set containing the first node in the document that matches the expression. - */ - static FIRST_ORDERED_NODE_TYPE: number; - - /** - * Type of this result. It is one of the enumerated result types. - */ - resultType: number; - - /** - * Returns the next node in this result, if this result is one of the _ITERATOR_ result types. - */ - iterateNext(): Node; - - /** - * returns the result node for a given index, if this result is one of the _SNAPSHOT_ result types. - * @param index - */ - snapshotItem(index: number): Node; - - /** - * Number of nodes in this result, if this result is one of the _SNAPSHOT_ result types. - */ - snapshotLength: number; - - /** - * Value of this result, if it is a BOOLEAN_TYPE result. - */ - booleanValue: boolean; - /** - * Value of this result, if it is a NUMBER_TYPE result. - */ - numberValue: number; - /** - * Value of this result, if it is a STRING_TYPE result. - */ - stringValue: string; - - /** - * Value of this result, if it is a FIRST_ORDERED_NODE_TYPE result. - */ - singleNodeValue: Node; - } - - /** - * A compiled XPath expression, ready to be (repeatedly) evaluated against a DOM node. - */ - interface XPathExpression { - /** - * evaluate this expression against a DOM node. - * @param contextNode - * @param resultType - * @param result - */ - evaluate(contextNode: Node, resultType: number, result?: XPathResult): XPathResult; - } - - /** - * Object that can resolve XML namespace prefixes to namespace URIs. - */ - interface XPathNSResolver { - /** - * Given an XML namespace prefix, returns the corresponding XML namespace URI. - * @param prefix XML namespace prefix - * @return XML namespace URI - */ - lookupNamespaceURI(prefix: string): string; - } -} +// Type definitions for xpath v0.0.7 +// Project: https://github.com/goto100/xpath +// Definitions by: Andrew Bradley +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +// Some documentation prose is copied from the XPath documentation at https://developer.mozilla.org. + +declare module 'xpath' { + + // select1 can return any of: `Node`, `boolean`, `string`, `number`. + // select and selectWithResolver can return any of the above return types or `Array`. + // For this reason, their return types are `any`. + + interface SelectFn { + /** + * Evaluate an XPath expression against a DOM node. Returns the result as one of the following: + * * Array + * * Node + * * boolean + * * number + * * string + * @param xpathText + * @param contextNode + * @param single If true and the evaluation result is one or more Nodes, will return only the first Node instead of an Array + */ + (xpathText: string, contextNode: Node, single?: boolean): any; + } + + var select: SelectFn; + + /** + * Evaluate an xpath expression against a DOM node, returning the first result only. + * Equivalent to `select(xpathText, contextNode, true)` + * @param xpathText + * @param contextNode + */ + function select1(xpathText: string, contextNode: Node): any; + + /** + * Evaluate an XPath expression against a DOM node using a given namespace resolver. Returns the result as one of the following: + * * Array + * * Node + * * boolean + * * number + * * string + * @param xpathText + * @param contextNode + * @param resolver + * @param single If true and the evaluation result is one or more Nodes, will return only the first Node instead of an Array + */ + function selectWithResolver(xpathText: string, contextNode: Node, resolver: XPathNSResolver, single?: boolean): any; + + /** + * Evaluate an xpath expression against a DOM. + * @param xpathText xpath expression as a string. + * @param contextNode xpath expression is evaluated relative to this DOM node. + * @param resolver XML namespace resolver + * @param resultType + * @param result If non-null, xpath *may* reuse this XPathResult object instead of creating a new one. However, it is not required to do so. + * @return XPathResult object containing the result of the expression. + */ + function evaluate(xpathText: string, contextNode: Node, resolver: XPathNSResolver, resultType: number, result?: XPathResult): XPathResult; + + /** + * Creates a `select` function that uses the given namespace prefix to URI mappings when evaluating queries. + * @param namespaceMappings an object mapping namespace prefixes to namespace URIs. Each key is a prefix; each value is a URI. + * @return a function with the same signature as `xpath.select` + */ + function useNamespaces(namespaceMappings: NamespaceMap): typeof select; + interface NamespaceMap { + [namespacePrefix: string]: string; + } + + /** + * Compile an XPath expression into an XPathExpression which can be (repeatedly) evaluated against a DOM. + * @param xpathText XPath expression as a string + * @param namespaceURLMapper Namespace resolver + * @return compiled expression + */ + function createExpression(xpathText: string, namespaceURLMapper: XPathNSResolver): XPathExpression; + + /** + * Create an XPathNSResolver that resolves based on the information available in the context of a DOM node. + * @param node + */ + function createNSResolver(node: Node): XPathNSResolver; + + /** + * Result of evaluating an XPathExpression. + */ + class XPathResult { + /** + * A result set containing whatever type naturally results from evaluation of the expression. Note that if the result is a node-set then UNORDERED_NODE_ITERATOR_TYPE is always the resulting type. + */ + static ANY_TYPE: number; + /** + * A result containing a single number. This is useful for example, in an XPath expression using the count() function. + */ + static NUMBER_TYPE: number; + /** + * A result containing a single string. + */ + static STRING_TYPE: number; + /** + * A result containing a single boolean value. This is useful for example, in an XPath expression using the not() function. + */ + static BOOLEAN_TYPE: number; + /** + * A result node-set containing all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document. + */ + static UNORDERED_NODE_ITERATOR_TYPE: number; + /** + * A result node-set containing all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document. + */ + static ORDERED_NODE_ITERATOR_TYPE: number; + /** + * A result node-set containing snapshots of all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document. + */ + static UNORDERED_NODE_SNAPSHOT_TYPE: number; + /** + * A result node-set containing snapshots of all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document. + */ + static ORDERED_NODE_SNAPSHOT_TYPE: number; + /** + * A result node-set containing any single node that matches the expression. The node is not necessarily the first node in the document that matches the expression. + */ + static ANY_UNORDERED_NODE_TYPE: number; + /** + * A result node-set containing the first node in the document that matches the expression. + */ + static FIRST_ORDERED_NODE_TYPE: number; + + /** + * Type of this result. It is one of the enumerated result types. + */ + resultType: number; + + /** + * Returns the next node in this result, if this result is one of the _ITERATOR_ result types. + */ + iterateNext(): Node; + + /** + * returns the result node for a given index, if this result is one of the _SNAPSHOT_ result types. + * @param index + */ + snapshotItem(index: number): Node; + + /** + * Number of nodes in this result, if this result is one of the _SNAPSHOT_ result types. + */ + snapshotLength: number; + + /** + * Value of this result, if it is a BOOLEAN_TYPE result. + */ + booleanValue: boolean; + /** + * Value of this result, if it is a NUMBER_TYPE result. + */ + numberValue: number; + /** + * Value of this result, if it is a STRING_TYPE result. + */ + stringValue: string; + + /** + * Value of this result, if it is a FIRST_ORDERED_NODE_TYPE result. + */ + singleNodeValue: Node; + } + + /** + * A compiled XPath expression, ready to be (repeatedly) evaluated against a DOM node. + */ + interface XPathExpression { + /** + * evaluate this expression against a DOM node. + * @param contextNode + * @param resultType + * @param result + */ + evaluate(contextNode: Node, resultType: number, result?: XPathResult): XPathResult; + } + + /** + * Object that can resolve XML namespace prefixes to namespace URIs. + */ + interface XPathNSResolver { + /** + * Given an XML namespace prefix, returns the corresponding XML namespace URI. + * @param prefix XML namespace prefix + * @return XML namespace URI + */ + lookupNamespaceURI(prefix: string): string; + } +} diff --git a/xrm/xrm-6.d.ts b/xrm/xrm-6.d.ts index 0177638034..09c5baa1f9 100644 --- a/xrm/xrm-6.d.ts +++ b/xrm/xrm-6.d.ts @@ -49,7 +49,7 @@ declare module Xrm * Gets current styling theme. * * @return The name of the current theme, as either "default", "Office12Blue", or "Office14Silver" - * + * * @remarks This function does not work with Dynamics CRM for tablets. */ getCurrentTheme(): string; @@ -58,7 +58,7 @@ declare module Xrm * Gets organization's LCID (language code). * * @return The organization language code. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/ms912047(WinEmbedded.10).aspx|Microsoft Locale ID Values} */ getOrgLcid(): number; @@ -67,7 +67,7 @@ declare module Xrm * Gets organization's unique name. * * @return The organization's unique name. - * + * * @remarks This value can be found on the Developer Resources page within Dynamics CRM */ getOrgUniqueName(): string; @@ -83,7 +83,7 @@ declare module Xrm * Gets user's unique identifier. * * @return The user's identifier in Guid format. - * + * * @remarks Example: "{B05EC7CE-5D51-DF11-97E0-00155DB232D0}" */ getUserId(): string; @@ -92,7 +92,7 @@ declare module Xrm * Gets user's LCID (language code). * * @return The user's language code. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/ms912047(WinEmbedded.10).aspx|Microsoft Locale ID Values} */ getUserLcid(): number; @@ -108,7 +108,7 @@ declare module Xrm * Gets all user security roles. * * @return An array of user role identifiers, in Guid format. - * + * * @remarks Example: ["cf4cc7ce-5d51-df11-97e0-00155db232d0"] */ getUserRoles(): string[]; @@ -119,7 +119,7 @@ declare module Xrm * @param {string} sPath Local pathname of the resource. * * @return A path string with the organization name. - * + * * @remarks Format: "/"+ OrgName + sPath */ prependOrgName( sPath: string ): string; @@ -247,7 +247,7 @@ declare module Xrm * @param {string} itemName The item name to get. * * @return The T matching the key itemName. - * + * * @see {@link Xrm.Page.Control.getName()} for Control-naming schemes. */ get( itemName: string ): T; @@ -270,7 +270,7 @@ declare module Xrm /** * The Xrm.Page API - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328255.aspx|Documentation} for details. */ export module Page @@ -329,7 +329,7 @@ declare module Xrm * Gets save-event arguments. * * @return The event arguments. - * + * * @remarks Returns null for all but the "save" event. */ getEventArgs(): SaveEventArguments; @@ -348,7 +348,7 @@ declare module Xrm * @param {string} key The key. * * @return The shared variable. - * + * * @remarks Used to pass values between handlers of an event. */ getSharedVariable( key: string ): T; @@ -359,7 +359,7 @@ declare module Xrm * @tparam T Generic type parameter. * @param {string} key The key. * @param {T} value The value. - * + * * @remarks Used to pass values between handlers of an event. */ setSharedVariable( key: string, value: T ): void; @@ -508,7 +508,7 @@ declare module Xrm * Gets attribute type. * * @return The attribute's type name. - * + * * @remarks Values returned are: boolean * datetime * decimal @@ -526,9 +526,9 @@ declare module Xrm * Gets the attribute format. * * @return The format of the attribute. - * + * * @see {@link getAttributeType()} - * + * * @remarks Values returned are: date (datetime) * datetime (datetime) * duration (integer) @@ -576,7 +576,7 @@ declare module Xrm * Gets current submit mode for the attribute. * * @return The submit mode, as either "always", "never", or "dirty" - * + * * @remarks The default value is "dirty" */ getSubmitMode(): string; @@ -648,7 +648,7 @@ declare module Xrm * Sets the submit mode. * * @param {string} submitMode The submit mode, as either "always", "never", or "dirty". - * + * * @remarks The default value is "dirty" */ setSubmitMode( submitMode: string ): void; @@ -693,7 +693,7 @@ declare module Xrm * Sets the value. * * @param {number} value The value. - * + * * @remarks Attributes on Quick Create Forms will not save values set with this method. */ setValue( value: number ): void; @@ -710,7 +710,7 @@ declare module Xrm * Gets maximum length allowed. * * @return The maximum length allowed. - * + * * @remarks The email form's "Description" attribute does not have the this method. */ getMaxLength(): number; @@ -889,7 +889,7 @@ declare module Xrm * Sets the value. * * @param {LookupValue[]} value The value. - * + * * @remarks Attributes on Quick Create Forms will not save values set with this method. */ setValue( value: LookupValue[] ): void; @@ -951,7 +951,7 @@ declare module Xrm * Gets the record's primary attribute value. * * @return The primary attribute value. - * + * * @remarks The value for this attribute is used when links to the record are displayed. */ getPrimaryAttributeValue(): string; @@ -1007,7 +1007,7 @@ declare module Xrm * @remarks Values returned are: 1 Save * 2 Save and Close * 59 Save and New - * 70 AutoSave (Where enabled; can be used with an OnSave handler + * 70 AutoSave (Where enabled; can be used with an OnSave handler * to conditionally disable auto-saving) * 58 Save as Completed (Activities) * 5 Deactivate @@ -1073,7 +1073,7 @@ declare module Xrm * @param {string} uniqueId (Optional) Unique identifier. * * @return true if it succeeds, false if it fails. - * + * * @remarks If the uniqueId parameter is not used, the current notification shown will be removed. */ clearNotification( uniqueId?: string ): boolean; @@ -1124,7 +1124,7 @@ declare module Xrm * @return The parent Section. */ getParent(): Section; - + /** * Sets the state of the control to either enabled, or disabled. * @@ -1209,7 +1209,7 @@ declare module Xrm /** * Adds an additional custom filter to the lookup, with the "AND" filter operator. * Can only be used within a "pre search" event handler - * + * * @sa addPreSearch * * @param {string} filter Specifies the filter, as a serialized FetchXML @@ -1233,7 +1233,7 @@ declare module Xrm * @param {string} fetchXml The FetchXML query for the view's contents, serialized as a string. * @param {string} layoutXml The Layout XML, serialized as a string. * @param {boolean} isDefault true, to treat this view as default. - * + * * @remarks Cannot be used on "Owner" Lookup controls. * The viewId is never saved to CRM, but must be unique across available views. Generating * a new value can be accomplished with a {@link http://www.guidgen.com/|Guid generator}. @@ -1253,7 +1253,7 @@ declare module Xrm * Gets the unique identifier of the default view. * * @return The default view, in Guid format. - * + * * @remarks Example: "{00000000-0000-0000-0000-000000000000}" */ getDefaultView(): string; @@ -1269,7 +1269,7 @@ declare module Xrm * Sets the Lookup's default view. * * @param {string} viewGuid Unique identifier for the view. - * + * * @remarks Example viewGuid value: "{00000000-0000-0000-0000-000000000000}" */ setDefaultView( viewGuid: string ): void; @@ -1287,7 +1287,7 @@ declare module Xrm * * @param {OptionSetValue} option The option. * @param {number} index (Optional) zero-based index of the option. - * + * * @remarks This method does not check that the values within the options you add are valid. * If index is not provided, the new option will be added to the end of the list. */ @@ -1322,7 +1322,7 @@ declare module Xrm { /** * Refreshes the sub grid. - * + * * @remarks Not available during the "on load" event of the form. */ refresh(): void; @@ -1342,7 +1342,7 @@ declare module Xrm * Gets the DOM element containing the control. * * @return The container object. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getObject(): HTMLIFrameElement; @@ -1351,7 +1351,7 @@ declare module Xrm * Gets the URL value of the control. * * @return The source URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getSrc(): string; @@ -1360,7 +1360,7 @@ declare module Xrm * Sets the URL value of the control. * * @param {string} src The source URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ setSrc( src: string ): void; @@ -1377,7 +1377,7 @@ declare module Xrm * Gets initial URL defined for the Iframe. * * @return The initial URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getInitialUrl(): string; @@ -1394,7 +1394,7 @@ declare module Xrm * Gets the query string value passed to Silverlight. * * @return The data. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getData(): string; @@ -1403,7 +1403,7 @@ declare module Xrm * Sets the query string value passed to Silverlight. * * @param {string} data The data. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ setData( data: string ): void; @@ -1412,7 +1412,7 @@ declare module Xrm * Gets the DOM element containing the control. * * @return The container object. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getObject(): HTMLObjectElement; @@ -1513,14 +1513,14 @@ declare module Xrm /** * The form selector API. - * + * * @remarks This API does not exist with Microsoft Dynamics CRM for tablets. */ formSelector: FormSelector; /** * The navigation API. - * + * * @remarks This API does not exist with Microsoft Dynamics CRM for tablets. */ navigation: Navigation; @@ -1550,10 +1550,10 @@ declare module Xrm * @return The form type. * * @remarks Values returned are: 0 Undefined - * 1 Create - * 2 Update - * 3 Read Only - * 4 Disabled + * 1 Create + * 2 Update + * 3 Read Only + * 4 Disabled * 6 Bulk Edit * Deprecated values are 5 (Quick Create), and 11 (Read Optimized) */ @@ -1563,7 +1563,7 @@ declare module Xrm * Gets view port height. * * @return The view port height, in pixels. - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ getViewPortHeight(): number; @@ -1572,14 +1572,14 @@ declare module Xrm * Gets view port width. * * @return The view port width, in pixels. - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ getViewPortWidth(): number; /** * Re-evaluates the ribbon's configured EnableRules - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ refreshRibbon(): void; @@ -1690,7 +1690,7 @@ declare module Xrm * Gets current form. * * @return The current item. - * + * * @remarks When only one form is available this method will return null. */ getCurrentItem(): FormItem; @@ -1807,7 +1807,7 @@ declare module Xrm /** * An definition module for URL-based, CRM component parameters. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export module Url @@ -1823,11 +1823,11 @@ declare module Xrm /** * Interface for defining parameters on a request to open a form with main.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. - * + * * @remarks A member for "pagetype" is not provided. The value "entityrecord" is required in * the URL, for forms. Example: "pagetype=entityrecord" */ @@ -1842,7 +1842,7 @@ declare module Xrm * Additional parameters can be provided to the request. This can only be used to provide * default field values for the form, or pass data to custom parameters that have been * customized for the form. See example below for setting the selected form. - * + * * @remarks Example: encodeURIComponent( "formid={8c9f3e6f-7839-e211-831e-00155db7d98f}" ); */ extraqs?: string; @@ -1866,9 +1866,9 @@ declare module Xrm /** * Interface for defining parameters on a request to open a view with main.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. * * @remarks A member for "pagetype" is not provided. The value "entitylist" is required in @@ -1914,9 +1914,9 @@ declare module Xrm /** * Interface for defining parameters of a request to open a dialog with rundialog.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export interface DialogOpenParameters @@ -1942,7 +1942,7 @@ declare module Xrm * Interface for defining parameters of a request to open a report with viewer.apsx (as with * window.open). Useful for parsing out the keys and values into a string of the format: * "&key=value" - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export interface ReportOpenParameters @@ -1950,7 +1950,7 @@ declare module Xrm /** * The action to perform, as either "run" or "filter". * - * @remarks "run" Executes the report with default filters. + * @remarks "run" Executes the report with default filters. * "filter" Presents the user with the filter editor, and a "Run Report" button. */ action: string; @@ -1970,7 +1970,7 @@ declare module Xrm /** * The Xrm.Utility API - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328255.aspx|Documentation} for details. */ export module Utility @@ -2056,7 +2056,7 @@ declare module Xrm * @param {number} height (Optional) The height of the new window. * * @return A Window reference, containing the opened Web Resource. - * + * * @remarks This function will not work with Microsoft Dynamics CRM for tablets. * Valid WebResource URL Parameters: typename * type @@ -2073,7 +2073,7 @@ declare module Xrm /** * Gets the xRM application context, for HTML web resources, included by ClientGlobalContext.js.aspx * @returns {Xrm.Context} The application context for the user's current session. - * @remarks The ClientGlobalContext.js.aspx page will include some global event handlers. These event handlers will + * @remarks The ClientGlobalContext.js.aspx page will include some global event handlers. These event handlers will * cancel the onselectstart, contextmenu, and ondragstart events. */ declare function GetGlobalContext(): Xrm.Context; diff --git a/xrm/xrm-7.0.d.ts b/xrm/xrm-7.0.d.ts index c098759cbd..733a25fc7d 100644 --- a/xrm/xrm-7.0.d.ts +++ b/xrm/xrm-7.0.d.ts @@ -49,7 +49,7 @@ declare module Xrm * Gets current styling theme. * * @return The name of the current theme, as either "default", "Office12Blue", or "Office14Silver" - * + * * @remarks This function does not work with Dynamics CRM for tablets. */ getCurrentTheme(): string; @@ -65,7 +65,7 @@ declare module Xrm * Gets organization's LCID (language code). * * @return The organization language code. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/ms912047(WinEmbedded.10).aspx|Microsoft Locale ID Values} */ getOrgLcid(): number; @@ -74,7 +74,7 @@ declare module Xrm * Gets organization's unique name. * * @return The organization's unique name. - * + * * @remarks This value can be found on the Developer Resources page within Dynamics CRM */ getOrgUniqueName(): string; @@ -90,7 +90,7 @@ declare module Xrm * Gets user's unique identifier. * * @return The user's identifier in Guid format. - * + * * @remarks Example: "{B05EC7CE-5D51-DF11-97E0-00155DB232D0}" */ getUserId(): string; @@ -99,7 +99,7 @@ declare module Xrm * Gets user's LCID (language code). * * @return The user's language code. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/ms912047(WinEmbedded.10).aspx|Microsoft Locale ID Values} */ getUserLcid(): number; @@ -115,7 +115,7 @@ declare module Xrm * Gets all user security roles. * * @return An array of user role identifiers, in Guid format. - * + * * @remarks Example: ["cf4cc7ce-5d51-df11-97e0-00155db232d0"] */ getUserRoles(): string[]; @@ -126,7 +126,7 @@ declare module Xrm * @param {string} sPath Local pathname of the resource. * * @return A path string with the organization name. - * + * * @remarks Format: "/"+ OrgName + sPath */ prependOrgName( sPath: string ): string; @@ -242,7 +242,7 @@ declare module Xrm * @param {string} itemName The item name to get. * * @return The T matching the key itemName. - * + * * @see {@link Xrm.Page.Control.getName()} for Control-naming schemes. */ get( itemName: string ): T; @@ -265,7 +265,7 @@ declare module Xrm /** * The Xrm.Page API - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328255.aspx|Documentation} for details. */ export module Page @@ -321,7 +321,7 @@ declare module Xrm * Returns the unique identifier of the process. * * @return The identifier for this process, in GUID format. - * + * * @remarks Example: "{825CB223-A651-DF11-AA8B-00155DBA3804}". */ getId(): string; @@ -372,7 +372,7 @@ declare module Xrm * Returns the unique identifier of the stage. * * @return The identifier of the Stage, in GUID format. - * + * * @remarks Example: "{825CB223-A651-DF11-AA8B-00155DBA3804}". */ getId(): string; @@ -454,7 +454,7 @@ declare module Xrm * Gets save-event arguments. * * @return The event arguments. - * + * * @remarks Returns null for all but the "save" event. */ getEventArgs(): SaveEventArguments; @@ -473,7 +473,7 @@ declare module Xrm * @param {string} key The key. * * @return The shared variable. - * + * * @remarks Used to pass values between handlers of an event. */ getSharedVariable( key: string ): T; @@ -484,7 +484,7 @@ declare module Xrm * @tparam T Generic type parameter. * @param {string} key The key. * @param {T} value The value. - * + * * @remarks Used to pass values between handlers of an event. */ setSharedVariable( key: string, value: T ): void; @@ -628,7 +628,7 @@ declare module Xrm * Gets attribute type. * * @return The attribute's type name. - * + * * @remarks Values returned are: boolean * datetime * decimal @@ -646,9 +646,9 @@ declare module Xrm * Gets the attribute format. * * @return The format of the attribute. - * + * * @see {@link getAttributeType()} - * + * * @remarks Values returned are: date (datetime) * datetime (datetime) * duration (integer) @@ -696,7 +696,7 @@ declare module Xrm * Gets current submit mode for the attribute. * * @return The submit mode, as either "always", "never", or "dirty" - * + * * @remarks The default value is "dirty" */ getSubmitMode(): string; @@ -768,7 +768,7 @@ declare module Xrm * Sets the submit mode. * * @param {string} submitMode The submit mode, as either "always", "never", or "dirty". - * + * * @remarks The default value is "dirty" */ setSubmitMode( submitMode: string ): void; @@ -818,7 +818,7 @@ declare module Xrm * Sets the value. * * @param {number} value The value. - * + * * @remarks Attributes on Quick Create Forms will not save values set with this method. */ setValue( value: number ): void; @@ -835,7 +835,7 @@ declare module Xrm * Gets maximum length allowed. * * @return The maximum length allowed. - * + * * @remarks The email form's "Description" attribute does not have the this method. */ getMaxLength(): number; @@ -1014,7 +1014,7 @@ declare module Xrm * Sets the value. * * @param {LookupValue[]} value The value. - * + * * @remarks Attributes on Quick Create Forms will not save values set with this method. */ setValue( value: LookupValue[] ): void; @@ -1071,7 +1071,7 @@ declare module Xrm * Gets the record's primary attribute value. * * @return The primary attribute value. - * + * * @remarks The value for this attribute is used when links to the record are displayed. */ getPrimaryAttributeValue(): string; @@ -1132,7 +1132,7 @@ declare module Xrm * @remarks Values returned are: 1 Save * 2 Save and Close * 59 Save and New - * 70 AutoSave (Where enabled; can be used with an OnSave handler + * 70 AutoSave (Where enabled; can be used with an OnSave handler * to conditionally disable auto-saving) * 58 Save as Completed (Activities) * 5 Deactivate @@ -1220,7 +1220,7 @@ declare module Xrm * Id of the business process flow and the value of * the property is the name of the business process * flow. - * + * * The enabled processes are filtered according to * the user’s privileges. The list of enabled * processes is the same ones a user can see in the @@ -1323,7 +1323,7 @@ declare module Xrm * @param {string} uniqueId (Optional) Unique identifier. * * @return true if it succeeds, false if it fails. - * + * * @remarks If the uniqueId parameter is not used, the current notification shown will be removed. */ clearNotification( uniqueId?: string ): boolean; @@ -1374,7 +1374,7 @@ declare module Xrm * @return The parent Section. */ getParent(): Section; - + /** * Sets the state of the control to either enabled, or disabled. * @@ -1459,7 +1459,7 @@ declare module Xrm /** * Adds an additional custom filter to the lookup, with the "AND" filter operator. * Can only be used within a "pre search" event handler - * + * * @sa addPreSearch * * @param {string} filter Specifies the filter, as a serialized FetchXML @@ -1483,7 +1483,7 @@ declare module Xrm * @param {string} fetchXml The FetchXML query for the view's contents, serialized as a string. * @param {string} layoutXml The Layout XML, serialized as a string. * @param {boolean} isDefault true, to treat this view as default. - * + * * @remarks Cannot be used on "Owner" Lookup controls. * The viewId is never saved to CRM, but must be unique across available views. Generating * a new value can be accomplished with a {@link http://www.guidgen.com/|Guid generator}. @@ -1503,7 +1503,7 @@ declare module Xrm * Gets the unique identifier of the default view. * * @return The default view, in Guid format. - * + * * @remarks Example: "{00000000-0000-0000-0000-000000000000}" */ getDefaultView(): string; @@ -1519,7 +1519,7 @@ declare module Xrm * Sets the Lookup's default view. * * @param {string} viewGuid Unique identifier for the view. - * + * * @remarks Example viewGuid value: "{00000000-0000-0000-0000-000000000000}" */ setDefaultView( viewGuid: string ): void; @@ -1537,7 +1537,7 @@ declare module Xrm * * @param {OptionSetValue} option The option. * @param {number} index (Optional) zero-based index of the option. - * + * * @remarks This method does not check that the values within the options you add are valid. * If index is not provided, the new option will be added to the end of the list. */ @@ -1572,7 +1572,7 @@ declare module Xrm { /** * Refreshes the sub grid. - * + * * @remarks Not available during the "on load" event of the form. */ refresh(): void; @@ -1592,7 +1592,7 @@ declare module Xrm * Gets the DOM element containing the control. * * @return The container object. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getObject(): HTMLIFrameElement; @@ -1601,7 +1601,7 @@ declare module Xrm * Gets the URL value of the control. * * @return The source URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getSrc(): string; @@ -1610,7 +1610,7 @@ declare module Xrm * Sets the URL value of the control. * * @param {string} src The source URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ setSrc( src: string ): void; @@ -1627,7 +1627,7 @@ declare module Xrm * Gets initial URL defined for the Iframe. * * @return The initial URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getInitialUrl(): string; @@ -1644,7 +1644,7 @@ declare module Xrm * Gets the query string value passed to Silverlight. * * @return The data. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getData(): string; @@ -1653,7 +1653,7 @@ declare module Xrm * Sets the query string value passed to Silverlight. * * @param {string} data The data. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ setData( data: string ): void; @@ -1662,7 +1662,7 @@ declare module Xrm * Gets the DOM element containing the control. * * @return The container object. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getObject(): HTMLObjectElement; @@ -1810,10 +1810,10 @@ declare module Xrm * @return The form type. * * @remarks Values returned are: 0 Undefined - * 1 Create - * 2 Update - * 3 Read Only - * 4 Disabled + * 1 Create + * 2 Update + * 3 Read Only + * 4 Disabled * 6 Bulk Edit * Deprecated values are 5 (Quick Create), and 11 (Read Optimized) */ @@ -1823,7 +1823,7 @@ declare module Xrm * Gets view port height. * * @return The view port height, in pixels. - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ export function getViewPortHeight(): number; @@ -1832,14 +1832,14 @@ declare module Xrm * Gets view port width. * * @return The view port width, in pixels. - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ export function getViewPortWidth(): number; /** * Re-evaluates the ribbon's configured EnableRules - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ export function refreshRibbon(): void; @@ -1897,14 +1897,14 @@ declare module Xrm /** * The form selector API. - * + * * @remarks This API does not exist with Microsoft Dynamics CRM for tablets. */ export var formSelector: FormSelector; /** * The navigation API. - * + * * @remarks This API does not exist with Microsoft Dynamics CRM for tablets. */ export var navigation: Navigation; @@ -1976,7 +1976,7 @@ declare module Xrm * Gets current form. * * @return The current item. - * + * * @remarks When only one form is available this method will return null. */ getCurrentItem(): FormItem; @@ -2083,7 +2083,7 @@ declare module Xrm /** * An definition module for URL-based, CRM component parameters. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export module Url @@ -2099,11 +2099,11 @@ declare module Xrm /** * Interface for defining parameters on a request to open a form with main.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. - * + * * @remarks A member for "pagetype" is not provided. The value "entityrecord" is required in * the URL, for forms. Example: "pagetype=entityrecord" */ @@ -2118,7 +2118,7 @@ declare module Xrm * Additional parameters can be provided to the request. This can only be used to provide * default field values for the form, or pass data to custom parameters that have been * customized for the form. See example below for setting the selected form. - * + * * @remarks Example: encodeURIComponent( "formid={8c9f3e6f-7839-e211-831e-00155db7d98f}" ); */ extraqs?: string; @@ -2142,9 +2142,9 @@ declare module Xrm /** * Interface for defining parameters on a request to open a view with main.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. * * @remarks A member for "pagetype" is not provided. The value "entitylist" is required in @@ -2190,9 +2190,9 @@ declare module Xrm /** * Interface for defining parameters of a request to open a dialog with rundialog.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export interface DialogOpenParameters @@ -2218,7 +2218,7 @@ declare module Xrm * Interface for defining parameters of a request to open a report with viewer.apsx (as with * window.open). Useful for parsing out the keys and values into a string of the format: * "&key=value" - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export interface ReportOpenParameters @@ -2226,7 +2226,7 @@ declare module Xrm /** * The action to perform, as either "run" or "filter". * - * @remarks "run" Executes the report with default filters. + * @remarks "run" Executes the report with default filters. * "filter" Presents the user with the filter editor, and a "Run Report" button. */ action: string; @@ -2246,7 +2246,7 @@ declare module Xrm /** * The Xrm.Utility API - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328255.aspx|Documentation} for details. */ export module Utility @@ -2335,7 +2335,7 @@ declare module Xrm * @param {number} height (Optional) The height of the new window. * * @return A Window reference, containing the opened Web Resource. - * + * * @remarks This function will not work with Microsoft Dynamics CRM for tablets. * Valid WebResource URL Parameters: typename * type @@ -2352,7 +2352,7 @@ declare module Xrm /** * Gets the xRM application context, for HTML web resources, included by ClientGlobalContext.js.aspx * @returns {Xrm.Context} The application context for the user's current session. - * @remarks The ClientGlobalContext.js.aspx page will include some global event handlers. These event handlers will + * @remarks The ClientGlobalContext.js.aspx page will include some global event handlers. These event handlers will * cancel the onselectstart, contextmenu, and ondragstart events. */ declare function GetGlobalContext(): Xrm.Context; diff --git a/xrm/xrm.d.ts b/xrm/xrm.d.ts index b3848f1080..a2f7c515ba 100644 --- a/xrm/xrm.d.ts +++ b/xrm/xrm.d.ts @@ -49,7 +49,7 @@ declare module Xrm * Gets current styling theme. * * @return The name of the current theme, as either "default", "Office12Blue", or "Office14Silver" - * + * * @remarks This function does not work with Dynamics CRM for tablets. */ getCurrentTheme(): string; @@ -65,7 +65,7 @@ declare module Xrm * Gets organization's LCID (language code). * * @return The organization language code. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/ms912047(WinEmbedded.10).aspx|Microsoft Locale ID Values} */ getOrgLcid(): number; @@ -74,7 +74,7 @@ declare module Xrm * Gets organization's unique name. * * @return The organization's unique name. - * + * * @remarks This value can be found on the Developer Resources page within Dynamics CRM */ getOrgUniqueName(): string; @@ -97,7 +97,7 @@ declare module Xrm * Gets user's unique identifier. * * @return The user's identifier in Guid format. - * + * * @remarks Example: "{B05EC7CE-5D51-DF11-97E0-00155DB232D0}" */ getUserId(): string; @@ -106,7 +106,7 @@ declare module Xrm * Gets user's LCID (language code). * * @return The user's language code. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/ms912047(WinEmbedded.10).aspx|Microsoft Locale ID Values} */ getUserLcid(): number; @@ -122,7 +122,7 @@ declare module Xrm * Gets all user security roles. * * @return An array of user role identifiers, in Guid format. - * + * * @remarks Example: ["cf4cc7ce-5d51-df11-97e0-00155db232d0"] */ getUserRoles(): string[]; @@ -133,7 +133,7 @@ declare module Xrm * @param {string} sPath Local pathname of the resource. * * @return A path string with the organization name. - * + * * @remarks Format: "/"+ OrgName + sPath */ prependOrgName( sPath: string ): string; @@ -249,7 +249,7 @@ declare module Xrm * @param {string} itemName The item name to get. * * @return The T matching the key itemName. - * + * * @see {@link Xrm.Page.Control.getName()} for Control-naming schemes. */ get( itemName: string ): T; @@ -272,7 +272,7 @@ declare module Xrm /** * The Xrm.Page API - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328255.aspx|Documentation} for details. */ export module Page @@ -343,7 +343,7 @@ declare module Xrm * Returns the unique identifier of the process. * * @return The identifier for this process, in GUID format. - * + * * @remarks Example: "{825CB223-A651-DF11-AA8B-00155DBA3804}". */ getId(): string; @@ -394,7 +394,7 @@ declare module Xrm * Returns the unique identifier of the stage. * * @return The identifier of the Stage, in GUID format. - * + * * @remarks Example: "{825CB223-A651-DF11-AA8B-00155DBA3804}". */ getId(): string; @@ -476,7 +476,7 @@ declare module Xrm * Gets save-event arguments. * * @return The event arguments. - * + * * @remarks Returns null for all but the "save" event. */ getEventArgs(): SaveEventArguments; @@ -495,7 +495,7 @@ declare module Xrm * @param {string} key The key. * * @return The shared variable. - * + * * @remarks Used to pass values between handlers of an event. */ getSharedVariable( key: string ): T; @@ -506,7 +506,7 @@ declare module Xrm * @tparam T Generic type parameter. * @param {string} key The key. * @param {T} value The value. - * + * * @remarks Used to pass values between handlers of an event. */ setSharedVariable( key: string, value: T ): void; @@ -650,7 +650,7 @@ declare module Xrm * Gets attribute type. * * @return The attribute's type name. - * + * * @remarks Values returned are: boolean * datetime * decimal @@ -668,9 +668,9 @@ declare module Xrm * Gets the attribute format. * * @return The format of the attribute. - * + * * @see {@link getAttributeType()} - * + * * @remarks Values returned are: date (datetime) * datetime (datetime) * duration (integer) @@ -718,7 +718,7 @@ declare module Xrm * Gets current submit mode for the attribute. * * @return The submit mode, as either "always", "never", or "dirty" - * + * * @remarks The default value is "dirty" */ getSubmitMode(): string; @@ -790,7 +790,7 @@ declare module Xrm * Sets the submit mode. * * @param {string} submitMode The submit mode, as either "always", "never", or "dirty". - * + * * @remarks The default value is "dirty" */ setSubmitMode( submitMode: string ): void; @@ -840,7 +840,7 @@ declare module Xrm * Sets the value. * * @param {number} value The value. - * + * * @remarks Attributes on Quick Create Forms will not save values set with this method. */ setValue( value: number ): void; @@ -857,7 +857,7 @@ declare module Xrm * Gets maximum length allowed. * * @return The maximum length allowed. - * + * * @remarks The email form's "Description" attribute does not have the this method. */ getMaxLength(): number; @@ -1036,7 +1036,7 @@ declare module Xrm * Sets the value. * * @param {LookupValue[]} value The value. - * + * * @remarks Attributes on Quick Create Forms will not save values set with this method. */ setValue( value: LookupValue[] ): void; @@ -1093,7 +1093,7 @@ declare module Xrm * Gets the record's primary attribute value. * * @return The primary attribute value. - * + * * @remarks The value for this attribute is used when links to the record are displayed. */ getPrimaryAttributeValue(): string; @@ -1154,7 +1154,7 @@ declare module Xrm * @remarks Values returned are: 1 Save * 2 Save and Close * 59 Save and New - * 70 AutoSave (Where enabled; can be used with an OnSave handler + * 70 AutoSave (Where enabled; can be used with an OnSave handler * to conditionally disable auto-saving) * 58 Save as Completed (Activities) * 5 Deactivate @@ -1242,7 +1242,7 @@ declare module Xrm * Id of the business process flow and the value of * the property is the name of the business process * flow. - * + * * The enabled processes are filtered according to * the user’s privileges. The list of enabled * processes is the same ones a user can see in the @@ -1345,7 +1345,7 @@ declare module Xrm * @param {string} uniqueId (Optional) Unique identifier. * * @return true if it succeeds, false if it fails. - * + * * @remarks If the uniqueId parameter is not used, the current notification shown will be removed. */ clearNotification( uniqueId?: string ): boolean; @@ -1397,7 +1397,7 @@ declare module Xrm * @return The parent Section. */ getParent(): Section; - + /** * Sets the state of the control to either enabled, or disabled. * @@ -1489,7 +1489,7 @@ declare module Xrm /** * Adds an additional custom filter to the lookup, with the "AND" filter operator. * Can only be used within a "pre search" event handler - * + * * @sa addPreSearch * * @param {string} filter Specifies the filter, as a serialized FetchXML @@ -1513,7 +1513,7 @@ declare module Xrm * @param {string} fetchXml The FetchXML query for the view's contents, serialized as a string. * @param {string} layoutXml The Layout XML, serialized as a string. * @param {boolean} isDefault true, to treat this view as default. - * + * * @remarks Cannot be used on "Owner" Lookup controls. * The viewId is never saved to CRM, but must be unique across available views. Generating * a new value can be accomplished with a {@link http://www.guidgen.com/|Guid generator}. @@ -1533,7 +1533,7 @@ declare module Xrm * Gets the unique identifier of the default view. * * @return The default view, in Guid format. - * + * * @remarks Example: "{00000000-0000-0000-0000-000000000000}" */ getDefaultView(): string; @@ -1549,7 +1549,7 @@ declare module Xrm * Sets the Lookup's default view. * * @param {string} viewGuid Unique identifier for the view. - * + * * @remarks Example viewGuid value: "{00000000-0000-0000-0000-000000000000}" */ setDefaultView( viewGuid: string ): void; @@ -1567,7 +1567,7 @@ declare module Xrm * * @param {OptionSetValue} option The option. * @param {number} index (Optional) zero-based index of the option. - * + * * @remarks This method does not check that the values within the options you add are valid. * If index is not provided, the new option will be added to the end of the list. */ @@ -1637,7 +1637,7 @@ declare module Xrm /** * Refreshes the sub grid. - * + * * @remarks Not available during the "on load" event of the form. */ refresh(): void; @@ -1664,7 +1664,7 @@ declare module Xrm * Gets the DOM element containing the control. * * @return The container object. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getObject(): HTMLIFrameElement; @@ -1673,7 +1673,7 @@ declare module Xrm * Gets the URL value of the control. * * @return The source URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getSrc(): string; @@ -1682,7 +1682,7 @@ declare module Xrm * Sets the URL value of the control. * * @param {string} src The source URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ setSrc( src: string ): void; @@ -1699,7 +1699,7 @@ declare module Xrm * Gets initial URL defined for the Iframe. * * @return The initial URL. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getInitialUrl(): string; @@ -1716,7 +1716,7 @@ declare module Xrm * Gets the query string value passed to Silverlight. * * @return The data. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getData(): string; @@ -1725,7 +1725,7 @@ declare module Xrm * Sets the query string value passed to Silverlight. * * @param {string} data The data. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ setData( data: string ): void; @@ -1734,7 +1734,7 @@ declare module Xrm * Gets the DOM element containing the control. * * @return The container object. - * + * * @remarks Unavailable for Microsoft Dynamics CRM for tablets. */ getObject(): HTMLObjectElement; @@ -1942,7 +1942,7 @@ declare module Xrm * Returns the id for the record in the row. * * @return The identifier of the GridEntity, in GUID format. - * + * * @remarks Example return: "{00000000-0000-0000-0000-000000000000}" */ getId(): string; @@ -2017,10 +2017,10 @@ declare module Xrm * @return The form type. * * @remarks Values returned are: 0 Undefined - * 1 Create - * 2 Update - * 3 Read Only - * 4 Disabled + * 1 Create + * 2 Update + * 3 Read Only + * 4 Disabled * 6 Bulk Edit * Deprecated values are 5 (Quick Create), and 11 (Read Optimized) */ @@ -2030,7 +2030,7 @@ declare module Xrm * Gets view port height. * * @return The view port height, in pixels. - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ export function getViewPortHeight(): number; @@ -2039,14 +2039,14 @@ declare module Xrm * Gets view port width. * * @return The view port width, in pixels. - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ export function getViewPortWidth(): number; /** * Re-evaluates the ribbon's configured EnableRules - * + * * @remarks This method does not work with Microsoft Dynamics CRM for tablets. */ export function refreshRibbon(): void; @@ -2104,14 +2104,14 @@ declare module Xrm /** * The form selector API. - * + * * @remarks This API does not exist with Microsoft Dynamics CRM for tablets. */ export var formSelector: FormSelector; /** * The navigation API. - * + * * @remarks This API does not exist with Microsoft Dynamics CRM for tablets. */ export var navigation: Navigation; @@ -2183,7 +2183,7 @@ declare module Xrm * Gets current form. * * @return The current item. - * + * * @remarks When only one form is available this method will return null. */ getCurrentItem(): FormItem; @@ -2290,7 +2290,7 @@ declare module Xrm /** * An definition module for URL-based, CRM component parameters. - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export module Url @@ -2306,11 +2306,11 @@ declare module Xrm /** * Interface for defining parameters on a request to open a form with main.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. - * + * * @remarks A member for "pagetype" is not provided. The value "entityrecord" is required in * the URL, for forms. Example: "pagetype=entityrecord" */ @@ -2325,7 +2325,7 @@ declare module Xrm * Additional parameters can be provided to the request. This can only be used to provide * default field values for the form, or pass data to custom parameters that have been * customized for the form. See example below for setting the selected form. - * + * * @remarks Example: encodeURIComponent( "formid={8c9f3e6f-7839-e211-831e-00155db7d98f}" ); */ extraqs?: string; @@ -2349,9 +2349,9 @@ declare module Xrm /** * Interface for defining parameters on a request to open a view with main.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. * * @remarks A member for "pagetype" is not provided. The value "entitylist" is required in @@ -2397,9 +2397,9 @@ declare module Xrm /** * Interface for defining parameters of a request to open a dialog with rundialog.aspx (as with - * window.open). Useful for parsing the keys and values into a string of the format: + * window.open). Useful for parsing the keys and values into a string of the format: * "&key=value". - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export interface DialogOpenParameters @@ -2425,7 +2425,7 @@ declare module Xrm * Interface for defining parameters of a request to open a report with viewer.apsx (as with * window.open). Useful for parsing out the keys and values into a string of the format: * "&key=value" - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328483.aspx} for details. */ export interface ReportOpenParameters @@ -2433,7 +2433,7 @@ declare module Xrm /** * The action to perform, as either "run" or "filter". * - * @remarks "run" Executes the report with default filters. + * @remarks "run" Executes the report with default filters. * "filter" Presents the user with the filter editor, and a "Run Report" button. */ action: string; @@ -2453,7 +2453,7 @@ declare module Xrm /** * The Xrm.Utility API - * + * * @see {@link http://msdn.microsoft.com/en-us/library/gg328255.aspx|Documentation} for details. */ export module Utility @@ -2571,7 +2571,7 @@ declare module Xrm * @param {number} height (Optional) The height of the new window. * * @return A Window reference, containing the opened Web Resource. - * + * * @remarks This function will not work with Microsoft Dynamics CRM for tablets. * Valid WebResource URL Parameters: typename * type @@ -2588,7 +2588,7 @@ declare module Xrm /** * Gets the xRM application context, for HTML web resources, included by ClientGlobalContext.js.aspx * @returns {Xrm.Context} The application context for the user's current session. - * @remarks The ClientGlobalContext.js.aspx page will include some global event handlers. These event handlers will + * @remarks The ClientGlobalContext.js.aspx page will include some global event handlers. These event handlers will * cancel the onselectstart, contextmenu, and ondragstart events. */ declare function GetGlobalContext(): Xrm.Context; diff --git a/yeoman-generator/yeoman-generator-tests.ts b/yeoman-generator/yeoman-generator-tests.ts index fdb341177c..69ff087bf8 100644 --- a/yeoman-generator/yeoman-generator-tests.ts +++ b/yeoman-generator/yeoman-generator-tests.ts @@ -157,27 +157,27 @@ generator.options['opt'] === 'string'; // http://yeoman.io/generator/Base.html#prompt // https://github.com/SBoudrias/Inquirer.js -generator.prompt({ name: 'Name', message: 'Message' }, (answer) => {}); -generator.prompt({ name: 'Name', message: (answers) => 'Message' }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', choices: [ 'c1', 'c2' ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', choices: [ { name: 'Choice 1', value: 'c1' } ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', choices: (answers) => [ 'c1', 'c2' ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', choices: (answers) => [ { name: 'Choice 1', value: 'c1' } ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', choices: (answers) => [ { name: 'Choice 1', value: 'c1', short: '1' } ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: 'string' }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: 10 }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: [ 'string' ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: [ 10 ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: (answers) => [ 'string' ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: (answers) => [ 10 ] }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: (answers) => 'string' }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', default: (answers) => 10 }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', type: "list" }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', validate: (input) => true }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', validate: (input) => "Error" }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', filter: (input) => input }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', when: (answers) => true }, (answer) => {}); -generator.prompt({ name: 'Name', message: '', when: true }, (answer) => {}); +generator.prompt({ name: 'Name', message: 'Message' }, (answer) => {}); +generator.prompt({ name: 'Name', message: (answers) => 'Message' }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', choices: [ 'c1', 'c2' ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', choices: [ { name: 'Choice 1', value: 'c1' } ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', choices: (answers) => [ 'c1', 'c2' ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', choices: (answers) => [ { name: 'Choice 1', value: 'c1' } ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', choices: (answers) => [ { name: 'Choice 1', value: 'c1', short: '1' } ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: 'string' }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: 10 }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: [ 'string' ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: [ 10 ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: (answers) => [ 'string' ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: (answers) => [ 10 ] }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: (answers) => 'string' }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', default: (answers) => 10 }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', type: "list" }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', validate: (input) => true }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', validate: (input) => "Error" }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', filter: (input) => input }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', when: (answers) => true }, (answer) => {}); +generator.prompt({ name: 'Name', message: '', when: true }, (answer) => {}); // http://yeoman.io/generator/Base.html // https://github.com/SBoudrias/mem-fs-editor diff --git a/youtube/youtube.d.ts b/youtube/youtube.d.ts index a90ab4c88a..d8ba26b634 100644 --- a/youtube/youtube.d.ts +++ b/youtube/youtube.d.ts @@ -1,165 +1,165 @@ -// Type definitions for YouTube -// Project: https://developers.google.com/youtube/ -// Definitions by: Daz Wilkin , Ian Obermiller -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -declare module YT { - interface EventArgs { - target: Player; - data: any; - } - - interface EventHandler { - (event: EventArgs): void; - } - - export interface Events { - onReady?: EventHandler; - onPlayback?: EventHandler; - onStateChange?: EventHandler; - onError?: EventHandler; - } - - export enum ListType { - search, - user_uploads, - playlist, - } - - export interface PlayerVars { - autohide?: number; - autoplay?: number; - cc_load_policy?: any; - color?: string; - controls?: number; - disablekb?: number; - enablejsapi?: number; - end?: number; - fs?: number; - iv_load_policy?: number; - list?: string; - listType?: ListType; - loop?: number; - modestbranding?: number; - origin?: string; - playerpiid?: string; - playlist?: string[]; - playsinline?: number; - rel?: number; - showinfo?: number; - start?: number; - theme?: string; - } - - export interface PlayerOptions { - width?: string | number; - height?: string | number; - videoId?: string; - playerVars?: PlayerVars; - events?: Events; - } - - interface VideoByIdParams { - videoId: string; - startSeconds?: number; - endSeconds?: number; - suggestedQuality?: string; - } - - interface VideoByUrlParams { - mediaContentUrl: string; - startSeconds?: number; - endSeconds?: number; - suggestedQuality?: string; - } - - export interface VideoData - { - video_id: string; - author: string; - title: string; - } - - export class Player { - // Constructor - constructor(id: string, playerOptions: PlayerOptions); - - // Queueing functions - loadVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void; - loadVideoById(VideoByIdParams: Object): void; - cueVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void; - cueVideoById(VideoByIdParams: Object): void; - - loadVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void; - loadVideoByUrl(VideoByUrlParams: Object): void; - cueVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void; - cueVideoByUrl(VideoByUrlParams: Object): void; - - // Properties - size: any; - - // Playing - playVideo(): void; - pauseVideo(): void; - stopVideo(): void; - seekTo(seconds:number, allowSeekAhead:boolean): void; - clearVideo(): void; - - // Playlist - nextVideo(): void; - previousVideo(): void; - playVideoAt(index: number): void; - - // Volume - mute(): void; - unMute(): void; - isMuted(): boolean; - setVolume(volume: number): void; - getVolume(): number; - - // Sizing - setSize(width: number, height: number): any; - - // Playback - getPlaybackRate(): number; - setPlaybackRate(suggestedRate:number): void; - getAvailablePlaybackRates(): number[]; - - // Behavior - setLoop(loopPlaylists: boolean): void; - setShuffle(shufflePlaylist: boolean): void; - - // Status - getVideoLoadedFraction(): number; - getPlayerState(): number; - getCurrentTime(): number; - getVideoStartBytes(): number; - getVideoBytesLoaded(): number; - getVideoBytesTotal(): number; - - // Information - getDuration(): number; - getVideoUrl(): string; - getVideoEmbedCode(): string; - getVideoData(): VideoData; - - // Playlist - getPlaylist(): any[]; - getPlaylistIndex(): number; - - // Event Listener - addEventListener(event: string, handler: EventHandler): void; - - // DOM - destroy(): void; - } - - export enum PlayerState { - UNSTARTED, - BUFFERING, - CUED, - ENDED, - PAUSED, - PLAYING - } -} +// Type definitions for YouTube +// Project: https://developers.google.com/youtube/ +// Definitions by: Daz Wilkin , Ian Obermiller +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module YT { + interface EventArgs { + target: Player; + data: any; + } + + interface EventHandler { + (event: EventArgs): void; + } + + export interface Events { + onReady?: EventHandler; + onPlayback?: EventHandler; + onStateChange?: EventHandler; + onError?: EventHandler; + } + + export enum ListType { + search, + user_uploads, + playlist, + } + + export interface PlayerVars { + autohide?: number; + autoplay?: number; + cc_load_policy?: any; + color?: string; + controls?: number; + disablekb?: number; + enablejsapi?: number; + end?: number; + fs?: number; + iv_load_policy?: number; + list?: string; + listType?: ListType; + loop?: number; + modestbranding?: number; + origin?: string; + playerpiid?: string; + playlist?: string[]; + playsinline?: number; + rel?: number; + showinfo?: number; + start?: number; + theme?: string; + } + + export interface PlayerOptions { + width?: string | number; + height?: string | number; + videoId?: string; + playerVars?: PlayerVars; + events?: Events; + } + + interface VideoByIdParams { + videoId: string; + startSeconds?: number; + endSeconds?: number; + suggestedQuality?: string; + } + + interface VideoByUrlParams { + mediaContentUrl: string; + startSeconds?: number; + endSeconds?: number; + suggestedQuality?: string; + } + + export interface VideoData + { + video_id: string; + author: string; + title: string; + } + + export class Player { + // Constructor + constructor(id: string, playerOptions: PlayerOptions); + + // Queueing functions + loadVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void; + loadVideoById(VideoByIdParams: Object): void; + cueVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void; + cueVideoById(VideoByIdParams: Object): void; + + loadVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void; + loadVideoByUrl(VideoByUrlParams: Object): void; + cueVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void; + cueVideoByUrl(VideoByUrlParams: Object): void; + + // Properties + size: any; + + // Playing + playVideo(): void; + pauseVideo(): void; + stopVideo(): void; + seekTo(seconds:number, allowSeekAhead:boolean): void; + clearVideo(): void; + + // Playlist + nextVideo(): void; + previousVideo(): void; + playVideoAt(index: number): void; + + // Volume + mute(): void; + unMute(): void; + isMuted(): boolean; + setVolume(volume: number): void; + getVolume(): number; + + // Sizing + setSize(width: number, height: number): any; + + // Playback + getPlaybackRate(): number; + setPlaybackRate(suggestedRate:number): void; + getAvailablePlaybackRates(): number[]; + + // Behavior + setLoop(loopPlaylists: boolean): void; + setShuffle(shufflePlaylist: boolean): void; + + // Status + getVideoLoadedFraction(): number; + getPlayerState(): number; + getCurrentTime(): number; + getVideoStartBytes(): number; + getVideoBytesLoaded(): number; + getVideoBytesTotal(): number; + + // Information + getDuration(): number; + getVideoUrl(): string; + getVideoEmbedCode(): string; + getVideoData(): VideoData; + + // Playlist + getPlaylist(): any[]; + getPlaylistIndex(): number; + + // Event Listener + addEventListener(event: string, handler: EventHandler): void; + + // DOM + destroy(): void; + } + + export enum PlayerState { + UNSTARTED, + BUFFERING, + CUED, + ENDED, + PAUSED, + PLAYING + } +} diff --git a/zepto/zepto.d.ts b/zepto/zepto.d.ts index b01df91739..40d7bb9d81 100644 --- a/zepto/zepto.d.ts +++ b/zepto/zepto.d.ts @@ -9,23 +9,23 @@ zepto-1.0rc1.d.ts may be freely distributed under the MIT license. Copyright (c) 2013 Josh Baldwin https://github.com/jbaldwin/zepto.d.ts Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ @@ -448,7 +448,7 @@ interface ZeptoCollection { * @see ZeptoCollection.after **/ after(content: HTMLElement[]): ZeptoCollection; - + /** * @see ZeptoCollection.after **/ @@ -470,7 +470,7 @@ interface ZeptoCollection { * @see ZeptoCollection.append **/ append(content: HTMLElement[]): ZeptoCollection; - + /** * @see ZeptoCollection.append **/ @@ -541,7 +541,7 @@ interface ZeptoCollection { * @see ZeptoCollection.before **/ before(content: HTMLElement[]): ZeptoCollection; - + /** * @see ZeptoCollection.before **/ @@ -606,7 +606,7 @@ interface ZeptoCollection { /** * Read or write data-* DOM attributes. Behaves like attr, but prepends data- to the attribute name. - * When reading attribute values, the following conversions apply: + * When reading attribute values, the following conversions apply: * “true”, “false”, and “null” are converted to corresponding types; * number values are converted to actual numeric types; * JSON values are parsed, if it’s valid JSON; @@ -1117,12 +1117,12 @@ interface ZeptoCollection { * @return **/ size(): number; - + /** * Get the number of elements in this collection. **/ length: number; - + /** * Extract the subset of this array, starting at start index. If end is specified, extract up to but not including end index. * @param start @@ -1513,7 +1513,7 @@ interface ZeptoCollection { * @return Seralized form values in URL-encoded string. **/ serialize(): string; - + /** * Serialize form into an array of objects with name and value properties. Disabled form controls, buttons, and unchecked radio buttons/checkboxes are skipped. The result doesn’t include data from file inputs. * @return Array with name value pairs from the Form.