mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Changing weird spacing
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
async function getStockValues(ticker: string, handler: CustomFunctions.StreamingHandler<number>) {
|
||||
const dollars = await (await fetch(`myService.com/prices/${ticker}`)).json();
|
||||
handler.setResult(dollars)
|
||||
handler.setResult(dollars)
|
||||
}
|
||||
|
||||
async function getStockValuesOneTime(ticker: string, handler: CustomFunctions.CancelableHandler) {
|
||||
var shouldStop = false;
|
||||
var shouldStop = false;
|
||||
handler.onCanceled = () => shouldStop = true;
|
||||
await pause(1000);
|
||||
|
||||
@@ -17,8 +17,8 @@ async function getStockValuesOneTime(ticker: string, handler: CustomFunctions.Ca
|
||||
}
|
||||
|
||||
async function getStockValuesNowWithNoCancelling(ticker: string) {
|
||||
const dollars = await (await fetch(`myService.com/prices/${ticker}`)).json();
|
||||
return dollars;
|
||||
const dollars = await (await fetch(`myService.com/prices/${ticker}`)).json();
|
||||
return dollars;
|
||||
}
|
||||
|
||||
function add10(n: number) {
|
||||
|
||||
Reference in New Issue
Block a user