Skip to content

Commit

Permalink
Disposable. Dispose typealias
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Feb 1, 2025
1 parent 7f0188a commit 8a4908a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kotlin-js/src/jsMain/kotlin/js/disposable/Disposable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ external interface Disposable {
@JsNative
operator fun get(
key: Symbol.dispose,
): () -> Unit = definedExternally
): Dispose = definedExternally
}
3 changes: 3 additions & 0 deletions kotlin-js/src/jsMain/kotlin/js/disposable/Dispose.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package js.disposable

typealias Dispose = () -> Unit

0 comments on commit 8a4908a

Please sign in to comment.