Skip to content

Commit

Permalink
refactor: add exports to nvmedit browser entry point (#7583)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Jan 29, 2025
1 parent e8b3387 commit 27d3415
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions packages/nvmedit/src/index_browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@

import "reflect-metadata";

export type {
NVMJSON,
NVMJSONController,
NVMJSONControllerRFConfig,
NVMJSONNode,
NVMJSONNodeWithInfo,
NVMJSONVirtualNode,
} from "./convert.js";
// FIXME: This transitively imports `semver`, which is fine to have in the browser
// Decide whether we want to add semver as a general exception to the forbidden imports rule
// eslint-disable-next-line @zwave-js/no-forbidden-imports
export {
json500To700,
json700To500,
Expand All @@ -22,8 +11,20 @@ export {
nvm500ToJSON,
nvmToJSON,
} from "./convert.js";
export type { NVM3EraseOptions, NVM3Meta } from "./lib/NVM3.js";
export type { NVM500EraseOptions, NVM500Info } from "./lib/NVM500.js";
export type {
NVMJSON,
NVMJSONController,
NVMJSONControllerRFConfig,
NVMJSONNode,
NVMJSONNodeWithInfo,
NVMJSONVirtualNode,
} from "./convert.js";
export { NVM3, type NVM3EraseOptions, type NVM3Meta } from "./lib/NVM3.js";
export {
NVM500,
type NVM500EraseOptions,
type NVM500Info,
} from "./lib/NVM500.js";
export { NVMAccess } from "./lib/common/definitions.js";
export type {
ControllerNVMProperty,
Expand All @@ -39,14 +40,17 @@ export type {
NodeNVMPropertyToDataType,
} from "./lib/common/definitions.js";
export { BufferedNVMReader } from "./lib/io/BufferedNVMReader.js";
export { NVM3Adapter } from "./lib/nvm3/adapter.js";
export {
FragmentType,
ObjectType,
PageStatus,
PageWriteSize,
} from "./lib/nvm3/consts.js";
export * from "./lib/nvm3/files/index.js";
export type { NVM3Object } from "./lib/nvm3/object.js";
export type { NVM3Page, NVM3PageHeader } from "./lib/nvm3/page.js";
export { NVM500Adapter } from "./lib/nvm500/adapter.js";
export type {
NVM500JSON,
NVM500JSONController,
Expand Down

0 comments on commit 27d3415

Please sign in to comment.