Type of query function

Given an actor with the function query func someFunction(): async A, I would like to know how to explicitly write its type in Motoko, i.e. as

type SomeType = actor {
    ??? someFunction(): async A;
}

(the problem comes from the presence of the query modifier).

Thanks,
Matteo

You can define it as a query method like this:

type SomeType = actor {
    someFunction: shared query () -> async A;
}
2 Likes

simple indeed. Thanks!