@flopflip/types
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -23,7 +23,8 @@ // Type definitions for @flopflip/react 5.x | ||
} | ||
export type User = { | ||
key?: string; | ||
}; | ||
export type Flags = { [flagName: string]: FlagVariation }; | ||
export type AdapterArgs = { | ||
user: { | ||
key?: string; | ||
}; | ||
user: User; | ||
onFlagsStateChange: () => void; | ||
@@ -56,3 +57,7 @@ onStatusStateChange: () => void; | ||
} | ||
export interface SwitcComponenthProps { | ||
export interface ReconfigureComponentProps { | ||
exact?: boolean; | ||
user: User; | ||
} | ||
export interface SwitchComponenthProps { | ||
children?: React.ReactNode; | ||
@@ -77,3 +82,3 @@ } | ||
export class SwitchFeature extends React.Component< | ||
SwitcComponenthProps, | ||
SwitchComponenthProps, | ||
any | ||
@@ -91,2 +96,7 @@ > {} | ||
> {} | ||
export class ReconfigureFlopflip extends React.Component< | ||
ReconfigureComponentProps, | ||
any | ||
> {} | ||
} |
@@ -5,6 +5,7 @@ export type FlagName = string; | ||
export type Flags = { [FlagName]: FlagVariation }; | ||
export type User = { | ||
key?: string, | ||
}; | ||
export type AdapterArgs = { | ||
user: { | ||
key?: string, | ||
}, | ||
user: User, | ||
onFlagsStateChange: () => void, | ||
@@ -11,0 +12,0 @@ onStatusStateChange: () => void, |
{ | ||
"name": "@flopflip/types", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Type definitions for flipflop", | ||
@@ -5,0 +5,0 @@ "scripts": {}, |
4796
111