api.testSquareInt()
Returns the squared received number; for testing only. This is an offline method. Can be called before authorization
Parameters
TestSquareIntParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
x | number | Number to square |
Returns
ApiResponse interface:interface ApiResponse {
_: 'testSquareInt' | 'error'
airgram: Airgram
request: {
method: 'testSquareInt'
params: TestSquareIntParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}