Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/hyphen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ export type HyphenOptions = {
apiKey?: string;
/**
* Options for the Toggle service.
* Excludes `publicApiKey` as it's provided at the top level.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrasing Excludes... is a bit awkward as a sentence fragment. To improve clarity and remove the ambiguity of 'top level', I suggest rephrasing to directly state where the publicApiKey should be provided.

Suggested change
* Excludes `publicApiKey` as it's provided at the top level.
* `publicApiKey` is provided on the top-level `HyphenOptions` object.

* @see ToggleOptions
* @default {Toggle}
*/
toggle?: Omit<ToggleOptions, "publicApiKey">;
/**
* Options for the NetInfo service.
* Excludes `apiKey` as it's provided at the top level.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrasing Excludes... is a bit awkward as a sentence fragment. To improve clarity and remove the ambiguity of 'top level', I suggest rephrasing to directly state where the apiKey should be provided.

Suggested change
* Excludes `apiKey` as it's provided at the top level.
* `apiKey` is provided on the top-level `HyphenOptions` object.

* @see NetInfoOptions
* @default {NetInfo}
*/
netInfo?: Omit<NetInfoOptions, "apiKey">;
/**
* Options for the Link service.
* Excludes `apiKey` as it's provided at the top level.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrasing Excludes... is a bit awkward as a sentence fragment. To improve clarity and remove the ambiguity of 'top level', I suggest rephrasing to directly state where the apiKey should be provided.

Suggested change
* Excludes `apiKey` as it's provided at the top level.
* `apiKey` is provided on the top-level `HyphenOptions` object.

* @see LinkOptions
* @default {Link}
*/
Expand Down
Loading