mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 14:29:25 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -230,7 +230,7 @@ const ConfigWarning = {
|
|||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
type ConfigWarningStrings = keyof typeof ConfigWarning;
|
type ConfigWarningStrings = keyof typeof ConfigWarning;
|
||||||
const issuedWarnings: { [key in ConfigWarningStrings]?: boolean } = {};
|
const issuedWarnings: Partial<Record<ConfigWarningStrings, boolean>> = {};
|
||||||
const issueWarning = (warning: ConfigWarningStrings) => {
|
const issueWarning = (warning: ConfigWarningStrings) => {
|
||||||
if (issuedWarnings[warning]) {
|
if (issuedWarnings[warning]) {
|
||||||
return;
|
return;
|
||||||
|
@@ -106,9 +106,7 @@ export const isValidArchitectureDirectionPair = function (
|
|||||||
return x !== 'LL' && x !== 'RR' && x !== 'TT' && x !== 'BB';
|
return x !== 'LL' && x !== 'RR' && x !== 'TT' && x !== 'BB';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ArchitectureDirectionPairMap = {
|
export type ArchitectureDirectionPairMap = Partial<Record<ArchitectureDirectionPair, string>>;
|
||||||
[key in ArchitectureDirectionPair]?: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a pair of the directions of each side of an edge. This function should be used instead of manually creating it to ensure that the source is always the first character.
|
* Creates a pair of the directions of each side of an edge. This function should be used instead of manually creating it to ensure that the source is always the first character.
|
||||||
|
Reference in New Issue
Block a user