-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use JsMap wrapper (JS component) (#52)
- Loading branch information
1 parent
657a867
commit fff002a
Showing
4 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
12 changes: 7 additions & 5 deletions
12
src/jsMain/kotlin/org.hisp.dhis.lib.expression.js/ExpressionDataJs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package org.hisp.dhis.lib.expression.js | ||
|
||
import js.collections.JsMap | ||
|
||
@OptIn(ExperimentalJsExport::class) | ||
@JsExport | ||
data class ExpressionDataJs( | ||
val programRuleVariableValues: Array<Entry<String, VariableValueJs>> = emptyArray(), | ||
val programVariableValues: Array<Entry<String, Any>> = emptyArray(), | ||
val supplementaryValues: Array<Entry<String, Array<String>>> = emptyArray(), | ||
val dataItemValues: Array<Entry<DataItemJs, Any>> = emptyArray(), | ||
val namedValues: Array<Entry<String, Any>> = emptyArray() | ||
val programRuleVariableValues: JsMap<String, VariableValueJs> = JsMap(), | ||
val programVariableValues: JsMap<String, Any> = JsMap(), | ||
val supplementaryValues: JsMap<String, Array<String>> = JsMap(), | ||
val dataItemValues: JsMap<DataItemJs, Any> = JsMap(), | ||
val namedValues: JsMap<String, Any> = JsMap() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters