|
171 | 171 | "name": "",
|
172 | 172 | "preserveMemberOrder": false,
|
173 | 173 | "members": [
|
| 174 | + { |
| 175 | + "kind": "TypeAlias", |
| 176 | + "canonicalReference": "@csstools/selector-specificity!CalculationOptions:type", |
| 177 | + "docComment": "/**\n * Options for the calculation of the specificity of a selector\n */\n", |
| 178 | + "excerptTokens": [ |
| 179 | + { |
| 180 | + "kind": "Content", |
| 181 | + "text": "export type CalculationOptions = " |
| 182 | + }, |
| 183 | + { |
| 184 | + "kind": "Content", |
| 185 | + "text": "{\n customSpecificity?: " |
| 186 | + }, |
| 187 | + { |
| 188 | + "kind": "Reference", |
| 189 | + "text": "CustomSpecificityCallback", |
| 190 | + "canonicalReference": "@csstools/selector-specificity!CustomSpecificityCallback:type" |
| 191 | + }, |
| 192 | + { |
| 193 | + "kind": "Content", |
| 194 | + "text": ";\n}" |
| 195 | + }, |
| 196 | + { |
| 197 | + "kind": "Content", |
| 198 | + "text": ";" |
| 199 | + } |
| 200 | + ], |
| 201 | + "fileUrlPath": "dist/_types/index.d.ts", |
| 202 | + "releaseTag": "Public", |
| 203 | + "name": "CalculationOptions", |
| 204 | + "typeTokenRange": { |
| 205 | + "startIndex": 1, |
| 206 | + "endIndex": 4 |
| 207 | + } |
| 208 | + }, |
174 | 209 | {
|
175 | 210 | "kind": "Function",
|
176 | 211 | "canonicalReference": "@csstools/selector-specificity!compare:function(1)",
|
177 |
| - "docComment": "", |
| 212 | + "docComment": "/**\n * Compare two specificities\n *\n * @param s1 - The first specificity\n *\n * @param s2 - The second specificity\n *\n * @returns A value smaller than `0` if `s1` is less specific than `s2`, `0` if `s1` is equally specific as `s2`, a value larger than `0` if `s1` is more specific than `s2`\n */\n", |
178 | 213 | "excerptTokens": [
|
179 | 214 | {
|
180 | 215 | "kind": "Content",
|
|
234 | 269 | ],
|
235 | 270 | "name": "compare"
|
236 | 271 | },
|
| 272 | + { |
| 273 | + "kind": "TypeAlias", |
| 274 | + "canonicalReference": "@csstools/selector-specificity!CustomSpecificityCallback:type", |
| 275 | + "docComment": "/**\n * Calculate a custom specificity for a node\n */\n", |
| 276 | + "excerptTokens": [ |
| 277 | + { |
| 278 | + "kind": "Content", |
| 279 | + "text": "export type CustomSpecificityCallback = " |
| 280 | + }, |
| 281 | + { |
| 282 | + "kind": "Content", |
| 283 | + "text": "(node: " |
| 284 | + }, |
| 285 | + { |
| 286 | + "kind": "Reference", |
| 287 | + "text": "Node", |
| 288 | + "canonicalReference": "postcss-selector-parser!parser.Node:type" |
| 289 | + }, |
| 290 | + { |
| 291 | + "kind": "Content", |
| 292 | + "text": ") => " |
| 293 | + }, |
| 294 | + { |
| 295 | + "kind": "Reference", |
| 296 | + "text": "Specificity", |
| 297 | + "canonicalReference": "@csstools/selector-specificity!Specificity:type" |
| 298 | + }, |
| 299 | + { |
| 300 | + "kind": "Content", |
| 301 | + "text": " | void | false | null | undefined" |
| 302 | + }, |
| 303 | + { |
| 304 | + "kind": "Content", |
| 305 | + "text": ";" |
| 306 | + } |
| 307 | + ], |
| 308 | + "fileUrlPath": "dist/_types/index.d.ts", |
| 309 | + "releaseTag": "Public", |
| 310 | + "name": "CustomSpecificityCallback", |
| 311 | + "typeTokenRange": { |
| 312 | + "startIndex": 1, |
| 313 | + "endIndex": 6 |
| 314 | + } |
| 315 | + }, |
237 | 316 | {
|
238 | 317 | "kind": "Function",
|
239 | 318 | "canonicalReference": "@csstools/selector-specificity!selectorSpecificity:function(1)",
|
240 |
| - "docComment": "", |
| 319 | + "docComment": "/**\n * Calculate the specificity for a selector\n */\n", |
241 | 320 | "excerptTokens": [
|
242 | 321 | {
|
243 | 322 | "kind": "Content",
|
|
248 | 327 | "text": "Node",
|
249 | 328 | "canonicalReference": "postcss-selector-parser!parser.Node:type"
|
250 | 329 | },
|
| 330 | + { |
| 331 | + "kind": "Content", |
| 332 | + "text": ", options?: " |
| 333 | + }, |
| 334 | + { |
| 335 | + "kind": "Reference", |
| 336 | + "text": "CalculationOptions", |
| 337 | + "canonicalReference": "@csstools/selector-specificity!CalculationOptions:type" |
| 338 | + }, |
251 | 339 | {
|
252 | 340 | "kind": "Content",
|
253 | 341 | "text": "): "
|
|
264 | 352 | ],
|
265 | 353 | "fileUrlPath": "dist/_types/index.d.ts",
|
266 | 354 | "returnTypeTokenRange": {
|
267 |
| - "startIndex": 3, |
268 |
| - "endIndex": 4 |
| 355 | + "startIndex": 5, |
| 356 | + "endIndex": 6 |
269 | 357 | },
|
270 | 358 | "releaseTag": "Public",
|
271 | 359 | "overloadIndex": 1,
|
|
277 | 365 | "endIndex": 2
|
278 | 366 | },
|
279 | 367 | "isOptional": false
|
| 368 | + }, |
| 369 | + { |
| 370 | + "parameterName": "options", |
| 371 | + "parameterTypeTokenRange": { |
| 372 | + "startIndex": 3, |
| 373 | + "endIndex": 4 |
| 374 | + }, |
| 375 | + "isOptional": true |
280 | 376 | }
|
281 | 377 | ],
|
282 | 378 | "name": "selectorSpecificity"
|
283 | 379 | },
|
284 | 380 | {
|
285 | 381 | "kind": "TypeAlias",
|
286 | 382 | "canonicalReference": "@csstools/selector-specificity!Specificity:type",
|
287 |
| - "docComment": "", |
| 383 | + "docComment": "/**\n * The specificity of a selector\n */\n", |
288 | 384 | "excerptTokens": [
|
289 | 385 | {
|
290 | 386 | "kind": "Content",
|
|
306 | 402 | "startIndex": 1,
|
307 | 403 | "endIndex": 2
|
308 | 404 | }
|
| 405 | + }, |
| 406 | + { |
| 407 | + "kind": "Function", |
| 408 | + "canonicalReference": "@csstools/selector-specificity!specificityOfMostSpecificListItem:function(1)", |
| 409 | + "docComment": "/**\n * Calculate the most specific selector in a list\n */\n", |
| 410 | + "excerptTokens": [ |
| 411 | + { |
| 412 | + "kind": "Content", |
| 413 | + "text": "export declare function specificityOfMostSpecificListItem(nodes: " |
| 414 | + }, |
| 415 | + { |
| 416 | + "kind": "Reference", |
| 417 | + "text": "Array", |
| 418 | + "canonicalReference": "!Array:interface" |
| 419 | + }, |
| 420 | + { |
| 421 | + "kind": "Content", |
| 422 | + "text": "<" |
| 423 | + }, |
| 424 | + { |
| 425 | + "kind": "Reference", |
| 426 | + "text": "Node", |
| 427 | + "canonicalReference": "postcss-selector-parser!parser.Node:type" |
| 428 | + }, |
| 429 | + { |
| 430 | + "kind": "Content", |
| 431 | + "text": ">" |
| 432 | + }, |
| 433 | + { |
| 434 | + "kind": "Content", |
| 435 | + "text": ", options?: " |
| 436 | + }, |
| 437 | + { |
| 438 | + "kind": "Reference", |
| 439 | + "text": "CalculationOptions", |
| 440 | + "canonicalReference": "@csstools/selector-specificity!CalculationOptions:type" |
| 441 | + }, |
| 442 | + { |
| 443 | + "kind": "Content", |
| 444 | + "text": "): " |
| 445 | + }, |
| 446 | + { |
| 447 | + "kind": "Content", |
| 448 | + "text": "{\n a: number;\n b: number;\n c: number;\n}" |
| 449 | + }, |
| 450 | + { |
| 451 | + "kind": "Content", |
| 452 | + "text": ";" |
| 453 | + } |
| 454 | + ], |
| 455 | + "fileUrlPath": "dist/_types/index.d.ts", |
| 456 | + "returnTypeTokenRange": { |
| 457 | + "startIndex": 8, |
| 458 | + "endIndex": 9 |
| 459 | + }, |
| 460 | + "releaseTag": "Public", |
| 461 | + "overloadIndex": 1, |
| 462 | + "parameters": [ |
| 463 | + { |
| 464 | + "parameterName": "nodes", |
| 465 | + "parameterTypeTokenRange": { |
| 466 | + "startIndex": 1, |
| 467 | + "endIndex": 5 |
| 468 | + }, |
| 469 | + "isOptional": false |
| 470 | + }, |
| 471 | + { |
| 472 | + "parameterName": "options", |
| 473 | + "parameterTypeTokenRange": { |
| 474 | + "startIndex": 6, |
| 475 | + "endIndex": 7 |
| 476 | + }, |
| 477 | + "isOptional": true |
| 478 | + } |
| 479 | + ], |
| 480 | + "name": "specificityOfMostSpecificListItem" |
309 | 481 | }
|
310 | 482 | ]
|
311 | 483 | }
|
|
0 commit comments