We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d89106 commit fb70ca9Copy full SHA for fb70ca9
test/types.ts
@@ -14,19 +14,12 @@ const plugin: PluginCreator<string> = prop => {
14
15
plugin.postcss = true
16
17
-interface StyleCompileResults {
18
- code: string
19
- map: SourceMap | undefined
20
-}
21
-
22
const processResult: Promise<Result> | Result = postcss([
23
plugin
24
]).process('h1{color: black;}', { from: undefined })
25
-const processed:
26
- | StyleCompileResults
27
- | Promise<StyleCompileResults> = processResult.then(result => ({
28
- code: result.css,
29
- map: result.map
30
-}))
+
+processResult.then((result: Result) => {
+ console.log(result.css)
+})
31
32
export default plugin
0 commit comments