/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/css-declaration-sorter/src/main.d.ts
27 строк
851 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
import type { PluginCreator } from 'postcss'; declare const cssDeclarationSorter: PluginCreator<{ /** Provide the name of one of the built-in sort orders or a comparison function that is passed to `Array.sort`. @default 'alphabetical' */ order?: SortOrder | SortFunction | undefined; /** To prevent breaking legacy CSS where shorthand declarations override longhand declarations. For example `animation-name: some; animation: greeting;` will be kept in this order. @default false */ keepOverrides?: boolean; }>; export = cssDeclarationSorter; type SortOrder = 'alphabetical' | 'concentric-css' | 'smacss'; /** * This function receives two declaration property names and is expected * to return -1, 0 or 1 depending on the wanted order. */ type SortFunction = (propertyNameA: string, propertyNameB: string) => -1 | 0 | 1;