Skip to content

pantoken-root / formats/scope/src / ensureProperties

Mahi: ensureProperties() ​

ensureProperties(css, options?): boolean

Beta

Tāpirihia te css ki te doc kotahi anake. Kāore e puta he mahi mēnā ka karangahia a-tuarua me taua id anō, ahakoa tēhea tauira e whakatinana ana.

Ngā Tawhā ​

css ​

string

Te ingoa mōkī npm, hei tauira "@pantoken/components".

options? ​

id e wehewehe ana i ngā ripakaute kore hono; doc ka taunoa ki te tuhinga o nāianei.

id? ​

string

doc? ​

Document

Whakahokia ​

boolean

true ina i mahia e tēnei karanga te whakaurunga.

Tauira ​

ts
import { ensureProperties } from "@pantoken/scope";
import properties from "@pantoken/css/properties.css?inline";

ensureProperties(properties);