Skip to content

Commit 3503b48

Browse files
Make exports explicit
Without this, it became unclear which exports in `ipc/MetaFiles` and `ipc/schema` are really to be used by clients of shared and which are only exported for internal usage.
1 parent d1db5c5 commit 3503b48

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

main/index.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,20 @@ export const serialPort = {
2828
forRenderer: forRendererSerialPort,
2929
};
3030

31-
export * from '../ipc/MetaFiles';
32-
export * from '../ipc/schema/packageJson';
31+
export {
32+
type AppInfo,
33+
type NrfutilModuleName,
34+
type NrfutilModules,
35+
type NrfutilModuleVersion,
36+
type SourceJson,
37+
type WithdrawnJson,
38+
} from '../ipc/MetaFiles';
39+
export {
40+
type LegacyPackageJson,
41+
type PackageJson,
42+
parseLegacyPackageJson,
43+
parsePackageJson,
44+
} from '../ipc/schema/packageJson';
3345

3446
export { type OverwriteOptions } from '../ipc/serialPort';
3547
export { type OpenAppOptions } from '../ipc/openWindow';

0 commit comments

Comments
 (0)