This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Timers; | |
using Timer = System.Timers.Timer; | |
public class TimerAction | |
{ | |
private readonly Action action; | |
private readonly Timer timer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let app = {}; | |
import * as arrowFunction from './test_arrowFunction.js'; | |
app.arrowFunction = arrowFunction; | |
import * as exportDefaultClass from './test_exportDefaultClass.js'; | |
app.exportDefaultClass = exportDefaultClass; | |
window.app = app; | |
console.log(app); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// conditional promises chaining | |
function preTask(): Promise<void> { | |
console.log('pre task'); | |
return Promise.resolve(); | |
} | |
function task1(): Promise<void> { | |
console.log('task for type1'); | |
return Promise.resolve(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const npmPackageName = "ts-morph"; // <--- change name | |
const got = require("[email protected]"); | |
const url = (name) => | |
`https://api.npms.io/v2/package/${encodeURIComponent(name)}`; | |
const map = []; | |
require("[email protected]")(npmPackageName) | |
.then((dependents) => { | |
return Promise.allSettled( | |
dependents.map((d) => { |
OlderNewer