First upload version 0.0.1

This commit is contained in:
Neyra
2026-02-05 15:27:49 +08:00
commit 8e9b7201ed
4182 changed files with 593136 additions and 0 deletions

25
node_modules/universal-github-app-jwt/index.test-d.ts generated vendored Normal file
View File

@@ -0,0 +1,25 @@
import { expectType } from "tsd";
import githubAppJwt from ".";
export async function test() {
const result = await githubAppJwt({
id: 123,
privateKey: "",
});
expectType<number>(result.appId);
expectType<number>(result.expiration);
expectType<string>(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<string>(resultWithStringId.appId);
expectType<number>(resultWithStringId.expiration);
expectType<string>(resultWithStringId.token);
}