Skip to content

Commit

Permalink
Merge pull request #65 from komune-io/tsGen-nullable-any
Browse files Browse the repository at this point in the history
fix `Nullable<any> /* ... */`
  • Loading branch information
apoupard committed May 27, 2024
2 parents 6d74373 + 753d473 commit d6a4893
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fun Kt2Ts.buildCleaningRegex(): MutableMap<String, List<Pair<Regex, String>>> {
Regex("""kotlin.js.""") to "",
Regex("""org.w3c.dom.url.""") to "",
Regex("""org.w3c.dom.""") to "",
Regex(""" any/\* ([^*/]*) \*/""") to " $1",
Regex(""" (?:any|Nullable<any>)/\* ([^*/]*) \*/""") to " $1",
Regex("""type Nullable<T> = T \| null \| undefined\n""") to "",
Regex("""(?<=\(|, |readonly )(\w*)(\?)?: Nullable<([\w\.<>, \[\]]*)>(?=\)|, |;|/*)""") to "$1?: $3",
Regex("""kotlin.collections.Map""") to "Record",
Expand Down

0 comments on commit d6a4893

Please sign in to comment.