definitions

TypeScript definition files

时光总嘲笑我的痴心妄想 提交于 2020-01-22 12:18:27
问题 I'm playing with TypesScript, but the compiler complains when I use browser types such as HTMLCanvasElement. I guess I need definition files for these types. I bet there is a repository of definition files for the DOM and for most popular frameworks, but Google has not been able to help me find it. Do you guys know of such a repository? 回答1: The lib.d.ts that is included in the source (http://typescript.codeplex.com/SourceControl/changeset/view/fe3bc0bfce1f#bin%2flib.d.ts) contains

Is it possible to Export TFS 2010 Build Definitions?

南楼画角 提交于 2019-12-19 03:25:20
问题 I'm cleaning up old build definitions and I want to back them up in case there is something I'm missing, is there a way to export the build definitions using Visual Studio 2010? 回答1: You could use the TFS API to export it to a format that you could load it back in with like in How to Move TFS 2010 Build Definition between Projects? . 回答2: Team Foundation Power Tools commands has a command that will allow one to export/dump out a build definition to a text file. From the Visual Studio command

Relative and absolute tolerance definitions in Matlab solver

主宰稳场 提交于 2019-12-18 21:16:51
问题 I am trying to understand the following Matlab definitions for RelTol and AbsTol parameters: RelTol — This tolerance is a measure of the error relative to the size of each solution component. Roughly, it controls the number of correct digits in all solution components, except those smaller than thresholds AbsTol(i).The default, 1e-3, corresponds to 0.1% accuracy. AbsTol — AbsTol(i) is a threshold below which the value of the ith solution component is unimportant. The absolute error tolerances

Duck typing, must it be dynamic?

让人想犯罪 __ 提交于 2019-12-17 22:34:12
问题 Wikipedia used to say* about duck-typing: In computer programming with object-oriented programming languages, duck typing is a style of dynamic typing in which an object's current set of methods and properties determines the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface. (* Ed. note: Since this question was posted, the Wikipedia article has been edited to remove the word "dynamic".) It says about structural typing: A structural

Typescript definitions for sendgrid

戏子无情 提交于 2019-12-07 22:09:04
问题 I am trying to write a typescript app that uses sendgrid, but unlike with other definitions I got from typings the one from typings install sendgrid --ambient is causing me some headaches: I am able to instantiate the client like so: import * as sendgrid from 'sendgrid'; import Email = Sendgrid.Email; import Instance = Sendgrid.Instance; ... private client: Instance; ... this.client = sendgrid(user, key); And then later in the code I am trying to send an email, which is why ts is forcing me

Typescript definitions for sendgrid

南笙酒味 提交于 2019-12-06 05:57:35
I am trying to write a typescript app that uses sendgrid, but unlike with other definitions I got from typings the one from typings install sendgrid --ambient is causing me some headaches: I am able to instantiate the client like so: import * as sendgrid from 'sendgrid'; import Email = Sendgrid.Email; import Instance = Sendgrid.Instance; ... private client: Instance; ... this.client = sendgrid(user, key); And then later in the code I am trying to send an email, which is why ts is forcing me to import the EMail interface in the first place. var email = new Email(); ... this.client.send(email,

Creating an extendible model using Swagger/ OpenAPI

被刻印的时光 ゝ 提交于 2019-12-02 00:02:35
问题 In my API i would like to have a simple model for my collection and a more elaborate model for my individual resource. For example: a GET request on /libraries should return BaseLibrary: type: object properties: library_id: type: string description: The id of the library display_name: type: string description: Name of the library href: type: string description: The URI linking to this library. whilst a request to a specific library should return all of the above including an extra parameter

Creating an extendible model using Swagger/ OpenAPI

流过昼夜 提交于 2019-12-01 22:47:21
In my API i would like to have a simple model for my collection and a more elaborate model for my individual resource. For example: a GET request on /libraries should return BaseLibrary: type: object properties: library_id: type: string description: The id of the library display_name: type: string description: Name of the library href: type: string description: The URI linking to this library. whilst a request to a specific library should return all of the above including an extra parameter books: So a GET request to libraries/{library_id} should return: ExtendedLibrary: type: object

Is it possible to Export TFS 2010 Build Definitions?

牧云@^-^@ 提交于 2019-11-30 21:00:24
I'm cleaning up old build definitions and I want to back them up in case there is something I'm missing, is there a way to export the build definitions using Visual Studio 2010? Sean Lynch You could use the TFS API to export it to a format that you could load it back in with like in How to Move TFS 2010 Build Definition between Projects? . Team Foundation Power Tools commands has a command that will allow one to export/dump out a build definition to a text file. From the Visual Studio command prompt: C:\Program Files\Microsoft Visual Studio 10.0\VC> tfpt builddefinition /dump ProjectName

Relative and absolute tolerance definitions in Matlab solver

偶尔善良 提交于 2019-11-30 18:55:23
I am trying to understand the following Matlab definitions for RelTol and AbsTol parameters: RelTol — This tolerance is a measure of the error relative to the size of each solution component. Roughly, it controls the number of correct digits in all solution components, except those smaller than thresholds AbsTol(i).The default, 1e-3, corresponds to 0.1% accuracy. AbsTol — AbsTol(i) is a threshold below which the value of the ith solution component is unimportant. The absolute error tolerances determine the accuracy when the solution approaches zero. I do not understand why AbsTol determines