generated from finsweet/developer-starter
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundled all original jsDoc comments in the production build
- Loading branch information
1 parent
fa68876
commit 682cfae
Showing
91 changed files
with
742 additions
and
4 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,2 +1,13 @@ | ||
/** | ||
* Fade in an element | ||
* @param element | ||
* @param display Display property, flex by default | ||
* @returns An awaitable promise | ||
*/ | ||
export declare const fadeIn: (element: HTMLElement, display?: string) => Promise<void>; | ||
/** | ||
* Fade out an element | ||
* @param element | ||
* @returns An awaitable promise | ||
*/ | ||
export declare const fadeOut: (element: HTMLElement) => Promise<void>; |
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,3 +1,4 @@ | ||
// Constants | ||
const alertTypes = ['info', 'error']; | ||
export class Debug { | ||
static alertsActivated = false; | ||
|
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,9 +1,31 @@ | ||
/** | ||
* Writable Store that runs callbacks every time the provided value is updated. | ||
*/ | ||
export declare class WritableStore<T> { | ||
private value; | ||
private subscribeCallbacks; | ||
/** | ||
* @param value The initial value of the store. | ||
*/ | ||
constructor(value: T); | ||
/** | ||
* @returns The current value | ||
*/ | ||
get(): T; | ||
/** | ||
* Sets a new value | ||
* @param newValue | ||
*/ | ||
set(newValue: T): void; | ||
/** | ||
* Exposes the current value and accepts a new value as an update. | ||
* @param callback | ||
*/ | ||
update(callback: (value: T) => T): void; | ||
/** | ||
* Subscribes the callback to run every time the store value changes. | ||
* @param callback It receives the current value. | ||
* @returns An unsubscribe method. | ||
*/ | ||
subscribe(callback: (value: T) => void): () => void; | ||
} |
Oops, something went wrong.