GithubHelp home page GithubHelp logo

semlinker / deno-todos-api Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 1.0 150 KB

Deno 实战之使用 Oak 开发 Todo REST API

TypeScript 100.00%
deno deno-demo deno-in-action deno-rest-api oak todo-rest-api todos-api

deno-todos-api's Introduction

Hi,我是阿宝哥。17 年开始在思否写 Angular 修仙之路专栏,已输出 152 篇原创文章。曾获得思否年度优秀文章作者及两季 Top Writer,今年开始写 “重学TS”(60几篇)、玩转前端、你不知道的和优质前端项目 源码分析 系列专题。观看 《轻松学 TypeScript》 系列教程,已有十几期。

平常活跃在各个社区,这里分享主要的社区地址:


📚 我的 PDF 电子书

2020 年是不平凡的一年,今年阿宝哥也迈出了一大步,写了三本 PDF 电子书,这里墙裂推荐其中的两本:

阿宝哥的《前端进阶篇》- 170页 ⭐⭐⭐

“玩转前端专题” 包含玩转 Video 播放器、玩转图片处理、玩转 Word 文档、玩转混合加密和玩转网络五大章节的内容。而 “你不知道的 XXX 专题” 包含你不知道的 Web Workers、你不知道的 WebSocket、你不知道的 Blob 及你不知道的 WeakMap 四大章节的内容。

阿宝哥的《重学TS》- 228页 ⭐⭐⭐⭐

“重学TS” 包含了 TypeScript 快速入门篇(1.8W字)、九种常见的 TypeScript 设计模式、TypeScript 进阶之插件化架构、控制反转与依赖注入及编写高效 TypeScript 代码的一些建议。


😊 一起交流

想进一步阅读 50 几篇的 TypeScript 文章或前端架构技术干货,邀请你关注 全栈修仙之路,另外,如果你在学习、成长过程中遇到什么问题,也可以添加我的微信一起交流。

deno-todos-api's People

Contributors

semlinker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

leesx

deno-todos-api's Issues

启动时报错

执行命令deno run -A index.ts启动时多处报错

  1. 环境

操作系统:MacOS catAlina 10.15.7
deno 版本:1.75

  1. 错误信息:
TS2339 [ERROR]: Property 'completed' does not exist on type 'Promise<any> | Promise<string> | FormDataReader | Promise<URLSearchParams> | Promise<Uint8Array> | undefined'.
    value: { title, completed, userId },
                    ~~~~~~~~~
    at file:///Users/lcy/Documents/Project-Summary/typeScript/deno/deno-todos-api/handlers/updateTodo.ts:28:21
  1. 源码:
  const {
    value: { title, completed, userId },
  } = await request.body();
  1. 修改:
  const { title, completed, userId } = await request.body().value;
  1. 分析

await request.body()返回的值是 Promise 类型

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.