mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-12 22:36:10 +08:00
10 lines
160 B
TypeScript
10 lines
160 B
TypeScript
import elementReady = require('element-ready');
|
|
|
|
const p = elementReady('#unicorn');
|
|
|
|
p.then(element => {
|
|
const el: HTMLElement = element;
|
|
});
|
|
|
|
p.cancel();
|