typings.json中有globalDependencies
和globalDevDependencies
。
在我的项目中使用时,即使我在两个类别之间交换打字,打字定义也适用于Typescript文件。
两个类别之间的真正区别是什么?如何知道我应该在哪个类别中打包?
答案 0 :(得分:1)
typings.json中有globalDependencies和globalDevDependencies。
让我们打电话给你的包typigns install
。如果有人在使用foo
的程序包上执行globalDependencies
,则会获得typings install
。如果某些人在 foo
中string fileName = "ExampleFileName.xlsx";
Response.Clear();
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
Response.AddHeader("content-disposition", "attachment; filename=" + fileName);
Response.BinaryWrite(excelPackage.GetAsByteArray());
// Response.End(); Replaced with below 3 lines to avoid ThreadAbortException
Response.Flush(); // Sends all currently buffered output to the client.
Response.SuppressContent = true; // Gets or sets a value indicating whether to send HTTP content to the client.
ApplicationInstance.CompleteRequest(); // Causes ASP.NET to bypass all events and filtering in the HTTP pipeline chain of execution and directly execute the EndRequest event.
,则他们同时获得。