forked from TypeStrong/typedoc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeStronggh-1556 example: variables
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Don't reorder! | ||
export * from "./functions"; | ||
export * from "./variables"; | ||
export * from "./enums"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** A simple numeric constant. */ | ||
export const PI = 3.14159265359; | ||
|
||
/** A simple string constant. */ | ||
export const STRING_CONSTANT = "FOOBAR"; | ||
|
||
/** An plain JavaScript object using `as const`. */ | ||
export const ObjectConstant = { | ||
library: "typedoc", | ||
version: "1.2.3", | ||
|
||
/** How many people starred us on GitHub. */ | ||
githubStars: 1_000_000, | ||
} as const; | ||
|
||
/** | ||
* An exported variable defined with `let`. | ||
* | ||
* This pattern should generally be avoided because the variable can be reassigned. | ||
*/ | ||
// eslint-disable-next-line prefer-const | ||
export let E = 2.718281828459045235; |