Skip to content

Commit

Permalink
React. Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Dec 8, 2024
1 parent 0ca9763 commit c54bef8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions kotlin-react-core/src/jsMain/kotlin/react/Ref.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ package react
// Refs (16.3+)
sealed external interface Ref<in T : Any>

sealed external interface RefObject<T : Any> : Ref<T> {
sealed external interface RefObject<T : Any> :
Ref<T> {
val current: T?
}

sealed external interface MutableRefObject<T : Any> : RefObject<T> {
sealed external interface MutableRefObject<T : Any> :
RefObject<T> {
override var current: T?
}
3 changes: 2 additions & 1 deletion kotlin-react-core/src/jsMain/kotlin/react/RefCallback.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package react
import js.reflect.unsafeCast
import react.raw.useCallbackRaw

sealed external interface RefCallback<in T : Any> : Ref<T>
sealed external interface RefCallback<in T : Any> :
Ref<T>

inline fun <T : Any> RefCallback(
noinline callback: (T?) -> Unit,
Expand Down

0 comments on commit c54bef8

Please sign in to comment.