Skip to content

Commit 24bcd2f

Browse files
Bart Venemanbartveneman
Bart Veneman
authored andcommitted
improve type annotations
1 parent 0338cb6 commit 24bcd2f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/core.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function calculateScore({ result, guards }) {
2626
}
2727
}
2828

29+
/** @param {ReturnType<import('@projectwallace/css-analyzer').analyze>} analysis */
2930
export function calculate(analysis) {
3031
const performance = calculateScore({ result: analysis, guards: performanceGuards })
3132
const maintainability = calculateScore({ result: analysis, guards: maintainabilityGuards })

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { analyze } from '@projectwallace/css-analyzer'
22
import { calculate as calculateFromAnalysis } from './core.js'
33

4+
/** @param {string} css */
45
export function calculate(css) {
56
const analysis = analyze(css)
67
return calculateFromAnalysis(analysis)

0 commit comments

Comments
 (0)