Skip to content

Commit

Permalink
Make .get(flag) method explicitely typed
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Jun 7, 2024
1 parent 93ff131 commit 2b7cb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class FeatureFlags<
return this._store;
}

get(flag: FeatureFlag<Schema>) {
get<Flag extends FeatureFlag<Schema>>(flag: Flag): FeatureFlagOption<Schema, Flag> {
return this._store[flag];
}

Expand Down

0 comments on commit 2b7cb76

Please sign in to comment.