Skip to content

Commit 7bf56bd

Browse files
committed
feat: some anys removed
1 parent 043cc03 commit 7bf56bd

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

packages/auth-helpers/src/lib/recap/recap-session-capability-object.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class RecapSessionCapabilityObject implements ISessionCapabilityObject {
7676
addCapabilityForResource(
7777
litResource: ILitResource,
7878
ability: LIT_ABILITY_VALUES,
79-
data: any = {}
79+
data = {}
8080
): void {
8181
// Validate Lit ability is compatible with the Lit resource.
8282
if (!litResource.isValidLitAbility(ability)) {
@@ -94,14 +94,6 @@ export class RecapSessionCapabilityObject implements ISessionCapabilityObject {
9494
const { recapNamespace, recapAbility } =
9595
getRecapNamespaceAndAbility(ability);
9696

97-
if (!data) {
98-
return this.addAttenuation(
99-
litResource.getResourceKey(),
100-
recapNamespace,
101-
recapAbility
102-
);
103-
}
104-
10597
return this.addAttenuation(
10698
litResource.getResourceKey(),
10799
recapNamespace,

packages/misc/src/lib/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ export function getEnv({
686686
return defaultValue;
687687
}
688688

689-
export function sendRequest(
689+
export async function sendRequest(
690690
url: string,
691691
req: RequestInit,
692692
requestId: string

packages/schemas/src/lib/ILitNodeClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const ILitNodeClientSchema = z.object({
152152
sendCommandToNode: z
153153
.function()
154154
.args(SendNodeCommandSchema)
155-
.returns(z.promise(z.any())), // TODO
155+
.returns(z.promise(z.instanceof(Response))),
156156
/**
157157
*
158158
* Handshake with SGX
@@ -219,7 +219,7 @@ export const ILitNodeClientSchema = z.object({
219219
* @returns { Promise } A promise that resolves when the nodes are connected.
220220
*
221221
*/
222-
connect: z.function().returns(z.promise(z.any())), // TODO
222+
connect: z.function().returns(z.promise(z.void())),
223223
/**
224224
* Generates a session capability object
225225
*

packages/schemas/src/lib/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const ISessionCapabilityObjectSchema = z.object({
164164
.args(
165165
ILitResourceSchema,
166166
LitAbilitySchema,
167-
z.any().optional() // TODO
167+
z.record(z.string(), JsonSchema).optional()
168168
)
169169
.returns(z.void()),
170170
/**

0 commit comments

Comments
 (0)