Skip to content

Commit

Permalink
オリジナル関数の作成テスト
Browse files Browse the repository at this point in the history
  • Loading branch information
st-func committed Feb 2, 2024
1 parent 6fb3932 commit c410887
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="Functions.Namespace" DefaultValue="CONTOSO"/>
<bt:String id="Functions.Namespace" DefaultValue="STF"/>
<bt:String id="GetStarted.Title" DefaultValue="Get started with your sample add-in!"/>
<bt:String id="CommandsGroup.Label" DefaultValue="Commands Group"/>
<bt:String id="TaskpaneButton.Label" DefaultValue="Show Taskpane"/>
Expand Down
24 changes: 24 additions & 0 deletions src/functions/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,30 @@ export function add(first: number, second: number): number {
return first + second;
}

/**
* 2数の掛け算を実行する
* @customfunction
* @param first かけられる数
* @param second かける数
* @returns 掛け算した結果
*/
export function test_times(first: number, second: number): number {
return first * second;
}

/**
* 文字列を結合する
* @customfunction
* @param first 前の文字列
* @param second 後ろ文字列
* @returns 連結した文字列
*/
export function test_add_string(first: string, second: string): string {
return first +"+"+ second;
}



/**
* Displays the current time once a second.
* @customfunction
Expand Down

0 comments on commit c410887

Please sign in to comment.