Specify type for Object.freeze

This commit is contained in:
Jun Koyama
2020-10-06 23:59:14 +09:00
parent b7b45d2eab
commit 4c6db866c1
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,7 @@ let s_cubismIdManager: CubismIdManager = null;
/**
* Framework内で使う定数の宣言
*/
export const Constant = Object.freeze({
export const Constant = Object.freeze<{ [key: string]: number }>({
vertexOffset: 0, // メッシュ頂点のオフセット値
vertexStep: 2 // メッシュ頂点のステップ値
});