@@ -8,7 +8,7 @@ import type { Variants } from './variants'
88export function compileCandidates (
99 rawCandidates : Iterable < string > ,
1010 designSystem : DesignSystem ,
11- { onInvalidCanidate } : { onInvalidCanidate ?: ( candidate : string ) => void } = { } ,
11+ { onInvalidCandidate } : { onInvalidCandidate ?: ( candidate : string ) => void } = { } ,
1212) {
1313 let nodeSorting = new Map <
1414 AstNode ,
@@ -21,7 +21,7 @@ export function compileCandidates(
2121 for ( let rawCandidate of rawCandidates ) {
2222 let candidate = designSystem . parseCandidate ( rawCandidate )
2323 if ( candidate === null ) {
24- onInvalidCanidate ?.( rawCandidate )
24+ onInvalidCandidate ?.( rawCandidate )
2525 continue // Bail, invalid candidate
2626 }
2727 candidates . set ( candidate , rawCandidate )
@@ -36,7 +36,7 @@ export function compileCandidates(
3636 next: for ( let [ candidate , rawCandidate ] of candidates ) {
3737 let astNode = designSystem . compileAstNodes ( rawCandidate )
3838 if ( astNode === null ) {
39- onInvalidCanidate ?.( rawCandidate )
39+ onInvalidCandidate ?.( rawCandidate )
4040 continue next
4141 }
4242
0 commit comments