Skip to content

Commit

Permalink
chore: removes superfluous tsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Dec 25, 2024
1 parent d265933 commit 401123b
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 21 deletions.
4 changes: 2 additions & 2 deletions docs/smcat-online-interpreter.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/state-machine-cat-inpage.min.js.map

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/cli/normalize.mts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ function classifyExtension(
return pExtensionMap[path.extname(pString)] || pDefault;
}

/**
* @param {import("../..").OutputType} pOutputType
* @returns {import("../..").OutputType}
*/
function outputType2Extension(pOutputType: OutputType): OutputType {
const lExceptions: { [outputType: string]: OutputType } = {
oldeps: "eps",
Expand Down
5 changes: 0 additions & 5 deletions src/parse/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ function validateAgainstSchema(pSchema: typeof $schema, pObject: any): void {
}

export default {
/**
* @param {string|import("../../types/state-machine-cat").IStateMachine} pScript
* @param {import("../../types/state-machine-cat").IRenderOptions} pOptions
* @returns {import("../../types/state-machine-cat").IStateMachine}
*/
getAST(
pScript: string | IStateMachine,
pOptions: IRenderOptions,
Expand Down
4 changes: 0 additions & 4 deletions src/parse/parser-helpers.mts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ function uniq<SomeType>(
}, []);
}

/**
* @param {String} pString
* @returns {{event?: string; cond?: string; action?: string}}
*/
function parseTransitionExpression(pString: string): {
event?: string;
cond?: string;
Expand Down
1 change: 0 additions & 1 deletion src/state-machine-model.mts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function flattenStatesToMap(
}

function flattenTransitions(pStateMachine: IStateMachine): ITransition[] {
/** @type {import("../types/state-machine-cat").ITransition[]} */
let lTransitions: ITransition[] = [];

if (Object.hasOwn(pStateMachine, "transitions")) {
Expand Down
4 changes: 1 addition & 3 deletions src/transform/desugar.mts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function fuseIncomingToOutgoing(
//
// events and conditions are illegal on transitions outgoing
// from forks, so we ignore them
/** @type {import("../../types/state-machine-cat.mjs").ITransition} */
const lReturnValue = {
...pIncomingTransition,
...pOutgoingTransition,
Expand Down Expand Up @@ -192,8 +191,7 @@ export default (
.findStatesByTypes(pDesugarableStates)
.map(({ name }) => name);

/** @type {ITransitionMap} */
const lOutgoingTransitionMap = lPseudoStateNames.reduce(
const lOutgoingTransitionMap: ITransitionMap = lPseudoStateNames.reduce(
(pAll, pStateName) => {
pAll[pStateName] = lModel.findTransitionsByFrom(pStateName);
return pAll;
Expand Down

0 comments on commit 401123b

Please sign in to comment.