Type Alias Create
type Create = {
document?: Document;
id: string;
layerName?: string;
rules: RulesConfig;
version: string;
warn?: boolean;
}
document?: Document;
id: string;
layerName?: string;
rules: RulesConfig;
version: string;
warn?: boolean;
}
Properties
Optionaldocument
Target document to load styles into.
id
id: string
Required CSS ID providing a link to a specific style sheet element.
OptionallayerName 
layerName?: string
Optional CSS layer name defining the top level CSS layer containing all rules.
rules
CSS Rules configuration. Rule name / selector.
version
version: string
Required semver string without wildcards / version ranges representing the version / level of styles being managed.
Optionalwarn
warn?: boolean
When true, log warnings on why creation failed.
Options for StyleManager.create.