===================================================================
JsFile: typeResolution.js
mapUrl: typeResolution.js.map
sourceRoot:
sources: typeResolution.ts
===================================================================
-------------------------------------------------------------------
emittedFile:typeResolution.js
sourceFile:typeResolution.ts
-------------------------------------------------------------------
>>>define(["require", "exports"], function (require, exports) {
>>> "use strict";
>>> Object.defineProperty(exports, "__esModule", { value: true });
>>> exports.TopLevelModule1 = void 0;
>>> var TopLevelModule1;
1 >^^^^
2 > ^^^^
3 > ^^^^^^^^^^^^^^^
4 > ^
5 > ^^^^^^^^^^->
1 >
2 > export module
3 > TopLevelModule1
4 > {
> export module SubModule1 {
> export module SubSubModule1 {
> export class ClassA {
> public AisIn1_1_1() {
> // Try all qualified names of this type
> var a1: ClassA; a1.AisIn1_1_1();
> var a2: SubSubModule1.ClassA; a2.AisIn1_1_1();
> var a3: SubModule1.SubSubModule1.ClassA; a3.AisIn1_1_1();
> var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1();
>
> // Two variants of qualifying a peer type
> var b1: ClassB; b1.BisIn1_1_1();
> var b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB; b2.BisIn1_1_1();
>
> // Type only accessible from the root
> var c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA; c1.AisIn1_2_2();
>
> // Interface reference
> var d1: InterfaceX; d1.XisIn1_1_1();
> var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1();
> }
> }
> export class ClassB {
> public BisIn1_1_1() {
> /** Exactly the same as above in AisIn1_1_1 **/
>
> // Try all qualified names of this type
> var a1: ClassA; a1.AisIn1_1_1();
> var a2: SubSubModule1.ClassA; a2.AisIn1_1_1();
> var a3: SubModule1.SubSubModule1.ClassA; a3.AisIn1_1_1();
> var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1();
>
> // Two variants of qualifying a peer type
> var b1: ClassB; b1.BisIn1_1_1();
> var b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB; b2.BisIn1_1_1();
>
> // Type only accessible from the root
> var c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA; c1.AisIn1_2_2();
> var c2: TopLevelModule2.SubModule3.ClassA; c2.AisIn2_3();
>
> // Interface reference
> var d1: InterfaceX; d1.XisIn1_1_1();
> var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1();
> }
> }
> export interface InterfaceX { XisIn1_1_1(); }
> class NonExportedClassQ {
> constructor() {
> function QQ() {
> /* Sampling of stuff from AisIn1_1_1 */
> var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1();
> var c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA; c1.AisIn1_2_2();
> var d1: InterfaceX; d1.XisIn1_1_1();
> var c2: TopLevelModule2.SubModule3.ClassA; c2.AisIn2_3();
> }
> }
> }
> }
>
> // Should have no effect on S1.SS1.ClassA above because it is not exported
> class ClassA {
> constructor() {
> function AA() {
> var a2: SubSubModule1.ClassA; a2.AisIn1_1_1();
> var a3: SubModule1.SubSubModule1.ClassA; a3.AisIn1_1_1();
> var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1();
>
> // Interface reference
> var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1();
> }
> }
> }
> }
>
> export module SubModule2 {
> export module SubSubModule2 {
> // No code here since these are the mirror of the above calls
> export class ClassA { public AisIn1_2_2() { } }
> export class ClassB { public BisIn1_2_2() { } }
> export class ClassC { public CisIn1_2_2() { } }
> export interface InterfaceY { YisIn1_2_2(); }
> interface NonExportedInterfaceQ { }
> }
>
> export interface InterfaceY { YisIn1_2(); }
> }
>
> class ClassA {
> public AisIn1() { }
> }
>
> interface InterfaceY {
> YisIn1();
> }
>
> module NotExportedModule {
> export class ClassA { }
> }
> }
1 >Emitted(5, 5) Source(1, 1) + SourceIndex(0)
2 >Emitted(5, 9) Source(1, 15) + SourceIndex(0)
3 >Emitted(5, 24) Source(1, 30) + SourceIndex(0)
4 >Emitted(5, 25) Source(100, 2) + SourceIndex(0)
---
>>> (function (TopLevelModule1) {
1->^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^
没有合适的资源?快使用搜索试试~ 我知道了~
TypeScript-5.2-rc.tar.gz
0 下载量 93 浏览量
2024-04-15
00:18:02
上传
评论
收藏 29.12MB GZ 举报
温馨提示
Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
资源推荐
资源详情
资源评论
收起资源包目录
TypeScript-5.2-rc.tar.gz (2000个子文件)
tsserverlibrary.js 8.57MB
tsserver.js 8.1MB
typescript.js 7.94MB
tsc.js 5.51MB
typingsInstaller.js 1.66MB
unionSubtypeReductionErrors.js 185KB
binaryArithmeticControlFlowGraphNotTooLarge.js 87KB
parserRealSource12.js 54KB
keyofAndIndexedAccess.js 40KB
privacyVarDeclFile.js 36KB
privacyImport.js 29KB
derivedClassSuperProperties.js 28KB
privacyImportParseErrors.js 22KB
usingDeclarations.1(target=es2015).js 20KB
nodeModulesAllowJs1(module=node16).js 20KB
jsxComplexSignatureHasApplicabilityError.js 19KB
esDecorators-classExpression-namedEvaluation.2.js 16KB
privacyCannotNameAccessorDeclFile.js 16KB
privacyTypeParametersOfClassDeclFile.js 16KB
es5-asyncFunctionBinaryExpressions.js 15KB
emitter.forAwait(target=es2017).js 15KB
assertionTypePredicates1.js 11KB
es5-asyncFunctionCallExpressions.js 11KB
arrayBestCommonTypes.js 10KB
assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js 9KB
destructuringParameterDeclaration1ES5.js 8KB
es5-asyncFunctionSwitchStatements.js 8KB
typeArgumentInference.js 8KB
strictSubtypeAndNarrowing.js 8KB
usingDeclarationsInForAwaitOf(target=es5).js 8KB
APISample_jsdoc.js 7KB
undefinedIsSubtypeOfEverything.js 7KB
capturedLetConstInLoop1.js 7KB
capturedLetConstInLoop3_ES6.js 7KB
esDecorators-classExpression-namedEvaluation.4.js 7KB
destructuringParameterDeclaration2.js 7KB
jsDeclarationsReactComponents.js 7KB
awaitUsingDeclarationsInFor(target=es5).js 7KB
contextualTypeWithUnionTypeMembers.js 6KB
declFileFunctions.js 6KB
overloadResolution.js 6KB
arrowFunctionContexts.js 6KB
styledComponentsInstantiaionLimitNotReached.js 6KB
templateStringBinaryOperationsInvalid.js 6KB
arrayLiterals2ES5.js 6KB
destructuringArrayBindingPatternAndAssignment1ES5iterable.js 6KB
classUpdateTests.js 6KB
protectedMembers.js 6KB
classdecl.js 6KB
objectSpreadNegative.js 6KB
discriminatedUnionTypes1.js 6KB
quickinfoTypeAtReturnPositionsInaccurate.js 5KB
arithmeticOperatorWithEnum.js 5KB
esDecoratorsMetadata2(target=es2015).js 5KB
implementingAnInterfaceExtendingClassWithPrivates2.js 5KB
typeGuardsWithInstanceOfByConstructorSignature.js 5KB
unusedLocalsAndParametersDeferred.js 5KB
nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).js 5KB
interfaceExtendsObjectIntersection.js 5KB
importMeta(module=esnext,target=es5).js 5KB
subtypesOfTypeParameterWithConstraints4.js 5KB
awaitUsingDeclarationsInForAwaitOf(target=es2015).js 5KB
jsDeclarationsJSDocRedirectedLookups.js 5KB
typeGuardsInClassMethods.js 5KB
varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js 5KB
coAndContraVariantInferences2.js 5KB
constructSignatureAssignabilityInInheritance5.js 5KB
taggedTemplateStringsWithOverloadResolution3_ES6.js 4KB
noImplicitAnyStringIndexerOnObject.js 4KB
arrayLiterals3.js 4KB
privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js 4KB
APISample_WatchWithOwnWatchHost.js 4KB
declarationEmitNameConflicts.js 4KB
indexingTypesWithNever.js 4KB
typeGuardOfFormThisMemberErrors.js 4KB
superErrors.js 4KB
neverType.js 4KB
importHelpersNoHelpers.js 4KB
assignmentCompatWithObjectMembersOptionality2.js 4KB
es5-asyncFunctionForStatements.js 4KB
propertyAccessOnTypeParameterWithConstraints3.js 4KB
usingDeclarationsInForAwaitOf(target=es2017).js 4KB
objectRest.js 4KB
importCallExpressionNestedSystem2.js 4KB
nodeModulesForbidenSyntax(module=node16).js 4KB
implicitAnyCastedValue.js 4KB
accessors_spec_section-4.5_inference.js 4KB
topLevelAwait.1(module=system,target=es2015).js 4KB
objectSpreadStrictNull.js 4KB
expressionsForbiddenInParameterInitializers.js 4KB
controlFlowWhileStatement.js 4KB
unionTypeFromArrayLiteral.js 4KB
capturedLetConstInLoop1_ES6.js 4KB
anyAssignabilityInInheritance.js 4KB
restParametersWithArrayTypeAnnotations.js 4KB
reverseMappedPartiallyInferableTypes.js 4KB
cancellationToken.js 4KB
jsDeclarationsDefault.js 4KB
esDecorators-classDeclaration-commonjs-classNamespaceMerge.js 4KB
destructuringWithLiteralInitializers.js 4KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
程序员Chino的日记
- 粉丝: 3690
- 资源: 5万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 秋招信息获取与处理基础教程
- 程序员面试笔试面经技巧基础教程
- Python实例-21个自动办公源码-数据处理技术+Excel+自动化脚本+资源管理
- 全球前8GDP数据图(python动态柱状图)
- 汽车检测7-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 检测高压线电线-YOLO(v5至v9)、COCO、Darknet、VOC数据集合集.rar
- 检测行路中的人脸-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、VOC数据集合集.rar
- Image_17083039753012.jpg
- 检测生锈铁片生锈部分-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、VOC数据集合集.rar
- 检测桌面物体-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功