chordsheetjs 15.2.1 → 15.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/pdf/main.d.ts CHANGED
@@ -957,6 +957,7 @@ interface BaseFormatterConfiguration {
957
957
  key: Key | null;
958
958
  metadata: MetadataConfiguration;
959
959
  normalizeChords: boolean;
960
+ normalizeChordSuffix: boolean;
960
961
  useUnicodeModifiers: boolean;
961
962
  user: UserConfigurationProperties | null;
962
963
  }
@@ -1042,6 +1043,9 @@ declare class Formatter<T extends BaseFormatterConfiguration = BaseFormatterConf
1042
1043
  * @param {boolean} [configuration.useUnicodeModifiers=false] Whether or not to use unicode flat and sharp
1043
1044
  * symbols.
1044
1045
  * @param {boolean} [configuration.normalizeChords=true] Whether or not to automatically normalize chords
1046
+ * @param {boolean} [configuration.normalizeChordSuffix=true] Whether to normalize chord suffixes (e.g.
1047
+ * `sus2` to `2`, `maj7` to `ma7`). Only takes effect when `normalizeChords` is `true`. Defaults to `false`
1048
+ * for {@link ChordProFormatter} so ChordPro round-trips preserve the user's suffix variant.
1045
1049
  */
1046
1050
  constructor(configuration?: DeepPartial<T>);
1047
1051
  /**