Hawkbat / VTubeStudioJS

An implementation of the VTube Studio API for Node and browser JS
MIT License
45 stars 2 forks source link

Missing Export in types.d.ts #15

Closed TerryYoung518 closed 1 year ago

TerryYoung518 commented 1 year ago

I encountered an error while using IVTSParameter.name, and so on.

Upon examining the types.d.ts file, I noticed that the BaseParameter type is set to "any." To resolve this issue, I included the following code snippet in types.d.ts, resulting in the successful resolution of the error:

export interface BaseParameter {
    name: string;
    value: number;
    min: number;
    max: number;
    defaultValue: number;
}
Hawkbat commented 1 year ago

Good catch, I hadn't noticed that preventing that type from being exported prevented it from surfacing in its dependent types. I'll fix that.

Hawkbat commented 1 year ago

Fixed in v3.3.1.