fix declare bug when response resolves to a non-function
0.7.0