Skip to content

Commit b248636

Browse files
authored
fix fontface types (#376)
closes #372 Also fixes typo for fontface `__unstable__uniqueWithLocations`
1 parent cf5c1e5 commit b248636

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/atrules/atrules.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ AtRules('finds @font-face', () => {
299299
}`
300300
const actual = analyze(fixture, {
301301
useUnstableLocations: true
302-
}).atrules.fontface.__unstable_uniqueWithLocations
302+
}).atrules.fontface.__unstable__uniqueWithLocations
303303
const expected = {
304304
5: [{
305305
line: 2,

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function analyze(css, options = {}) {
9999
// Atrules
100100
let totalAtRules = 0
101101
let atRuleComplexities = new AggregateCollection()
102-
/** @type {Record<string: string>}[]} */
102+
/** @type {Record<string, string>[]} */
103103
let fontfaces = []
104104
let fontfaces_with_loc = new Collection(useLocations)
105105
let layers = new Collection(useLocations)
@@ -691,7 +691,7 @@ export function analyze(css, options = {}) {
691691
unique: fontfaces,
692692
uniquenessRatio: fontFacesCount === 0 ? 0 : 1,
693693
}, useLocations ? {
694-
__unstable_uniqueWithLocations: fontfaces_with_loc.c().__unstable__uniqueWithLocations,
694+
__unstable__uniqueWithLocations: fontfaces_with_loc.c().__unstable__uniqueWithLocations,
695695
} : {}),
696696
import: imports.c(),
697697
media: assign(

0 commit comments

Comments
 (0)