Skip to content

Commit 3ebdb55

Browse files
committed
Mention preference for overloads in contrib doc
1 parent 8e7387e commit 3ebdb55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Please:
5454
* Use `def` for read-only properties unless there is a compelling reason it should be a `val`
5555
(i.e., the spec definitively states it is constant)
5656
* Use `Double` for integer-values that can fall outside the range of `Int`
57+
* Prefer adding overloads instead of using union `|` types for method and constructor parameters
5758
* Add scaladocs via copy-paste from MDN
5859

5960

0 commit comments

Comments
 (0)