File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Plugin } from '@posthog/plugin-scaffold'
2
2
import type { RequestInfo , RequestInit , Response } from 'node-fetch'
3
3
4
- /** fetch only declared, as it's provided as a plugin VM global. */
4
+ // fetch only declared, as it's provided as a plugin VM global
5
5
declare function fetch ( url : RequestInfo , init ?: RequestInit ) : Promise < Response >
6
6
7
- /** Internal library function. */
7
+ // Internal library function
8
8
async function fetchTrulyRandomInteger ( ) : Promise < number > {
9
9
const response = await fetch (
10
10
'https://www.random.org/integers/?num=1&min=1&max=1000000000&col=1&base=10&format=plain&rnd=new'
@@ -13,7 +13,7 @@ async function fetchTrulyRandomInteger(): Promise<number> {
13
13
return integer
14
14
}
15
15
16
- /** The famed Hello World plugin itself. */
16
+ // The famed Hello World plugin itself
17
17
const helloWorld : Plugin = {
18
18
setupPlugin : async ( { config } ) => {
19
19
console . log ( `Setting up the plugin:\n${ config . greeting } ` )
You can’t perform that action at this time.
0 commit comments