DefinitelyTyped/types/koji-tools/koji-tools-tests.ts
Jeff Peterson 30dd1a6359 koji-tools types (#37726)
* Add koji-tools type definitions

* Prettier

* Linted

* Add remaining exports

* CRLF conversion

* Remove namespace
2019-08-23 14:49:21 -07:00

12 lines
312 B
TypeScript

import * as Koji from 'koji-tools';
Koji.watch();
Koji.pageLoad();
Koji.request({ url: 'www.test.org' });
Koji.pwaPrompt();
const myConfig = Koji.config;
const myRoutes = Koji.routes;
const myPwaInstaller = Koji.pwa;
Koji.on('test', () => 'Hello, world!');
const mySecret = Koji.resolveSecret('verySecretKey');