Commit b48829e
authored
Expose interfaces for feature flags (#1395)
## Description
The types that the functions that deal with feature flags return
(`FeatureFlag` and `FeatureFlagResponse`)
https://github.com/workos/workos-node/blob/0a8b3db79502781382cd5ff255de928e04a8c809/src/organizations/organizations.ts#L114-L116
aren't visible from the package entrypoint which means they can't be
imported by third-party code.
This differs from other functionality (e.g. organizations) which
1. Have an `index.ts` file which re-exports all their interfaces
https://github.com/workos/workos-node/blob/d0067d58d2ab93362b08c1c26d4b5ccea3b81a09/src/organizations/interfaces/index.ts#L1-L6
2. Re-export these index files from the main entrypoint
https://github.com/workos/workos-node/blob/0a8b3db79502781382cd5ff255de928e04a8c809/src/index.ts#L25
## Changes
1. Adds a `feature-flags/interfaces/index.ts` file to mirror the other
namespaces
2. Adds a `export * from` the above in `src/index.ts`
## Documentation
Does this require changes to the WorkOS Docs? E.g. the [API
Reference](https://workos.com/docs/reference) or code snippets need
updates.
```
[ ] Yes
```
If yes, link a related docs PR and add a docs maintainer as a reviewer.
Their approval is required.1 parent d0067d5 commit b48829e
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments