diff --git a/index.d.ts b/index.d.ts index 1d96162..0fe4303 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,7 +3,7 @@ /* auto-generated by NAPI-RS */ -export const enum VcpValueType { +export enum VcpValueType { Continuous = 0, NonContinuous = 1, Table = 2, @@ -23,7 +23,7 @@ export interface Table { currentData: Array type: VcpValueType.Table } -export const enum JsQueryType { +export enum JsQueryType { Backend = 0, Id = 1, ManufacturerId = 2, @@ -66,7 +66,7 @@ export declare class DisplayManager { list(): Promise> } export declare namespace VCPFeatureCode { - export const enum PresetFunctions { + export enum PresetFunctions { CodePage = 0, RestoreFactoryColorDefaults = 8, RestoreFactoryDefaults = 4, @@ -75,7 +75,7 @@ export declare namespace VCPFeatureCode { RestoreFactoryTvDefaults = 10, SaveRestoreSettings = 176, } - export const enum ImageAdjustment { + export enum ImageAdjustment { SixAxisHueControlBlue = 159, SixAxisHueControlCyan = 158, SixAxisHueControlGreen = 157, @@ -136,7 +136,7 @@ export declare namespace VCPFeatureCode { WindowSize = 166, WindowTransparency = 167, } - export const enum DisplayControl { + export enum DisplayControl { DisplayControllerId = 200, DisplayFirmwareLevel = 201, DisplayUsageTime = 198, @@ -150,7 +150,7 @@ export declare namespace VCPFeatureCode { Version = 223, VerticalFrequency = 174, } - export const enum Geometry { + export enum Geometry { BottomCornerFlare = 74, BottomCornerHook = 76, DisplayScaling = 134, @@ -185,7 +185,7 @@ export declare namespace VCPFeatureCode { WindowPositionTlX = 149, WindowPositionTlY = 150, } - export const enum Miscellaneous { + export enum Miscellaneous { ActiveControl = 82, AmbientLightSensor = 102, ApplicationEnableKey = 198, @@ -210,7 +210,7 @@ export declare namespace VCPFeatureCode { TransmitDisplayDescriptor = 195, TvChannelUpDown = 139, } - export const enum Audio { + export enum Audio { BalanceLR = 147, Bass = 145, JackConnectionStatus = 101, @@ -221,7 +221,7 @@ export declare namespace VCPFeatureCode { SpeakerVolume = 98, Treble = 143, } - export const enum Dpvl { + export enum Dpvl { BodyCrcErrorCount = 188, ClientId = 189, HeaderErrorCount = 187, diff --git a/package.json b/package.json index d3d49dd..c83cdaa 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ }, "scripts": { "artifacts": "napi artifacts", - "build": "napi build --platform --release --pipe \"prettier -w\"", + "build": "napi build --platform --release --pipe \"prettier -w\" --no-const-enum", "build:debug": "napi build --platform --pipe \"prettier -w\"", "format": "run-p format:prettier format:rs", "format:prettier": "prettier . -w",