Skip to content

Commit 946f4dd

Browse files
committed
docs(tsdoc): fixed remaining tsdoc syntax warnings
1 parent c62027e commit 946f4dd

File tree

40 files changed

+78
-67
lines changed

40 files changed

+78
-67
lines changed

packages/alert/src/MessageQueue.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ export interface MessageQueueProps<M extends ToastMessage>
2525

2626
/**
2727
* An optional function to call when the action button is clicked. This will
28-
* be applied to **all** toasts that appear in this message queue. You will be
29-
* provided the current message followed by the click event.
28+
* be applied to **all** toasts that appear in this message queue. You will
29+
* be provided the current message followed by the click event.
3030
*/
3131
onActionClick?: ActionEventHandler<M>;
3232
}
3333

3434
/**
35-
* This component is used to be able to create a queue of messages with the `Snackbar` and
36-
* `Toast` components with a _fairly_ decent API out of the box.
35+
* This component is used to be able to create a queue of messages with the
36+
* `Snackbar` and `Toast` components with a _fairly_ decent API out of the box.
3737
*/
3838
export function MessageQueue<M extends ToastMessage = ToastMessage>({
3939
timeout = 5000,

packages/alert/src/scssVariables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* This file was generated from @react-md/dev-utils and should not be updated
33
* manually.
44
*/

packages/alert/src/useMessageQueue.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export type MessageActions<M extends Message = ToastMessage> =
6969
| ResetQueueAction;
7070

7171
/**
72-
* This function is used to update the message queue state by adding a new message when
73-
* needed.
72+
* This function is used to update the message queue state by adding a new
73+
* message when needed.
7474
*
7575
* @internal
7676
*/
@@ -94,8 +94,8 @@ export function handleAddMessage<M extends Message = ToastMessage>(
9494
if (isNext || isImmediate) {
9595
const nextState = state.slice();
9696

97-
// remove the existing message if duplicated messages aren't allowed. This will
98-
// kind of act like a replace + next behavior
97+
// remove the existing message if duplicated messages aren't allowed. This
98+
// will kind of act like a replace + next behavior
9999
if (!isDuplicable && i > 0) {
100100
nextState.splice(i, 1);
101101
}
@@ -114,8 +114,8 @@ export function handleAddMessage<M extends Message = ToastMessage>(
114114

115115
if (isNormal) {
116116
if (isRestart) {
117-
// creating a new state so that the queue visibility hook can still be triggered
118-
// which will restart the timer
117+
// creating a new state so that the queue visibility hook can still be
118+
// triggered which will restart the timer
119119
return state.slice();
120120
}
121121

@@ -171,7 +171,8 @@ export interface MessageQueueResult<M extends Message = ToastMessage>
171171
/**
172172
* This is the main logic for the message queue behavior that will handle:
173173
*
174-
* - creating timeouts as needed to show/hide toasts within the SnackbarQueue component
174+
* - creating timeouts as needed to show/hide toasts within the `SnackbarQueue`
175+
* component
175176
* - create a way to push messages with optional priority onto the queue
176177
*
177178
* @internal
@@ -217,8 +218,8 @@ export function useMessageQueue<M extends Message = ToastMessage>({
217218
);
218219

219220
useEffect(() => {
220-
// this effect will handle all the "logic" for transitioning between each message along with the
221-
// message priority updates.
221+
// this effect will handle all the "logic" for transitioning between each
222+
// message along with the message priority updates.
222223
const [message, nextMessage] = queue;
223224
if (!message) {
224225
return;

packages/app-bar/src/scssVariables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* This file was generated from @react-md/dev-utils and should not be updated
33
* manually.
44
*/

packages/avatar/src/scssVariables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* This file was generated from @react-md/dev-utils and should not be updated
33
* manually.
44
*/

packages/badge/src/scssVariables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* This file was generated from @react-md/dev-utils and should not be updated
33
* manually.
44
*/

packages/button/src/scssVariables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* This file was generated from @react-md/dev-utils and should not be updated
33
* manually.
44
*/

packages/card/src/scssVariables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* This file was generated from @react-md/dev-utils and should not be updated
33
* manually.
44
*/

packages/chip/src/scssVariables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* This file was generated from @react-md/dev-utils and should not be updated
33
* manually.
44
*/

packages/dev-utils/@types/sassdoc.d.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
/**
22
* From the sassdoc documentation:
33
*
4-
* > sassdoc uses the word "item" to described either a variable, a function, a
5-
* > mixin, or a placeholder.
4+
* @remarks
5+
*
6+
* sassdoc uses the word "item" to described either a variable, a function, a
7+
* mixin, or a placeholder.
8+
*
9+
*
10+
* @remarks
611
*
712
* The types will be named and based off of this documentation.
813
*
914
* Note: I should probably move this to the DefinitelyTyped repo at some point.
10-
* @see http://sassdoc.com/data-interface/#terminology
15+
*
16+
* @see {@link http://sassdoc.com/data-interface/#terminology|SassDoc Data Interface}
1117
*/
1218
declare module "sassdoc" {
1319
/**
@@ -556,7 +562,7 @@ declare module "sassdoc" {
556562
throw?: ItemThrow;
557563

558564
/**
559-
* An optional @since annotation that has a version number and an optional
565+
* An optional `@since` annotation that has a version number and an optional
560566
* description.
561567
*/
562568
since?: ItemSince[];

0 commit comments

Comments
 (0)