{"_id":"@types/css-declaration-sorter","_rev":"2802759","name":"@types/css-declaration-sorter","description":"TypeScript definitions for css-declaration-sorter","dist-tags":{"latest":"6.0.1","ts3.0":"5.1.0","ts3.1":"5.1.0","ts3.2":"5.1.0","ts3.3":"5.1.0","ts3.4":"5.1.0","ts3.5":"5.1.0","ts3.6":"5.1.0","ts3.7":"6.0.1","ts3.8":"6.0.1","ts3.9":"6.0.1","ts4.0":"6.0.1","ts4.1":"6.0.1","ts4.2":"6.0.1","ts4.3":"6.0.1","ts4.4":"6.0.1","ts4.5":"6.0.1","ts4.6":"6.0.1","ts4.7":"6.0.1","ts4.8":"6.0.1","ts4.9":"6.0.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:06.000Z","created":"2020-06-21T08:25:10.262Z","6.0.1":"2021-07-06T20:37:25.753Z","6.0.0":"2021-06-17T20:31:42.425Z","5.1.0":"2020-06-21T08:25:10.262Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/css-declaration-sorter"},"versions":{"6.0.1":{"name":"@types/css-declaration-sorter","version":"6.0.1","description":"TypeScript definitions for css-declaration-sorter","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-declaration-sorter","license":"MIT","contributors":[{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/css-declaration-sorter"},"scripts":{},"dependencies":{"postcss":"^8.0.9"},"typesPublisherContentHash":"2f64ce85d1bffa8e3afb438a501893877ae421be8bda8515d6d358c3cd15af61","typeScriptVersion":"3.7","_id":"@types/css-declaration-sorter@6.0.1","dist":{"shasum":"17ac08d4df6c47ffe850828fd9016e38ce362936","size":2421,"noattachment":false,"key":"/@types/css-declaration-sorter/-/@types/css-declaration-sorter-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/css-declaration-sorter/download/@types/css-declaration-sorter-6.0.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-declaration-sorter_6.0.1_1625603845570_0.6756724826991996"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:35.038Z","publish_time":1625603845753,"_cnpm_publish_time":1625603845753},"6.0.0":{"name":"@types/css-declaration-sorter","version":"6.0.0","description":"TypeScript definitions for css-declaration-sorter","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-declaration-sorter","license":"MIT","contributors":[{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/css-declaration-sorter"},"scripts":{},"dependencies":{"postcss":"^8.0.9"},"typesPublisherContentHash":"9cb8f0acf3df1ca29c37aa931bded8bf412c9d9f63199080d0a5ba2021cad9a9","typeScriptVersion":"3.7","_id":"@types/css-declaration-sorter@6.0.0","dist":{"shasum":"a90c629a7c978f75818022291cb6d60a11819682","size":2414,"noattachment":false,"key":"/@types/css-declaration-sorter/-/@types/css-declaration-sorter-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/css-declaration-sorter/download/@types/css-declaration-sorter-6.0.0.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-declaration-sorter_6.0.0_1623961902270_0.20992743791109314"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:34.938Z","publish_time":1623961902425,"_cnpm_publish_time":1623961902425},"5.1.0":{"name":"@types/css-declaration-sorter","version":"5.1.0","description":"TypeScript definitions for css-declaration-sorter","license":"MIT","contributors":[{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/css-declaration-sorter"},"scripts":{},"dependencies":{"postcss":"^7.0.31"},"typesPublisherContentHash":"066a2cfe99940a5b84a8c38460d8c8d39ffef2706c7eadf48bae4cd910e447c9","typeScriptVersion":"3.0","_id":"@types/css-declaration-sorter@5.1.0","dist":{"shasum":"78a96cfceefc87734c6115d183a0a3b5ab9cc5de","size":2331,"noattachment":false,"key":"/@types/css-declaration-sorter/-/@types/css-declaration-sorter-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/css-declaration-sorter/download/@types/css-declaration-sorter-5.1.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-declaration-sorter_5.1.0_1592727910041_0.05776145357845475"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:34.042Z","publish_time":1592727910262,"_cnpm_publish_time":1592727910262}},"readme":"# Installation\r\n> `npm install --save @types/css-declaration-sorter`\r\n\r\n# Summary\r\nThis package contains type definitions for css-declaration-sorter (https://github.com/Siilwyn/css-declaration-sorter#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-declaration-sorter.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-declaration-sorter/index.d.ts)\r\n````ts\r\n// Type definitions for css-declaration-sorter 6.0\n// Project: https://github.com/Siilwyn/css-declaration-sorter#readme\n// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.7\n\nimport { PluginCreator } from 'postcss';\n\n/**\n * A Node.js module and PostCSS plugin to sort CSS, SCSS or Less declarations based on their property names.\n */\ndeclare namespace cssDeclarationSorter {\n    /**\n     * Default, order in a simple alphabetical manner from a - z.\n     */\n    type Alphabetical = 'alphabetical';\n\n    /**\n     * Order from most important, flow affecting properties, to least important properties.\n     * ```\n     * 1. Box\n     * 2. Border\n     * 3. Background\n     * 4. Text\n     * 5. Other\n     * ```\n     */\n    type SMACSS = 'smacss';\n\n    /**\n     * Order properties applying outside the box model, moving inward to intrinsic changes.\n     * ```\n     * 1. Positioning\n     * 2. Visibility\n     * 3. Box model\n     * 4. Dimensions\n     * 5. Text\n     * ```\n     */\n    type ConcentricCSS = 'concentric-css';\n\n    type SortOrder = Alphabetical | SMACSS | ConcentricCSS;\n\n    /**\n     * This function receives two declaration names and is expected\n     * to return -1, 0 or 1 depending on the wanted order.\n     */\n    type SortFunction = (aProp: string, bProp: string) => -1 | 0 | 1;\n\n    interface Options {\n        /**\n         * Provide the name of one of the built-in sort orders or a comparison function that is passed to `Array.sort`.\n         * @default 'alphabetical'\n         */\n        order?: SortOrder | SortFunction | undefined;\n        /**\n         * To prevent breaking legacy CSS where shorthand declarations override longhand declarations\n         * (also taking into account vendor prefixes) this option can enabled.\n         * For example `animation-name: some; animation: greeting;` will be kept in this order when `keepOverrides` is `true`.\n         */\n        keepOverrides?: boolean | undefined;\n    }\n\n    type CssDeclarationSorter = PluginCreator<Options>;\n}\n\ndeclare const cssDeclarationSorter: cssDeclarationSorter.CssDeclarationSorter;\nexport = cssDeclarationSorter;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 20:32:33 GMT\r\n * Dependencies: [@types/postcss](https://npmjs.com/package/@types/postcss)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-declaration-sorter","license":"MIT"}