Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support companion extensions on interface and type fix: overly permissive isCompanionReference fix: call extensions feat: import json extension definitions from package.json
- Loading branch information
Showing
16 changed files
with
420 additions
and
89 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* @tsplus type companions-everwhere/A | ||
* @tsplus companion companions-everywhere/AOps | ||
*/ | ||
export type A = {} | ||
|
||
/** | ||
* @tsplus static companions-everywhere/AOps get | ||
*/ | ||
export const get: A = {} | ||
|
||
/** | ||
* @tsplus static companions-everywhere/AOps __call | ||
*/ | ||
export const callA = (): A => ({}) | ||
|
||
class X {} | ||
|
||
new X() | ||
X |
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,51 @@ | ||
{ | ||
"@fp-ts/core/Async": [ | ||
{ | ||
"definitionName": "Async", | ||
"definitionKind": "interface", | ||
"extensions": [ | ||
{ | ||
"kind": "type", | ||
"typeName": "fp-ts/Async" | ||
}, | ||
{ | ||
"kind": "companion", | ||
"typeName": "fp-ts/AsyncOps" | ||
} | ||
] | ||
}, | ||
{ | ||
"definitionName": "fromSync", | ||
"definitionKind": "const", | ||
"extensions": [ | ||
{ | ||
"kind": "static", | ||
"typeName": "fp-ts/AsyncOps", | ||
"name": "fromSync" | ||
} | ||
] | ||
}, | ||
{ | ||
"definitionName": "delay", | ||
"definitionKind": "const", | ||
"extensions": [ | ||
{ | ||
"kind": "pipeable", | ||
"typeName": "fp-ts/Async", | ||
"name": "delay" | ||
} | ||
] | ||
}, | ||
{ | ||
"definitionName": "map", | ||
"definitionKind": "const", | ||
"extensions": [ | ||
{ | ||
"kind": "pipeable", | ||
"typeName": "fp-ts/Async", | ||
"name": "map" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { Async } from '@fp-ts/core/Async' | ||
|
||
Async.fromSync(() => console.log("Fluent in fp-ts!")).delay(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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Effect.succeed(() => 1) | ||
|
||
Maybe.just("A") | ||
Maybe.just("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
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
Oops, something went wrong.