ページへ戻る
− Links
印刷
TypeScriptのInterface
の編集 ::
NJF Wiki
xpwiki
:
TypeScriptのInterface
の編集
# ee044493 の編集
ページ内容:
*Interfaceの継承 [#ee044493] extendsでInterfaceからInterfaceを継承できる。何個でもできる。クラス型で無くてもできる。 interface Shape { color: string; } interface PenStroke { penWidth: number; } interface Square extends Shape, PenStroke { sideLength: number; } var square = <Square>{}; square.color = "blue"; square.sideLength = 10; square.penWidth = 5.0;
編集の要約:
Q & A 認証:
ページ更新時は次の質問にお答えください。(プレビュー時は必要ありません)
Q:
「大阪」の読みがな?(ひらがなで)
A:
お名前:
タイムスタンプを変更しない
テキスト整形のルールを表示する
[1]
Links list
(This host) = https://njf.jp
(This host)
/cms/modules/xpwiki/?cmd=edit&help=true&page=TypeScript%E3%81%AEInterface