From b4d6f6663c319c615f66bf97712dd2e995416ecd Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 5 Jan 2023 20:59:26 +0200 Subject: [PATCH] fix: broken/missing exports missing `WatchdogConfig` export, and `ADCMuxInputType`/`ADCReference` were exported just as types, without the actual values. --- src/index.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1f4c2c7..e529bb6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,18 +8,18 @@ export { CPU } from './cpu/cpu'; export type { CPUMemoryHook, CPUMemoryHooks } from './cpu/cpu'; export { avrInstruction } from './cpu/instruction'; export { avrInterrupt } from './cpu/interrupt'; -export { adcConfig, atmega328Channels, AVRADC } from './peripherals/adc'; -export type { - ADCConfig, - ADCMuxConfiguration, - ADCMuxInput, +export { + adcConfig, ADCMuxInputType, ADCReference, + atmega328Channels, + AVRADC, } from './peripherals/adc'; +export type { ADCConfig, ADCMuxConfiguration, ADCMuxInput } from './peripherals/adc'; export { AVRClock, clockConfig } from './peripherals/clock'; export type { AVRClockConfig } from './peripherals/clock'; export { AVREEPROM, eepromConfig, EEPROMMemoryBackend } from './peripherals/eeprom'; -export type { EEPROMBackend, AVREEPROMConfig } from './peripherals/eeprom'; +export type { AVREEPROMConfig, EEPROMBackend } from './peripherals/eeprom'; export { AVRIOPort, INT0, @@ -54,3 +54,4 @@ export * from './peripherals/twi'; export { AVRUSART, usart0Config } from './peripherals/usart'; export { AVRUSI } from './peripherals/usi'; export { AVRWatchdog, watchdogConfig } from './peripherals/watchdog'; +export type { WatchdogConfig } from './peripherals/watchdog';