Skip to content

Commit

Permalink
Refactor Transform.compose to have more specific typing
Browse files Browse the repository at this point in the history
  • Loading branch information
FayCarsons committed Jan 12, 2024
1 parent 7d46fd7 commit fa1c1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/joy.mli
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ val complex : shapes -> shape
val rotate : int -> shape -> shape
val translate : float -> float -> shape -> shape
val scale : float -> shape -> shape
val compose : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c
val compose : (shape -> shape) -> (shape -> shape) -> shape -> shape
val repeat : int -> (shape -> shape) -> shape -> shape
val context : Context.context option ref
val set_color : float * float * float -> unit
Expand Down
2 changes: 1 addition & 1 deletion lib/transform.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
val translate : float -> float -> Shape.shape -> Shape.shape
val scale : float -> Shape.shape -> Shape.shape
val rotate : int -> Shape.shape -> Shape.shape
val compose : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c
val compose : (Shape.shape -> Shape.shape) -> (Shape.shape -> Shape.shape) -> Shape.shape -> Shape.shape
val repeat : int -> (Shape.shape -> Shape.shape) -> Shape.shape -> Shape.shape

0 comments on commit fa1c1cf

Please sign in to comment.