Skip to content

Commit

Permalink
Merge pull request #2477 from opral/nilsjacobsen/inlmc-32-types-of-ev…
Browse files Browse the repository at this point in the history
…ent-need-to-be-exported

add event type to settings component
  • Loading branch information
NilsJacobsen authored Mar 27, 2024
2 parents 4c6cc99 + bc5f2e6 commit a8f7b74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions inlang/source-code/settings-component/src/events/events.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type { SetSettingsEvent } from "./setSettings.ts"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type SetSettingsEvent = CustomEvent<Record<PropertyKey, never>>

declare global {
interface GlobalEventHandlersEventMap {
setSettings: SetSettingsEvent
}
}
1 change: 1 addition & 0 deletions inlang/source-code/settings-component/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as InlangSettings } from "./stories/inlang-settings.js"
export * from "./events/events.js"

0 comments on commit a8f7b74

Please sign in to comment.