首页 开发技术 其它     /    typescript-rest:这是一个基于轻量级基于注释的expressscript扩展,用于typescript-源码

typescript-rest:这是一个基于轻量级基于注释的expressscript扩展,用于typescript-源码

上传者: weixin_42125192 | 上传时间:2024/8/30 8:23:25 | 文件大小:143KB | 文件类型:ZIP
typescript-rest:这是一个基于轻量级基于注释的expressscript扩展,用于typescript-源码
REST打字稿服务这是一个用于打字稿的轻量级基于注释的扩展。
它可以用于使用装饰器定义API。
目录安装该库仅适用于打字稿。
确保已安装:npminstalltypescript-g要安装typescript-rest:npminstalltypescript-rest--save组态Typescript-rest需要在tsconfig.json文件中使用以下TypeScript编译选项:{"compilerOptions":{"experimentalDecorators":true,"emitDecoratorMetadata":true,"target":"es6"//oranythingnewerlikeesnext}}基本用法import*asexpressfrom"express";import{Server,Path,GET,PathParam}from"typescript-rest";@Path("/h

文件下载

资源详情

[{"title":"(45个子文件143KB)typescript-rest:这是一个基于轻量级基于注释的expressscript扩展,用于typescript-源码","children":[{"title":"typescript-rest-master","children":[{"title":".bettercodehub.yml <span style='color:#111;'>42B</span>","children":null,"spread":false},{"title":"src","children":[{"title":"typescript-rest.ts <span style='color:#111;'>539B</span>","children":null,"spread":false},{"title":"decorators","children":[{"title":"services.ts <span style='color:#111;'>10.44KB</span>","children":null,"spread":false},{"title":"parameters.ts <span style='color:#111;'>11.05KB</span>","children":null,"spread":false},{"title":"methods.ts <span style='color:#111;'>6.96KB</span>","children":null,"spread":false}],"spread":true},{"title":"authenticator","children":[{"title":"passport.ts <span style='color:#111;'>2.35KB</span>","children":null,"spread":false}],"spread":true},{"title":"server","children":[{"title":"config.ts <span style='color:#111;'>1.43KB</span>","children":null,"spread":false},{"title":"parameter-processor.ts <span style='color:#111;'>4.55KB</span>","children":null,"spread":false},{"title":"model","children":[{"title":"return-types.ts <span style='color:#111;'>3.05KB</span>","children":null,"spread":false},{"title":"metadata.ts <span style='color:#111;'>3.27KB</span>","children":null,"spread":false},{"title":"errors.ts <span style='color:#111;'>6.48KB</span>","children":null,"spread":false},{"title":"server-types.ts <span style='color:#111;'>3.44KB</span>","children":null,"spread":false}],"spread":true},{"title":"service-invoker.ts <span style='color:#111;'>10.20KB</span>","children":null,"spread":false},{"title":"server.ts <span style='color:#111;'>11.16KB</span>","children":null,"spread":false},{"title":"server-container.ts <span style='color:#111;'>19.88KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".npmignore <span style='color:#111;'>107B</span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'>632B</span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"test","children":[{"title":"integration","children":[{"title":"preprocessor.spec.ts <span style='color:#111;'>4.06KB</span>","children":null,"spread":false},{"title":"ioc.spec.ts <span style='color:#111;'>3.21KB</span>","children":null,"spread":false},{"title":"ignore-middlewares.spec.ts <span style='color:#111;'>2.75KB</span>","children":null,"spread":false},{"title":"paths.spec.ts <span style='color:#111;'>5.31KB</span>","children":null,"spread":false},{"title":"datatypes.spec.ts <span style='color:#111;'>19.10KB</span>","children":null,"spread":false},{"title":"postprocessor.spec.ts <span style='color:#111;'>2.89KB</span>","children":null,"spread":false},{"title":"swagger.spec.ts <span style='color:#111;'>2.00KB</span>","children":null,"spread":false},{"title":"server.spec.ts <span style='color:#111;'>9.76KB</span>","children":null,"spread":false},{"title":"authenticator.spec.ts <span style='color:#111;'>11.00KB</span>","children":null,"spread":false},{"title":"errors.spec.ts <span style='color:#111;'>6.91KB</span>","children":null,"spread":false}],"spread":true},{"title":".mocharc.yaml <span style='color:#111;'>140B</span>","children":null,"spread":false},{"title":".mocharc-unit.yaml <span style='color:#111;'>145B</span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'>602B</span>","children":null,"spread":false},{"title":"unit","children":[{"title":"passport-authenticator.spec.ts <span style='color:#111;'>6.86KB</span>","children":null,"spread":false},{"title":"decorators.spec.ts <span style='color:#111;'>34.88KB</span>","children":null,"spread":false},{"title":"server-errors.spec.ts <span style='color:#111;'>5.66KB</span>","children":null,"spread":false},{"title":"server-config.spec.ts <span style='color:#111;'>2.94KB</span>","children":null,"spread":false},{"title":"server.spec.ts <span style='color:#111;'>3.12KB</span>","children":null,"spread":false}],"spread":true},{"title":"data","children":[{"title":"swagger.yaml <span style='color:#111;'>2.82KB</span>","children":null,"spread":false},{"title":"apis.ts <span style='color:#111;'>329B</span>","children":null,"spread":false}],"spread":true},{"title":".mocharc-integration.yaml <span style='color:#111;'>152B</span>","children":null,"spread":false}],"spread":true},{"title":"tslint.json <span style='color:#111;'>488B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>3.29KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>62B</span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'>326.79KB</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>3.26KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明