mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
Respecting setups with "noImplicitAny" set to "true" in tsconfig.json (#123)
This commit is contained in:
parent
a8fd7f5c13
commit
3d6cc02382
@ -26,6 +26,7 @@ object TypescriptFile {
|
||||
| */
|
||||
|import { FluenceClient, PeerIdB58 } from '@fluencelabs/fluence';
|
||||
|import { RequestFlowBuilder } from '@fluencelabs/fluence/dist/api.unstable';
|
||||
|import { RequestFlow } from '@fluencelabs/fluence/dist/internal/RequestFlow';
|
||||
|""".stripMargin
|
||||
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ case class TypescriptFunc(func: FuncCallable) {
|
||||
s"""
|
||||
|export async function ${func.funcName}(client: FluenceClient${if (func.args.isEmpty) ""
|
||||
else ", "}${argsTypescript}): Promise<$retType> {
|
||||
| let request;
|
||||
| let request: RequestFlow;
|
||||
| const promise = new Promise<$retType>((resolve, reject) => {
|
||||
| request = new RequestFlowBuilder()
|
||||
| .disableInjections()
|
||||
@ -77,7 +77,7 @@ case class TypescriptFunc(func: FuncCallable) {
|
||||
| })
|
||||
| .build();
|
||||
| });
|
||||
| await client.initiateFlow(request);
|
||||
| await client.initiateFlow(request!);
|
||||
| return ${returnVal};
|
||||
|}
|
||||
""".stripMargin
|
||||
|
Loading…
Reference in New Issue
Block a user