Docs for stdlib

This commit is contained in:
Zef Hemel
2026-07-15 17:55:18 +02:00
parent 23f338dc14
commit 599798c831
11 changed files with 1713 additions and 404 deletions
+8
View File
@@ -6,5 +6,13 @@ export const cryptoApi = new LuaTable({
(_sf, s: string | Uint8Array): Promise<string> => {
return hashSHA256(s);
},
{
kind: "builtin",
description: "Computes the SHA-256 digest of a string or byte buffer.",
parameters: [
{ name: "data", type: "string|bytes", description: "Data to hash." },
],
returns: [{ type: "string", description: "Hexadecimal SHA-256 digest." }],
},
),
});