kingwl's recent timeline updates
kingwl

kingwl

V2EX member #213762, joined on 2017-02-07 16:30:55 +08:00
[北京]长亭科技 - 前端开发工程师
  •  1   
    酷工作  •  kingwl  •  May 25, 2018  •  Lastly replied by qingv
    1
    [北京]长亭科技 - 前端开发工程师
    酷工作  •  kingwl  •  May 5, 2018  •  Lastly replied by qingv
    10
    中公教育招聘 SEO 讲师
    酷工作  •  kingwl  •  Jun 21, 2017  •  Lastly replied by kingwl
    4
    {中公教育 IT 事业培训}招聘中!
  •  1   
    酷工作  •  kingwl  •  Jun 15, 2017  •  Lastly replied by kingwl
    4
    kingwl's recent replies
    @libook

    是,但不完全是。例如:

    ```ts

    /**
    * @template {string} T
    * @param {T} x
    * @return {T}
    */
    function strindId(x) {
    return x;
    }

    const a = strindId(1); // Argument of type 'number' is not assignable to parameter of type 'string'.
    const b = strindId("");

    ```

    除非有人 /公司另外实现了一个 TS typechecker, 否则最后还是交给了 TS 。。。
    @libook 你猜你这三个截图的功能在 VSCode 里面是谁做的。。。
    `
    interface Resp<T = unknown> {
    data?: T
    }
    const res :Resp = {}
    const abc = res.data.abc
    `
    May 6, 2021
    Replied to a topic by BoringTu JavaScript 为什么你们要选择 TypeScript?
    > People percieve TypeScript as "just the compiler", but it's a better mental model to think of TypeScript as two separate entities: The compiler (aka syntax) and language tools (aka editor integration) - by treating these two systems as separate you have two important perspectives to understand decisions get made.

    https://orta.io/notes/js/why-typescript
    May 6, 2021
    Replied to a topic by BoringTu JavaScript 为什么你们要选择 TypeScript?
    > 本身弱类型为优势的 JavaScript (并不是优势)

    > 套了一层强类型的壳的这步操作我就看不懂了,这是图啥呢?(并不是强类型)

    > 这样代码写着不难受么?那你直接用 Java 写然后编译成 JavaScript 不好么?(不难受,不好,Java 也不是强类型)
    Apr 27, 2021
    Replied to a topic by 3dwelcome 前端开发 前端为什么不加个#define 语句呢?
    Apr 27, 2021
    Replied to a topic by 3dwelcome 前端开发 前端为什么不加个#define 语句呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3192 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 00:27 · PVG 08:27 · LAX 17:27 · JFK 20:27
    ♥ Do have faith in what you're doing.