mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-23 07:31:48 +00:00
add test for stream canonicalization
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.3.2-SNAPSHOT
|
||||
* Aqua version: 0.4.0-SNAPSHOT
|
||||
*
|
||||
*/
|
||||
import { Fluence, FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -14,14 +14,10 @@ import {
|
||||
} from '@fluencelabs/fluence/dist/internal/compilerSupport/v2';
|
||||
|
||||
|
||||
function missingFields(obj: any, fields: string[]): string[] {
|
||||
return fields.filter(f => !(f in obj))
|
||||
}
|
||||
|
||||
// Services
|
||||
|
||||
export interface UnexistedDef {
|
||||
getStr: (callParams: CallParams<null>) => string;
|
||||
getStr: (callParams: CallParams<null>) => string | Promise<string>;
|
||||
}
|
||||
export function registerUnexisted(service: UnexistedDef): void;
|
||||
export function registerUnexisted(serviceId: string, service: UnexistedDef): void;
|
||||
@ -51,7 +47,7 @@ export function registerUnexisted(...args: any) {
|
||||
|
||||
|
||||
export interface OpADef {
|
||||
identity: (s: string, callParams: CallParams<'s'>) => string;
|
||||
identity: (s: string, callParams: CallParams<'s'>) => string | Promise<string>;
|
||||
}
|
||||
export function registerOpA(service: OpADef): void;
|
||||
export function registerOpA(serviceId: string, service: OpADef): void;
|
||||
|
Reference in New Issue
Block a user