This version may be favored in TypeScript versus variation because it returns
an unknown type instead of any. unknown will require a cast before usage.
Parameters
key: string
The unique key of the feature flag.
defaultValue: unknown
The default value of the flag, to be used if the value is not available
from LaunchDarkly.
Determines the json variation of a feature flag.
This version may be favored in TypeScript versus
variation
because it returns anunknown
type instead ofany
.unknown
will require a cast before usage.