fix(types): fix luau re-export stub logic

This commit is contained in:
Erica Marigold 2024-03-29 23:33:35 +05:30
parent 42af7620d5
commit 2da231ad42
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -4,10 +4,10 @@ export type Keypair = {
}
export type Wireguard = {
generateKeypair: () -> Keypair,
generatePrivateKey: (privateKey: { number }) -> string,
generateKeypair: (self: {}) -> Keypair,
generatePrivateKey: (self: {}, privateKey: { number }) -> string,
}
return {
wireguard = require("./init.lua") :: Wireguard,
wireguard = require("./init.lua").wireguard :: Wireguard,
}