â»ãã®è¨äºã«å«ã¾ããå 容㯠TypeScript 4.1 ã®ãã¬ãã¥ã¼çã®ãã®ã§ã. ä»å¾ä»æ§ãå¤ããåããªããªãå¯è½æ§ãããã¾ãã®ã§ã注æãã ãã. 話é¡ã® template string types ã§æ©ééãã§ã¿ã¾ã. ã´ã¼ã« .foo[1].bar ã¨ãã£ãå½¢ã®ãã¹æååãåã¬ãã«ã§è§£æãã¦ã¯ã¨ãªãã¡ããã¾ã. ããããæã: type R1 = Query<{ foo: number }, "">; // R1 = { foo: number } type R2 = Query<{ foo: number }, ".foo">; // R2 = number type R3 = Query<[number, string, boolean], "[1]">; // R3 = string type R4 = Query<{ foo: { bar: string } }, ".fo
{{#tags}}- {{label}}
{{/tags}}