import { readFileSync } from "fs" ; import { PushEvent } from "@octokit/webhooks-types" ; param path returns export const fetchEvent = ( path ) : PushEvent => { const event = readFileSync ( path , "utf8" ) ; return JSON . parse ( event ) as PushEvent ; } ;