1
0
Fork 0

Use record types instead of object types

hfjnulyz-patch-1
Jun Koyama 2021-01-02 01:46:36 +09:00
parent 4c6db866c1
commit 28d5ec24a2
No known key found for this signature in database
GPG Key ID: 04354943629F07D3
2 changed files with 2 additions and 4 deletions

View File

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

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 // メッシュ頂点のステップ値
});