mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-23 16:21:02 +00:00
Fix ESLint errors in governance screens, services, types, and utils
This commit is contained in:
Vendored
+24
-24
@@ -11,31 +11,31 @@ declare module '@pezkuwi/types/types/codec' {
|
||||
isNone: boolean;
|
||||
isSome: boolean;
|
||||
isEmpty: boolean;
|
||||
unwrap(): any;
|
||||
unwrapOr<T>(defaultValue: T): any;
|
||||
unwrapOrDefault(): any;
|
||||
unwrap(): unknown;
|
||||
unwrapOr<T>(defaultValue: T): T | unknown;
|
||||
unwrapOrDefault(): unknown;
|
||||
|
||||
// Primitive conversions
|
||||
toNumber(): number;
|
||||
toBigInt(): bigint;
|
||||
toJSON(): any;
|
||||
toJSON(): unknown;
|
||||
toString(): string;
|
||||
toHex(): string;
|
||||
|
||||
// Common properties
|
||||
data?: any;
|
||||
free?: any;
|
||||
balance?: any;
|
||||
commission?: any;
|
||||
keys?: any;
|
||||
data?: { free?: Codec; balance?: Codec };
|
||||
free?: Codec;
|
||||
balance?: Codec;
|
||||
commission?: Codec;
|
||||
keys?: Codec[];
|
||||
|
||||
// Delegation checks
|
||||
isDelegating?: boolean;
|
||||
asDelegating?: any;
|
||||
asDelegating?: { target: Codec; balance: Codec; conviction: Codec };
|
||||
|
||||
// Iterator support
|
||||
[Symbol.iterator]?(): Iterator<any>;
|
||||
map?<T>(fn: (value: any) => T): T[];
|
||||
[Symbol.iterator]?(): Iterator<unknown>;
|
||||
map?<T>(fn: (value: unknown) => T): T[];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,22 +44,22 @@ declare module '@pezkuwi/types-codec' {
|
||||
isNone: boolean;
|
||||
isSome: boolean;
|
||||
isEmpty: boolean;
|
||||
unwrap(): any;
|
||||
unwrapOr<T>(defaultValue: T): any;
|
||||
unwrapOrDefault(): any;
|
||||
unwrap(): unknown;
|
||||
unwrapOr<T>(defaultValue: T): T | unknown;
|
||||
unwrapOrDefault(): unknown;
|
||||
toNumber(): number;
|
||||
toBigInt(): bigint;
|
||||
toJSON(): any;
|
||||
toJSON(): unknown;
|
||||
toString(): string;
|
||||
toHex(): string;
|
||||
data?: any;
|
||||
free?: any;
|
||||
balance?: any;
|
||||
commission?: any;
|
||||
keys?: any;
|
||||
data?: { free?: Codec; balance?: Codec };
|
||||
free?: Codec;
|
||||
balance?: Codec;
|
||||
commission?: Codec;
|
||||
keys?: Codec[];
|
||||
isDelegating?: boolean;
|
||||
asDelegating?: any;
|
||||
[Symbol.iterator]?(): Iterator<any>;
|
||||
map?<T>(fn: (value: any) => T): T[];
|
||||
asDelegating?: { target: Codec; balance: Codec; conviction: Codec };
|
||||
[Symbol.iterator]?(): Iterator<unknown>;
|
||||
map?<T>(fn: (value: unknown) => T): T[];
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+4
-2
@@ -28,9 +28,10 @@ declare module '@pezkuwi/extension-inject/types' {
|
||||
|
||||
declare module '@pezkuwi/extension-dapp' {
|
||||
import type { InjectedAccountWithMeta } from '@pezkuwi/extension-inject/types';
|
||||
import type { Signer } from '@pezkuwi/api/types';
|
||||
|
||||
interface InjectedWeb3 {
|
||||
signer: any;
|
||||
signer: Signer;
|
||||
name: string;
|
||||
version: string;
|
||||
}
|
||||
@@ -43,7 +44,8 @@ declare module '@pezkuwi/extension-dapp' {
|
||||
|
||||
// Path alias for shared lib - used in web context
|
||||
declare module '@/lib/supabase' {
|
||||
export const supabase: any;
|
||||
import type { SupabaseClient } from '@supabase/supabase-js';
|
||||
export const supabase: SupabaseClient;
|
||||
}
|
||||
|
||||
// Import.meta.env for Vite-like environments
|
||||
|
||||
Reference in New Issue
Block a user