-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update typedoc configuration - Ignore private / internal members - Use dist folder as output - Add examples - Update turbo configuration - Run build before generating documentation
- Loading branch information
Showing
17 changed files
with
171 additions
and
30 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,5 +1,11 @@ | ||
/** @type {import('typedoc').TypeDocOptions} */ | ||
module.exports = { | ||
entryPoints: ['../packages/**/src/*.ts'], | ||
entryPoints: ['../packages/**/dist/index.d.ts'], | ||
out: '../build/typedocs', | ||
exclude: [ | ||
'**/node_modules/**', | ||
'**/*.spec.ts', | ||
'**/*.test.ts', | ||
'**/examples/**', | ||
], | ||
} |
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
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
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
2 changes: 1 addition & 1 deletion
2
...ages/incremental-color-palette/example.ts → ...emental-color-palette/examples/example.ts
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
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
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
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
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
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,13 +1,23 @@ | ||
/** | ||
* Clamps a value between a minimum and maximum value | ||
* Example: clamp(5, [10, 20]) returns 10 | ||
* Example: clamp(15, [10, 20]) returns 15 | ||
* Example: clamp(25, [10, 20]) returns 20 | ||
* | ||
* @example | ||
* ```ts | ||
* clamp(5, [10, 20]) // => 10 | ||
* ``` | ||
* @example | ||
* ```ts | ||
* clamp(15, [10, 20]) // => 15 | ||
* ``` | ||
* @example | ||
* ```ts | ||
* clamp(25, [10, 20]) // => 20 | ||
* ``` | ||
* @param value | ||
* @param min | ||
* @param max | ||
* @param range [min, max] | ||
* @returns The clamped value | ||
*/ | ||
export const clamp = (value: number, [min, max]: [number, number]): number => { | ||
export const clamp = (value: number, range: [number, number]): number => { | ||
const [min, max] = range | ||
return Math.min(Math.max(value, min), max) | ||
} |
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
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
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
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
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
Oops, something went wrong.