Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: pipeable index * fix: typo * refactor: combine checkTsPlusCustomCall and checkTsPlusCustomSignature * refactor: cache only one signature
- Loading branch information
Showing
7 changed files
with
155 additions
and
16 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
effect/packages/package1/src/prelude/pipeable/pipeable-index.ts
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* @tsplus type pipeable-index/X | ||
*/ | ||
export interface X {} | ||
|
||
// /** | ||
// * @tsplus index pipeable-index/X | ||
// */ | ||
// export declare function f(self: X, index: number): void | ||
|
||
// /** | ||
// * @tsplus pipeable-index pipeable-index/X | ||
// */ | ||
// export declare function fn(index: number): (self: X) => string | ||
|
||
/** | ||
* @tsplus pipeable-index pipeable-index/X | ||
*/ | ||
export declare const fn: (index: number) => (self: X) => string | ||
|
||
declare const x: X | ||
|
||
const y = x[1] |
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ T.make(1).op(1) | |
|
||
T.make(1) + true | ||
|
||
// @ts-expect-error | ||
T.make(1).op(true) | ||
|
||
T.make(1) | ||
|
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
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
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
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
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