@@ -22,14 +22,14 @@ import {
2222 FlagsmithCache ,
2323 FlagsmithConfig ,
2424 FlagsmithTraitValue ,
25- ITraitConfig
25+ TraitConfig
2626} from './types.js' ;
2727import { pino , Logger } from 'pino' ;
2828
2929export { AnalyticsProcessor , AnalyticsProcessorOptions } from './analytics.js' ;
3030export { FlagsmithAPIError , FlagsmithClientError } from './errors.js' ;
3131
32- export { DefaultFlag , Flags } from './models.js' ;
32+ export { BaseFlag , DefaultFlag , Flags } from './models.js' ;
3333export { EnvironmentDataPollingManager } from './polling_manager.js' ;
3434export { FlagsmithCache , FlagsmithConfig } from './types.js' ;
3535
@@ -206,13 +206,13 @@ export class Flagsmith {
206206 *
207207 * @param {string } identifier a unique identifier for the identity in the current
208208 environment, e.g. email address, username, uuid
209- * @param {{[key:string]:any | ITraitConfig } } traits? a dictionary of traits to add / update on the identity in
209+ * @param {{[key:string]:any | TraitConfig } } traits? a dictionary of traits to add / update on the identity in
210210 Flagsmith, e.g. {"num_orders": 10} or {age: {value: 30, transient: true}}
211211 * @returns Flags object holding all the flags for the given identity.
212212 */
213213 async getIdentityFlags (
214214 identifier : string ,
215- traits ?: { [ key : string ] : FlagsmithTraitValue | ITraitConfig } ,
215+ traits ?: { [ key : string ] : FlagsmithTraitValue | TraitConfig } ,
216216 transient : boolean = false
217217 ) : Promise < Flags > {
218218 if ( ! identifier ) {
@@ -456,7 +456,7 @@ export class Flagsmith {
456456
457457 private async getIdentityFlagsFromApi (
458458 identifier : string ,
459- traits : { [ key : string ] : FlagsmithTraitValue | ITraitConfig } ,
459+ traits : { [ key : string ] : FlagsmithTraitValue | TraitConfig } ,
460460 transient : boolean = false
461461 ) {
462462 if ( ! this . identitiesUrl ) {
0 commit comments