Replace superstruct
with ESM-compatible fork @metamask/superstruct
#4458
Annotations
10 errors
packages/snaps-rpc-methods/src/permitted/createInterface.ts#L42
Type '(req: JsonRpcRequest<CreateInterfaceParams>, res: PendingJsonRpcResponse<string>, _next: unknown, end: JsonRpcEngineEndCallback, { createInterface }: CreateInterfaceMethodHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<CreateInterfaceMethodHooks, CreateInterfaceParams, string>'.
|
packages/snaps-rpc-methods/src/permitted/getAllSnaps.ts#L27
Type '(request: JsonRpcRequest<JsonRpcParams>, response: PendingJsonRpcResponse<GetSnapsResult>, _next: unknown, end: JsonRpcEngineEndCallback, { getAllSnaps }: GetAllSnapsHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<GetAllSnapsHooks, JsonRpcParams, GetSnapsResult>'.
|
packages/snaps-rpc-methods/src/permitted/getClientStatus.ts#L25
Type '(_request: JsonRpcRequest<JsonRpcParams>, response: PendingJsonRpcResponse<GetClientStatusResult>, _next: unknown, end: JsonRpcEngineEndCallback, { getIsLocked }: GetClientStatusHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<GetClientStatusHooks, JsonRpcParams, GetClientStatusResult>'.
|
packages/snaps-rpc-methods/src/permitted/getInterfaceState.ts#L34
Type '(req: JsonRpcRequest<GetInterfaceStateParams>, res: PendingJsonRpcResponse<Record<string, string | boolean | { name: string; size: number; contentType: string; contents: string; } | Record<...> | null>>, _next: unknown, end: JsonRpcEngineEndCallback, { getInterfaceState }: GetInterfaceStateMethodHooks) => void' is not assignable to type 'HandlerMiddlewareFunction<GetInterfaceStateMethodHooks, GetInterfaceStateParams, Record<string, string | boolean | { name: string; size: number; contentType: string; contents: string; } | Record<...> | null>>'.
|
packages/snaps-rpc-methods/src/permitted/getSnaps.ts#L21
Type '(_req: unknown, res: PendingJsonRpcResponse<GetSnapsResult>, _next: unknown, end: JsonRpcEngineEndCallback, { getSnaps }: GetSnapsHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<GetSnapsHooks, JsonRpcParams, GetSnapsResult>'.
|
packages/snaps-rpc-methods/src/permitted/requestSnaps.ts#L43
Type '(req: JsonRpcRequest<RequestSnapsParams>, res: PendingJsonRpcResponse<RequestSnapsResult>, _next: unknown, end: JsonRpcEngineEndCallback, { installSnaps, requestPermissions, getPermissions }: RequestSnapsHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<RequestSnapsHooks, RequestSnapsParams, RequestSnapsResult>'.
|
packages/snaps-rpc-methods/src/permitted/resolveInterface.ts#L34
Type '(req: JsonRpcRequest<ResolveInterfaceParams>, res: PendingJsonRpcResponse<null>, _next: unknown, end: JsonRpcEngineEndCallback, { resolveInterface }: ResolveInterfaceMethodHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<ResolveInterfaceMethodHooks, ResolveInterfaceParams, null>'.
|
packages/snaps-rpc-methods/src/permitted/updateInterface.ts#L35
Type '(req: JsonRpcRequest<UpdateInterfaceParams>, res: PendingJsonRpcResponse<null>, _next: unknown, end: JsonRpcEngineEndCallback, { updateInterface }: UpdateInterfaceMethodHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<UpdateInterfaceMethodHooks, UpdateInterfaceParams, null>'.
|
packages/snaps-rpc-methods/src/permitted/getFile.ts#L39
Type '(req: JsonRpcRequest<GetFileParams>, res: PendingJsonRpcResponse<string>, _next: unknown, end: JsonRpcEngineEndCallback, { getSnapFile }: GetFileHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<GetFileHooks, GetFileParams, string>'.
|
packages/snaps-rpc-methods/src/permitted/invokeSnapSugar.ts#L20
Type '(req: JsonRpcRequest<InvokeSnapParams>, res: PendingJsonRpcResponse<Json>, _next: JsonRpcEngineNextCallback, end: JsonRpcEngineEndCallback, { invokeSnap }: InvokeSnapSugarHooks) => Promise<...>' is not assignable to type 'HandlerMiddlewareFunction<InvokeSnapSugarHooks, InvokeSnapParams, Json>'.
|
The logs for this run have expired and are no longer available.
Loading