Skip to content

Commit

Permalink
fix: Types not being exported and autocomplete not working (#284)
Browse files Browse the repository at this point in the history
* fix: Types not being exported and autocomplete not working

* new patch version v9.0.1
  • Loading branch information
tiagoapolo authored Jan 20, 2025
1 parent 94bcd3e commit ad4a206
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IFlagsmith } from './types';
declare const flagsmith: IFlagsmith;
export default flagsmith;
export * from './types';
export declare const createFlagsmithInstance: <
F extends string = string,
T extends string = string,
Expand Down
14 changes: 9 additions & 5 deletions lib/flagsmith/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagsmith",
"version": "9.0.0",
"version": "9.0.1",
"description": "Feature flagging to support continuous development",
"main": "./index.js",
"module": "./index.mjs",
Expand All @@ -10,22 +10,26 @@
".": {
"import": "./index.mjs",
"require": "./index.js",
"browser": "./index.js"
"browser": "./index.js",
"types": "./index.d.ts"
},
"./isomorphic": {
"import": "./isomorphic.mjs",
"require": "./isomorphic.js",
"browser": "./isomorphic.js"
"browser": "./isomorphic.js",
"types": "./isomorphic.d.ts"
},
"./react": {
"import": "./react.mjs",
"require": "./react.js",
"browser": "./react.js"
"browser": "./react.js",
"types": "./react.d.ts"
},
"./next-middleware": {
"import": "./next-middleware.mjs",
"require": "./next-middleware.js",
"browser": "./next-middleware.js"
"browser": "./next-middleware.js",
"types": "./next-middleware.d.ts"
}
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion lib/react-native-flagsmith/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-flagsmith",
"version": "9.0.0",
"version": "9.0.1",
"description": "Feature flagging to support continuous development",
"main": "./index.js",
"repository": {
Expand Down
5 changes: 3 additions & 2 deletions react.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { FC } from 'react';
import { IFlagsmith, IFlagsmithTrait, IFlagsmithFeature, IState } from '../types';
import { IFlagsmith, IFlagsmithTrait, IFlagsmithFeature, IState, LoadingState } from './types';
export * from './types';
export declare const FlagsmithContext: React.Context<IFlagsmith>;
export declare type FlagsmithContextType<F extends string = string, T extends string = string> = {
flagsmith: IFlagsmith<F, T>;
options?: Parameters<IFlagsmith<F, T>['init']>[0];
serverState?: IState<F, T>;
serverState?: IState;
children: React.ReactElement[] | React.ReactElement;
};
export declare const FlagsmithProvider: FC<FlagsmithContextType>;
Expand Down

0 comments on commit ad4a206

Please sign in to comment.