Skip to content

Commit

Permalink
JSON. Add RawJSON type
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Jan 21, 2025
1 parent 687c4a1 commit 5faec38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions kotlin-js/src/jsMain/kotlin/js/json/RawJSON.type.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package js.json

/**
* [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/rawJSON#return_value)
*/
sealed external interface RawJSON {
val rawJSON: String
}
2 changes: 1 addition & 1 deletion kotlin-js/src/jsMain/kotlin/js/json/rawJSON.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ import js.import.JsQualifier
*/
external fun rawJSON(
value: String,
): Any
): RawJSON

0 comments on commit 5faec38

Please sign in to comment.