-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interfaces): add readonly to interface members for Alt and Plus
BREAKING CHANGE: In 5.2.0, Alt had an interface which didn't make alt readonly. It is now readonly.
- Loading branch information
1 parent
bee420e
commit 801d1eb
Showing
2 changed files
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { Type, URIs } from './HKT' | ||
|
||
export interface Alt1<F extends URIs, A> { | ||
alt: (fa: Type<F, A>) => Type<F, A> | ||
readonly alt: (fa: Type<F, A>) => Type<F, A> | ||
} | ||
|
||
export interface AltS1<F extends URIs> { | ||
alt: <A>(f2: Type<F, A>, f1: Type<F, A>) => Type<F, A> | ||
readonly alt: <A>(f2: Type<F, A>, f1: Type<F, A>) => Type<F, A> | ||
} |
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