import { expectType } from "tsd"; import githubAppJwt from "."; export async function test() { const result = await githubAppJwt({ id: 123, privateKey: "", }); expectType(result.appId); expectType(result.expiration); expectType(result.token); } // Test case to verify `id` can be set to a string export async function testWithStringId() { const resultWithStringId = await githubAppJwt({ id: "client_id_string", privateKey: "", }); expectType(resultWithStringId.appId); expectType(resultWithStringId.expiration); expectType(resultWithStringId.token); }