@flamelink/sdk-app-types
Advanced tools
Comparing version 1.0.0-alpha.25 to 1.0.0-alpha.27
// eslint-disable-next-line no-redeclare | ||
declare namespace App { | ||
type SubscriptionCallback = (error: Error | null, data: any) => any | ||
type UnsubscribeMethod = () => any | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
type FixMe = any | ||
type SubscriptionCallback = (error: Error | null, data: FixMe) => FixMe | ||
type UnsubscribeMethod = () => FixMe | ||
type StringOrNumber = string | number | ||
@@ -16,8 +19,8 @@ | ||
interface Modules { | ||
content?: any | ||
schemas?: any | ||
settings?: any | ||
nav?: any | ||
users?: any | ||
storage?: any | ||
content?: FixMe | ||
schemas?: FixMe | ||
settings?: FixMe | ||
nav?: FixMe | ||
users?: FixMe | ||
storage?: FixMe | ||
} | ||
@@ -31,3 +34,3 @@ | ||
type SetupModule = (context: Context) => any | ||
type SetupModule = (context: Context) => FixMe | ||
@@ -42,3 +45,3 @@ interface RegisteredModule { | ||
_registerModule(moduleName: ModuleName, setupModule: SetupModule): void | ||
_ensureService(serviceName: FirebaseService, context: Context): any | ||
_ensureService(serviceName: FirebaseService, context: Context): FixMe | ||
} | ||
@@ -51,12 +54,12 @@ | ||
interface PublicApi { | ||
content: any | ||
schemas: any | ||
storage: any | ||
nav: any | ||
settings: any | ||
users: any | ||
content: FixMe | ||
schemas: FixMe | ||
storage: FixMe | ||
nav: FixMe | ||
settings: FixMe | ||
users: FixMe | ||
} | ||
interface Config { | ||
firebaseApp: any | ||
firebaseApp: FixMe | ||
env?: string | ||
@@ -70,4 +73,4 @@ locale?: string | ||
modules: Modules | ||
services: any | ||
cache?: any | ||
services: FixMe | ||
cache?: FixMe | ||
emitter?: EventEmitter.Emitter | ||
@@ -80,3 +83,3 @@ proxySupported: boolean | ||
namespace EventEmitter { | ||
type Listener = (...args: any[]) => void | ||
type Listener = (...args: FixMe[]) => void | ||
@@ -90,3 +93,3 @@ interface Events { | ||
offAll(): void | ||
emit(event: string, ...args: any[]): void | ||
emit(event: string, ...args: FixMe[]): void | ||
once(event: string, listener: Listener): () => void | ||
@@ -97,4 +100,4 @@ } | ||
namespace PromiseEmitter { | ||
type ResolveFn = (data?: any) => any | ||
type RejectFn = (error?: any) => any | ||
type ResolveFn = (data?: FixMe) => FixMe | ||
type RejectFn = (error?: FixMe) => FixMe | ||
@@ -105,3 +108,3 @@ type Callback = ( | ||
emitter: EventEmitter.Emitter | ||
) => any | ||
) => FixMe | ||
@@ -115,4 +118,4 @@ type PromiseState = 'PENDING' | 'FULFILLED' | 'REJECTED' | ||
interface PromiseEmitter<T> extends PromiseLike<any>, EventEmitter.Emitter { | ||
then(resolveFn: ResolveFn, rejectFn?: RejectFn): any | ||
interface PromiseEmitter<T> extends PromiseLike<FixMe>, EventEmitter.Emitter { | ||
then(resolveFn: ResolveFn, rejectFn?: RejectFn): FixMe | ||
} | ||
@@ -134,3 +137,3 @@ } | ||
equalTo?: StringOrNumber | ||
[x: string]: any | ||
[x: string]: FixMe | ||
} | ||
@@ -146,4 +149,4 @@ | ||
interface Snapshot { | ||
val(): any | ||
[x: string]: any | ||
val(): FixMe | ||
[x: string]: FixMe | ||
} | ||
@@ -162,3 +165,3 @@ } | ||
type FilterClause = [string, string, any] | ||
type FilterClause = [string, string, FixMe] | ||
@@ -175,3 +178,3 @@ interface FilterOptions { | ||
limit?: number | ||
[x: string]: any | ||
[x: string]: FixMe | ||
} | ||
@@ -184,8 +187,8 @@ | ||
locale?: string | ||
[x: string]: any | ||
[x: string]: FixMe | ||
} | ||
interface DocumentSnapshot { | ||
data(): any | ||
[x: string]: any | ||
data(): FixMe | ||
[x: string]: FixMe | ||
} | ||
@@ -198,3 +201,3 @@ | ||
forEach(fn: CollectionSnapshotForEach): void | ||
[x: string]: any | ||
[x: string]: FixMe | ||
} | ||
@@ -201,0 +204,0 @@ } |
{ | ||
"name": "@flamelink/sdk-app-types", | ||
"version": "1.0.0-alpha.25", | ||
"version": "1.0.0-alpha.27", | ||
"publishConfig": { | ||
@@ -31,3 +31,3 @@ "access": "public" | ||
}, | ||
"gitHead": "be0090e332333c059808cd9a411d0e1deb0c9bf4" | ||
"gitHead": "6fc6efab69da85d13604c30c62a0e6960a2ba086" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5290
159