picostyle icon indicating copy to clipboard operation
picostyle copied to clipboard

Return object example uses wrong signature

Open ryanford opened this issue 4 years ago • 0 comments

import { h } from "some-framework"
import picostyle from "picostyle"

const returnObject = true
const { style, css } = picostyle(h, returnObject)

should be:

import { h } from "some-framework"
import picostyle from "picostyle"

const options = { returnObject: true };
const { style, css } = picostyle(h, options)

https://github.com/morishitter/picostyle/blob/9f4053f806adbedbd7ee916e42f8153fbaccd948/src/index.js#L53-L54 See PR #76

ryanford avatar May 16 '20 08:05 ryanford