UNPKG

webcompiler

Version:

Lint, type-check, compile, package and gzip JavaScript (ES6 + Flow static types + JSX), for the browser as well as NodeJS; lint, compile, auto-prefix, minify and gzip SASS.

18 lines (13 loc) 413 B
/* @flow */ import type {PostCSSWarning} from '../src/typedef'; type PostCSSResult = { css: string; map: Object; warnings(): PostCSSWarning[]; }; type PostCSSPromise = { then(onFulfilled: (result: PostCSSResult) => void, onRejected: (error: Error) => void): void; }; declare module 'postcss' { declare function exports(plugins: any[]): {process: (code: string, config: Object) => PostCSSPromise}; }