senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. えあい:straight_shrimp:????:straight_shrimp: (eai@stellaria.network)'s status on Tuesday, 30-Nov-2021 22:17:18 JST えあい:straight_shrimp:????:straight_shrimp: えあい:straight_shrimp:????:straight_shrimp:

    { [key: string]: string }の型のオブジェクトにキーで引っ張ってくると必ずstringが帰ってくるけどstring | undefinedにする方法ってないの

    In conversation Tuesday, 30-Nov-2021 22:17:18 JST from stellaria.network permalink
    • 欠勤回避 (hina@mstdn.maud.io)'s status on Tuesday, 30-Nov-2021 22:21:53 JST 欠勤回避 欠勤回避
      in reply to

      @Eai Partial<Type>みたいなこと? https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype

      In conversation Tuesday, 30-Nov-2021 22:21:53 JST permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Documentation - Utility Types
        Types which are globally included in TypeScript
    • えあい:straight_shrimp:????:straight_shrimp: (eai@stellaria.network)'s status on Tuesday, 30-Nov-2021 22:21:53 JST えあい:straight_shrimp:????:straight_shrimp: えあい:straight_shrimp:????:straight_shrimp:
      in reply to
      • 欠勤回避

      @hina いや、実行時まで中身がわからないオブジェクトがあって{ [key: string]: string }と定義してて、それからキーで取り出したらstring | undefinedだと思うんだけど、stringが帰ってくるのでundefinedも欲しいということです

      In conversation Tuesday, 30-Nov-2021 22:21:53 JST permalink
    • k5x (kpherox@pl.kpherox.dev)'s status on Wednesday, 01-Dec-2021 00:04:40 JST k5x k5x
      in reply to
      @Eai `noUncheckedIndexedAccess` flag有効にするといいみたいTypeScript: TSConfig Reference - Docs on every TSConfig optionhttps://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess
      In conversation Wednesday, 01-Dec-2021 00:04:40 JST permalink
    • えあい:straight_shrimp:????:straight_shrimp: (eai@stellaria.network)'s status on Wednesday, 01-Dec-2021 00:04:40 JST えあい:straight_shrimp:????:straight_shrimp: えあい:straight_shrimp:????:straight_shrimp:
      in reply to
      • k5x

      @kPherox ほほーありがたい

      In conversation Wednesday, 01-Dec-2021 00:04:40 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.