ページへ戻る
− Links
印刷
TypeScriptのInterface
の編集 ::
NJF Wiki
xpwiki
:
TypeScriptのInterface
の編集
# l97b7524 の編集
ページ内容:
*クラス型 [#l97b7524] クラスの型定義。他の言語でInterfaceという時と同じもの。「implements」で実装する。 interface ClockInterface { currentTime: Date; setTime(d: Date); } class Clock implements ClockInterface { currentTime: Date; setTime(d: Date) { this.currentTime = d; } constructor(h: number, m: number) { } }
編集の要約:
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