Skip to content

Commit

Permalink
Disable const enum generation to use in isolatedModules
Browse files Browse the repository at this point in the history
  • Loading branch information
Demon000 committed Jul 7, 2024
1 parent e774cdf commit 6d95e5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/* auto-generated by NAPI-RS */

export const enum VcpValueType {
export enum VcpValueType {
Continuous = 0,
NonContinuous = 1,
Table = 2,
Expand All @@ -23,7 +23,7 @@ export interface Table {
currentData: Array<number>
type: VcpValueType.Table
}
export const enum JsQueryType {
export enum JsQueryType {
Backend = 0,
Id = 1,
ManufacturerId = 2,
Expand Down Expand Up @@ -66,7 +66,7 @@ export declare class DisplayManager {
list(): Promise<Array<Display>>
}
export declare namespace VCPFeatureCode {
export const enum PresetFunctions {
export enum PresetFunctions {
CodePage = 0,
RestoreFactoryColorDefaults = 8,
RestoreFactoryDefaults = 4,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6d95e5b

Please sign in to comment.