@flopflip/types
Advanced tools
Comparing version 2.3.6-next.0 to 2.3.6-next.28
@@ -10,2 +10,8 @@ 'use strict'; | ||
(function (TAdapterConfigurationStatus) { | ||
TAdapterConfigurationStatus[TAdapterConfigurationStatus["Unconfigured"] = 0] = "Unconfigured"; | ||
TAdapterConfigurationStatus[TAdapterConfigurationStatus["Configuring"] = 1] = "Configuring"; | ||
TAdapterConfigurationStatus[TAdapterConfigurationStatus["Configured"] = 2] = "Configured"; | ||
})(exports.TAdapterConfigurationStatus || (exports.TAdapterConfigurationStatus = {})); | ||
var interfaceIdentifiers = { | ||
@@ -12,0 +18,0 @@ launchdarkly: 'launchdarkly', |
@@ -8,2 +8,10 @@ var TAdapterSubscriptionStatus; | ||
var TAdapterConfigurationStatus; | ||
(function (TAdapterConfigurationStatus) { | ||
TAdapterConfigurationStatus[TAdapterConfigurationStatus["Unconfigured"] = 0] = "Unconfigured"; | ||
TAdapterConfigurationStatus[TAdapterConfigurationStatus["Configuring"] = 1] = "Configuring"; | ||
TAdapterConfigurationStatus[TAdapterConfigurationStatus["Configured"] = 2] = "Configured"; | ||
})(TAdapterConfigurationStatus || (TAdapterConfigurationStatus = {})); | ||
var interfaceIdentifiers = { | ||
@@ -16,3 +24,3 @@ launchdarkly: 'launchdarkly', | ||
export { TAdapterSubscriptionStatus, interfaceIdentifiers }; | ||
export { TAdapterConfigurationStatus, TAdapterSubscriptionStatus, interfaceIdentifiers }; | ||
//# sourceMappingURL=@flopflip-types.es.js.map |
@@ -16,5 +16,9 @@ /// <reference types="react" /> | ||
} | ||
export declare enum TAdapterConfigurationStatus { | ||
Unconfigured = 0, | ||
Configuring = 1, | ||
Configured = 2 | ||
} | ||
export declare type TAdapterStatus = { | ||
isReady?: boolean; | ||
isConfigured?: boolean; | ||
configurationStatus: TAdapterConfigurationStatus; | ||
subscriptionStatus: TAdapterSubscriptionStatus; | ||
@@ -71,4 +75,4 @@ }; | ||
reconfigure(adapterArgs: Args, adapterEventHandlers: TAdapterEventHandlers): Promise<unknown>; | ||
getIsReady(): boolean; | ||
setIsReady?(nextStatus: TAdapterStatus): void; | ||
getIsConfigurationStatus(configurationStatus: TAdapterConfigurationStatus): boolean; | ||
setConfigurationStatus?(nextConfigurationStatus: TAdapterConfigurationStatus): void; | ||
waitUntilConfigured?(): Promise<unknown>; | ||
@@ -84,3 +88,3 @@ reset?(): void; | ||
reconfigure(adapterArgs: TLaunchDarklyAdapterArgs, adapterEventHandlers: TAdapterEventHandlers): Promise<unknown>; | ||
getIsReady(): boolean; | ||
getIsConfigurationStatus(adapterConfigurationStatus: TAdapterConfigurationStatus): boolean; | ||
getClient(): TLDClient | undefined; | ||
@@ -96,3 +100,3 @@ getFlag(flagName: TFlagName): TFlagVariation | undefined; | ||
reconfigure(adapterArgs: TLocalStorageAdapterArgs, adapterEventHandlers: TAdapterEventHandlers): Promise<unknown>; | ||
getIsReady(): boolean; | ||
getIsConfigurationStatus(adapterConfigurationStatus: TAdapterConfigurationStatus): boolean; | ||
waitUntilConfigured(): Promise<unknown>; | ||
@@ -106,4 +110,3 @@ unsubscribe(): void; | ||
reconfigure(adapterArgs: TMemoryAdapterArgs, adapterEventHandlers: TAdapterEventHandlers): Promise<unknown>; | ||
getIsReady(): boolean; | ||
setIsReady(nextStatus: TAdapterStatus): void; | ||
getIsConfigurationStatus(adapterConfigurationStatus: TAdapterConfigurationStatus): boolean; | ||
waitUntilConfigured(): Promise<unknown>; | ||
@@ -119,3 +122,3 @@ reset(): void; | ||
reconfigure(adapterArgs: TSplitioAdapterArgs, adapterEventHandlers: TAdapterEventHandlers): Promise<unknown>; | ||
getIsReady(): boolean; | ||
getIsConfigurationStatus(adapterConfigurationStatus: TAdapterConfigurationStatus): boolean; | ||
unsubscribe(): void; | ||
@@ -140,3 +143,4 @@ subscribe(): void; | ||
export declare type TConfigureAdapterChildrenAsFunctionArgs = { | ||
isAdapterReady: boolean; | ||
isAdapterReady?: boolean; | ||
isAdapterConfigured: boolean; | ||
}; | ||
@@ -143,0 +147,0 @@ export declare type TConfigureAdapterChildrenAsFunction = (args: TConfigureAdapterChildrenAsFunctionArgs) => React.ReactNode; |
{ | ||
"name": "@flopflip/types", | ||
"version": "2.3.6-next.0+87bc3c3", | ||
"version": "2.3.6-next.28+f332585", | ||
"description": "Type definitions for flipflop", | ||
@@ -39,3 +39,3 @@ "main": "dist/@flopflip-types.cjs.js", | ||
], | ||
"gitHead": "87bc3c34e64ec131f86e88c73d9ae3de3a1fd20d" | ||
"gitHead": "f3325850511bfa727396d683e55258bcc53537fd" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
29058
187