Skip to content

Commit

Permalink
chore(types): types-index with .ts notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Sep 27, 2024
1 parent 92cbbc2 commit f32591c
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 302 deletions.
4 changes: 2 additions & 2 deletions packages/notifier/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ export {
export * from './storesub.js';
export * from './stored-notifier.js';

// eslint-disable-next-line import/export -- doesn't know types
export * from './types.js';
// eslint-disable-next-line import/export
export * from './types-index.js'; // no named exports in JS
2 changes: 2 additions & 0 deletions packages/notifier/src/types-index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Export all the types this package provides
export * from './types.js';
2 changes: 2 additions & 0 deletions packages/notifier/src/types-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Empty JS file to correspond with its .d.ts twin
export {};
300 changes: 0 additions & 300 deletions packages/notifier/src/types.js

This file was deleted.

Loading

0 comments on commit f32591c

Please sign in to comment.