1
0
Fork 0

Specify type for Object.freeze

hfjnulyz-patch-1
Jun Koyama 2020-10-06 23:59:14 +09:00
parent b7b45d2eab
commit 4c6db866c1
No known key found for this signature in database
GPG Key ID: 7E7F553174548698
2 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,9 @@
* <br> * <br>
* https://docs.live2d.com/cubism-editor-manual/standard-parametor-list/ * https://docs.live2d.com/cubism-editor-manual/standard-parametor-list/
*/ */
export const CubismDefaultParameterId = Object.freeze({ export const CubismDefaultParameterId = Object.freeze<{
[key: string]: string;
}>({
// パーツID // パーツID
HitAreaPrefix: 'HitArea', HitAreaPrefix: 'HitArea',
HitAreaHead: 'Head', HitAreaHead: 'Head',

View File

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