DefinitelyTyped/types/postcss-nested/postcss-nested-tests.ts
2019-02-21 11:36:50 +05:00

13 lines
338 B
TypeScript

import * as postcss from 'postcss';
import nested = require('postcss-nested');
const withDefaultOptions: postcss.Transformer = nested();
const withCustomOptions: postcss.Transformer = nested({
bubble: ['phone'],
unwrap: ['phone'],
preserveEmpty: true
});
postcss().use(withDefaultOptions);
postcss().use(withCustomOptions);