diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-13 18:46:16 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-13 18:56:10 +0530 |
| commit | 78550c0d1c7037b17bdaa9413351b759b20772c0 (patch) | |
| tree | 2fbef895d94698ec3ec20fe961493748c1a6f1c0 /src/declarations.ts | |
| parent | 2f3de513168ac8a912e4b6540907492437a5f834 (diff) | |
| download | css-everything-78550c0d1c7037b17bdaa9413351b759b20772c0.tar.gz css-everything-78550c0d1c7037b17bdaa9413351b759b20772c0.zip | |
feat: adds conditionals
Diffstat (limited to '')
| -rw-r--r-- | src/declarations.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarations.ts b/src/declarations.ts index 17306bd..0571116 100644 --- a/src/declarations.ts +++ b/src/declarations.ts @@ -5,6 +5,7 @@ import { match, matchString } from './utils/adt' export interface Declaration { selector: Selector properties: Map<string, Expr> + isInstance: boolean } export interface DeclarationEval { @@ -87,7 +88,7 @@ export const toDeclaration = (expr: Expr): Declaration | undefined => { selector.selectors.push(SelectorComp.Attr(['data-instance', baseId])) } - return { selector, properties } + return { selector, properties, isInstance } } export const expressionsToDeclrs = async ( |
