Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Return object example uses wrong signature #77

@ryanford

Description

@ryanford
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions