Use record types instead of object types

This commit is contained in:
Jun Koyama
2021-01-02 01:46:36 +09:00
parent 4c6db866c1
commit 28d5ec24a2
2 changed files with 2 additions and 4 deletions

View File

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