並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 14 件 / 14件

新着順 人気順

extendsの検索結果1 - 14 件 / 14件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

extendsに関するエントリは14件あります。 開発プログラミングtypescript などが関連タグです。 人気エントリには 『[K, U] extends [U, K] ← ナニコレ』などがあります。
  • [K, U] extends [U, K] ← ナニコレ

    タイトルは初見時の自分の気持ちでした。内容は結構あっさりしたもので、5分あれば読めると思います。 「あーなるほどね」となった方はわざわざ読む必要がない記事っぽいです。 型の互換性チェック 一言で言ってしまえばそういうことです。KとUが互いに置き換え可能かどうかを確認しています。 これがKとUのままだと分かりづらいのですが、適当な型に置き換えてみると分かりやすいです。 type Test1 = [1, 1] extends [1, 1] ? true : false; // true type Test2 = [number, number] extends [number, number] ? true : false; // true type Test3 = [string, string] extends [string, string] ? true : false; // tru

      [K, U] extends [U, K] ← ナニコレ
    • 恒等関数と extends キーワードを使った TypeScript のテクニック - 30歳からのプログラミング

      この記事の内容は TypeScript のv4.1.3で、compilerOptions.noUncheckedIndexedAccessを有効にした状態で動作確認している。 参考: zenn.dev 恒等関数(Identity Function)とは、渡されたものを返す関数。 function identity<T>(arg: T) { return arg; } const x = identity(1); // const x: 1 const y = identity(() => 1); // const y: () => 1 引数をそのまま返しているため当然だが、値は変わらない。 このままだと何の意味もないが、extendsキーワードを使って型に制約を与えることができる。 例えば以下のidentityには、ReturnNumberかそのサブタイプしか渡せない。 type Retu

        恒等関数と extends キーワードを使った TypeScript のテクニック - 30歳からのプログラミング
      • <T, K extends keyof T> をちゃんと理解する

        TL;DR TypeScriptでライブラリなどを覗いているとよく見かける<T, K extends keyof T>について、問題を分解してきちんと理解する試みです。 extends この場合のextendsの役割は継承ではなく、制約です。 例えば以下のようなイメージ。 type StringOrNumber<T extends string | number> = T type A = StringOrNumber<string> type B = StringOrNumber<number> // Type 'boolean' does not satisfy the constraint 'string | number' type C = StringOrNumber<boolean> type User = { id: number; name: string; }; cons

          <T, K extends keyof T> をちゃんと理解する
        • Extends Developer Experience

          TypeScriptとDXのお話

            Extends Developer Experience
          • Extends 新米マネージャーが1on1で実践していること - コネヒト開発者ブログ

            こんにちは。2017年11月にAndroidエンジニアとしてjoinした@katsutomu です。 7日目に引き続きの登場です。以前のエントリーで金髪から緑髪にすると宣言しましたが、依然、完遂出来ておりません。可及的速やかに対処いたします。 さて、今回は、1on1についてのお話をしたいと思います。10月から一部のマネジメント業務を担当し、4人のメンバーの1on1を実施するようになりましたので、わたしなりに試行錯誤した2つの事例を、ここまでの振り返りをかねて紹介します。 以前、本ブログにおいて@itoshoが投稿した1on1のエントリーがありますが、こちらの内容を踏襲したので、その内容にも触れながら紹介していきます。 この記事はコネヒト Advent Calendar 2019 12日目の記事です。 1. 期待することと場のあり方を一緒に考える さて、1on1を実施する上で、よく聞く声とし

              Extends 新米マネージャーが1on1で実践していること - コネヒト開発者ブログ
            • Writing custom controllers – Extends Kubernetes APIs for the unified experience

              Talked at #EKSMatsuri.

                Writing custom controllers – Extends Kubernetes APIs for the unified experience
              • extendsを使って.gitlab-ci.yml内の重複処理をまとめる | DevelopersIO

                先に結論から .gitlab-ci.yml内の以下のような重複処理は validate-dev: stage: terraform-static-test script: - cd env/dev - terraform init -backend=false - terraform validate validate-stg: stage: terraform-static-test script: - cd env/stg - terraform init -backend=false - terraform validate validate-prod: stage: terraform-static-test script: - cd env/prod - terraform init -backend=false - terraform validate 以下のようにスッキリさせ

                  extendsを使って.gitlab-ci.yml内の重複処理をまとめる | DevelopersIO
                • TypeScriptのextendsってなんなん?

                  今日ではインターネットなしでは生活できないのと同様に、TypeScriptなしではフロントエンドの開発ができない世の中になっています。 そんなTypeScriptに囲まれた生活をしていると度々extendsを見ることになるでしょう。 今回はこのextendsの理解を深めるために記事を書きました。 Genericsのおさらい まずはじめに本記事ではGenericsを用いたコードが出てきますので、おさらいします。 以下は最もシンプルなGenericsを用いた記法です。 type A<T> = T const moji:A<string> = 'moji'; const suji:A<number> = 123;

                    TypeScriptのextendsってなんなん?
                  • 【Dart】abstract,mixin,extends,implements,with等の使い方基礎

                    上記以外の理解 通常の継承(extends) 一番オーソドックスなトップダウン的考え方 複数指定不可 && オーバーライドしなくてよい = スーパークラス abstractを利用した継承(extends) extendsを利用し、他のサブクラスのスーパークラスとする目的のクラス 全関数オーバーライド必須=クラスが必ずその関数を持つことを保証 共通で持つ変数を一括定義 複数指定不可 && オーバーライド必須 = 他クラス利用前提スーパークラス(変数と処理実装または未実装の関数置き場) Interface(implements) 全関数オーバーライド必須=クラスが必ずその関数を持つことを保証 基本的にはインターフェイス(関数定義)を利用するためのもの 複数指定可能 && オーバーライド必須 = 処理未実装の関数定義置き場 Mixins(with) 階層構造的な継承ではなく、追加で外付けするイメ

                      【Dart】abstract,mixin,extends,implements,with等の使い方基礎
                    • SAP Extends Its Innovation Commitment for SAP S/4HANA, Provides Clarity and Choice on SAP Business Suite 7

                      SAP Extends Its Innovation Commitment for SAP S/4HANA, Provides Clarity and Choice on SAP Business Suite 7 WALLDORF — SAP SE (NYSE: SAP) today announced a maintenance commitment for SAP S/4HANA until the end of 2040. At the same time, SAP will provide mainstream maintenance for core applications of SAP Business Suite 7 software* until the end of 2027 followed by optional extended maintenance until

                        SAP Extends Its Innovation Commitment for SAP S/4HANA, Provides Clarity and Choice on SAP Business Suite 7
                      • Oculus Quest battery pack extends battery life AND improves comfort (updated November 30, 2019) | 360 Rumors

                          Oculus Quest battery pack extends battery life AND improves comfort (updated November 30, 2019) | 360 Rumors
                        • AWS extends its TISAX scope to cover the London and Paris Regions | Amazon Web Services

                          AWS Security Blog AWS extends its TISAX scope to cover the London and Paris Regions We’re excited to announce the completion of Trusted Information Security Assessment Exchange (TISAX) certification on December 08, 2020 for the London and Paris regions. These regions were assessed at the HIGH protection level (AL 2) for the control domains Information Handling and Data Protection, according to art

                            AWS extends its TISAX scope to cover the London and Paris Regions | Amazon Web Services
                          • GitHub - elyra-ai/elyra: Elyra extends JupyterLab with an AI centric approach.

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              GitHub - elyra-ai/elyra: Elyra extends JupyterLab with an AI centric approach.
                            • Amazon Virtual Private Cloud (VPC) flow logs extends support for Amazon Elastic Container Service (ECS)

                              You can now turn on Amazon Virtual Private Cloud (VPC) Flow Logs for your Amazon Elastic Container Service (ECS) workloads running on both Amazon EC2 and AWS Fargate to export detailed telemetry information for all network flows. Amazon ECS helps you deploy and manage your containerized applications easily and efficiently. VPC Flow Logs enable you to capture and log information about your VPC netw

                                Amazon Virtual Private Cloud (VPC) flow logs extends support for Amazon Elastic Container Service (ECS)
                              1

                              新着記事