"rollup-plugin-delete": "^2.0.0",
"semver": "^7.3.8",
"ts-node": "^10.9.1",
- "typescript": "^4.9.5"
+ "typescript": "^5.0.2"
},
"engines": {
"node": ">=16.0.0",
"node": ">=8"
}
},
+ "node_modules/@commitlint/load/node_modules/typescript": {
+ "version": "4.9.5",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
+ "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
+ "dev": true,
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=4.2.0"
+ }
+ },
"node_modules/@commitlint/message": {
"version": "17.4.2",
"resolved": "https://registry.npmjs.org/@commitlint/message/-/message-17.4.2.tgz",
}
},
"node_modules/typescript": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
- "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
+ "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
- "node": ">=4.2.0"
+ "node": ">=12.20"
}
},
"node_modules/uglify-js": {
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
"integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
"dev": true
+ },
+ "typescript": {
+ "version": "4.9.5",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
+ "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
+ "dev": true
}
}
},
}
},
"typescript": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
- "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
+ "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
"dev": true
},
"uglify-js": {
"rollup-plugin-delete": "^2.0.0",
"semver": "^7.3.8",
"ts-node": "^10.9.1",
- "typescript": "^4.9.5"
+ "typescript": "^5.0.2"
}
}
type ChargingStationOcppConfiguration,
type ChargingStationTemplate,
ConnectorPhaseRotation,
- ConnectorStatus,
+ type ConnectorStatus,
ConnectorStatusEnum,
CurrentType,
type ErrorCallback,
// Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import { Configuration, Connection, IDatabaseDriver, MikroORM, Options } from '@mikro-orm/core';
+import {
+ Configuration,
+ Connection,
+ type IDatabaseDriver,
+ MikroORM,
+ type Options,
+} from '@mikro-orm/core';
import { TsMorphMetadataProvider } from '@mikro-orm/reflection';
import {
type ConfigurationKeyType,
ConfigurationStatus,
ConnectorPhaseRotation,
- ConnectorStatus,
+ type ConnectorStatus,
ConnectorStatusEnum,
CurrentType,
DBName,
export * from './ocpp/ChargingProfile';
export * from './ocpp/Configuration';
export * from './ocpp/ConnectorStatusEnum';
-export * from './ocpp/ErrorType';
+export { ErrorType } from './ocpp/ErrorType';
export * from './ocpp/MessageType';
export * from './ocpp/MeterValues';
-export * from './ocpp/OCPPProtocol';
-export * from './ocpp/OCPPVersion';
+export { OCPPProtocol } from './ocpp/OCPPProtocol';
+export { OCPPVersion } from './ocpp/OCPPVersion';
export * from './ocpp/Requests';
export * from './ocpp/Responses';
export * from './ocpp/Transaction';
export * from './orm/entities/PerformanceRecord';
export * from './AutomaticTransactionGenerator';
export * from './ChargingStationConfiguration';
-export * from './ChargingStationInfo';
+export type { ChargingStationInfo, ChargingStationInfoConfiguration } from './ChargingStationInfo';
export * from './ChargingStationOcppConfiguration';
export * from './ChargingStationTemplate';
export * from './ChargingStationWorker';
export * from './ConfigurationData';
-export * from './ConnectorStatus';
-export * from './EmptyObject';
-export * from './Error';
-export * from './FileType';
-export * from './JsonType';
+export type { ConnectorStatus } from './ConnectorStatus';
+export type { EmptyObject } from './EmptyObject';
+export type { HandleErrorParams } from './Error';
+export { FileType } from './FileType';
+export type { JsonType, JsonObject } from './JsonType';
export * from './MeasurandPerPhaseSampledValueTemplates';
-export * from './MeasurandValues';
+export type { MeasurandValues } from './MeasurandValues';
export * from './Statistics';
export * from './Storage';
export * from './UIProtocol';
"importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
+ "verbatimModuleSyntax": true,
/* Strict Type-Checking Options */
// "strict": true, /* Enable all strict type-checking options. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
- "importsNotUsedAsValues": "error", /* Enforce using `import type` instead of `import` for types */
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */