Improve some null types for strictNullChecks

This commit is contained in:
EvertEt
2022-02-06 19:35:41 +01:00
parent 459cd51ae2
commit 25e1d6c5d6
17 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ const fontRegExMatchIndex = [
* Get the list of font families from a font spec. Note that this doesn't work
* for font families that have commas in them.
* @param {string} fontSpec The CSS font property.
* @return {FontParameters} The font parameters (or null if the input spec is invalid).
* @return {FontParameters|null} The font parameters (or null if the input spec is invalid).
*/
export const getFontParameters = function (fontSpec) {
const match = fontSpec.match(fontRegEx);