@flopflip/types
Advanced tools
Comparing version 2.5.10 to 3.0.0
# @flopflip/types | ||
## 3.0.0 | ||
### Major Changes | ||
- [`891fb29`](https://github.com/tdeekens/flopflip/commit/891fb294d5d6e016224b5a16d22760f0a55f9606) [#1287](https://github.com/tdeekens/flopflip/pull/1287) Thanks [@renovate](https://github.com/apps/renovate)! - flopflip is now built with TypeScript v4 which can cause compatibility issues if you project runs on an older version of TypeScript | ||
## 2.5.10 | ||
@@ -4,0 +10,0 @@ |
@@ -5,4 +5,2 @@ 'use strict'; | ||
// TODO: use labelled tuple elements only when we drop support for TS v3 | ||
(function (TAdapterSubscriptionStatus) { | ||
@@ -9,0 +7,0 @@ TAdapterSubscriptionStatus[TAdapterSubscriptionStatus["Subscribed"] = 0] = "Subscribed"; |
@@ -1,3 +0,1 @@ | ||
// TODO: use labelled tuple elements only when we drop support for TS v3 | ||
// export type TFlag = [flagName: TFlagName, flagVariation: TFlagVariation]; | ||
var TAdapterSubscriptionStatus; | ||
@@ -4,0 +2,0 @@ |
@@ -6,6 +6,4 @@ import type React from 'react'; | ||
export declare type TFlagVariation = boolean | string; | ||
export declare type TFlag = [TFlagName, TFlagVariation]; | ||
export declare type TFlags = { | ||
[key: string]: TFlagVariation; | ||
}; | ||
export declare type TFlag = [flagName: TFlagName, flagVariation: TFlagVariation]; | ||
export declare type TFlags = Record<string, TFlagVariation>; | ||
export declare type TUser = { | ||
@@ -62,11 +60,6 @@ key?: string; | ||
authorizationKey: string; | ||
options?: { | ||
[key: string]: unknown; | ||
core?: { | ||
[key: string]: string; | ||
}; | ||
options?: Record<string, unknown> & { | ||
core?: Record<string, string>; | ||
}; | ||
treatmentAttributes?: { | ||
[key: string]: string | number | boolean | Array<string | number>; | ||
}; | ||
treatmentAttributes?: Record<string, string | number | boolean | Array<string | number>>; | ||
}; | ||
@@ -73,0 +66,0 @@ export declare type TAdapterArgs = TLaunchDarklyAdapterArgs | TLocalStorageAdapterArgs | TMemoryAdapterArgs | TSplitioAdapterArgs; |
{ | ||
"name": "@flopflip/types", | ||
"version": "2.5.10", | ||
"version": "3.0.0", | ||
"description": "Type definitions for flipflop", | ||
@@ -40,7 +40,7 @@ "main": "dist/@flopflip-types.cjs.js", | ||
"dependencies": { | ||
"ts-essentials": "7.0.0" | ||
"ts-essentials": "7.0.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "3.x || 4.x" | ||
"typescript": "4.x" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37848
231
+ Addedts-essentials@7.0.1(transitive)
- Removedts-essentials@7.0.0(transitive)
Updatedts-essentials@7.0.1